LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-21-2008, 12:42 PM   #1
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 254

Rep: Reputation: 28
Messed up my partitions not sure how to fix this


I was messing around with the partition manager and I changed
/dev/sdb1 1 2444 19631398+ 83 Linux like a fool I changed this to ext3 ( thinking it would do something else)
/dev/sdb2 2445 7307 39062047+ 5 Extended
/dev/sdb5 2445 7307 39062016 83 Linux

when I rebooted I couldn't load grub .
this is the original ( or very close to it)

# Modified by YaST2. Last modification on Sun Sep 14 20:35:43 PDT 2008
default 0
timeout 4
gfxmenu (hd0,6)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux-2.6.25.16-0.1-default###
title openSUSE 11.0 - 2.6.25.16-0.1 (default)
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.16-0.1-default root=/dev/disk/by-id/scsi-SATA_ST3320620AS_6QF15JBZ-part7 resume=/dev/sda6 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.25.16-0.1-default

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
rootnoverify (hd0,6)
chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.0 - 2.6.25.16-0.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.16-0.1-default root=/dev/disk/by-id/scsi-SATA_ST3320620AS_6QF15JBZ-part7 showopts ide=nodma apm=off acpi=off noresume edd=off x11failsafe vga=0x317
initrd /boot/initrd-2.6.25.16-0.1-default

###Don't change this comment - YaST2 identifier: Original name: linux###
title Debug -- openSUSE 11.0 - 2.6.25.16-0.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.16-0.1-debug root=/dev/disk/by-id/scsi-SATA_ST3320620AS_6QF15JBZ-part7 resume=/dev/sda6 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.25.16-0.1-debug

###Don't change this comment - YaST2 identifier: Original name: xen###
title Xen -- openSUSE 11.0 - 2.6.25.16-0.1
root (hd0,6)
kernel /boot/xen.gz
module /boot/vmlinuz-2.6.25.16-0.1-xen root=/dev/disk/by-id/scsi-SATA_ST3320620AS_6QF15JBZ-part7 resume=/dev/sda6 splash=silent showopts vga=0x317
module /boot/initrd-2.6.25.16-0.1-xen

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00091c4d

Device Boot Start End Blocks Id System
/dev/sda1 1 2444 19631398+ 83 Linux
/dev/sda2 2445 7307 39062047+ 5 Extended
/dev/sda5 2445 7307 39062016 83 Linux

and this is what it looks like after booting into opensuse11 failsafe

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00091c4d

Device Boot Start End Blocks Id System
/dev/sda1 1 2444 19631398+ 83 Linux
/dev/sda2 2445 7307 39062047+ 5 Extended
/dev/sda5 2445 7307 39062016 83 Linux

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4a914a91

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13019 104567085 7 HPFS/NTFS
/dev/sdb2 13019 38913 208000563+ f W95 Ext'd (LBA)
/dev/sdb5 13019 13281 2103491 82 Linux swap / Solaris
/dev/sdb6 13281 13543 2112516 82 Linux swap / Solaris
/dev/sdb7 13544 16154 20972826 83 Linux
/dev/sdb8 16155 38913 182811636 83 Linux

as you can see everything seems to have reversed, what I mean is that everything that was on my first drive switched to my second drive.
how do I change this back .
oh and by the way I do admit that what I did was very stupid on my part

Last edited by Shadowmeph; 09-21-2008 at 12:55 PM.
 
Old 09-21-2008, 01:08 PM   #2
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 254

Original Poster
Rep: Reputation: 28
Talking

ok Itried something Iam not sure if it was the right thing to do but Ido have grub working .
this is what I did
su then grub using suse.

find /boot/grub/stage1
(enter output '(hdx,y)' in next command)
root (hdx,y)
setup (hdx)
quit

and then rebooted
su fdisk -l

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13019 104567085 7 HPFS/NTFS
/dev/sda2 13019 38913 208000563+ f W95 Ext'd (LBA)
/dev/sda5 13019 13281 2103491 82 Linux swap / Solaris
/dev/sda6 13281 13543 2112516 82 Linux swap / Solaris
/dev/sda7 13544 16154 20972826 83 Linux
/dev/sda8 16155 38913 182811636 83 Linux

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00091c4d

Device Boot Start End Blocks Id System
/dev/sdb1 1 2444 19631398+ 83 Linux
/dev/sdb2 2445 7307 39062047+ 5 Extended
/dev/sdb5 2445 7307 39062016 83 Linux

ha Iguess that it did fix it lol everything looks like it did before Yay happy happy Joy Joy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i messed my partition up...trying to fix it winstone5000 Linux - General 6 12-26-2005 04:56 PM
Sound channels messed. How to fix? bruno buys Debian 0 10-26-2004 10:35 PM
partitions messed up mehlkelm Linux - Newbie 2 04-16-2003 10:48 AM
messed up partitions (please help) nightfly Linux - Newbie 6 07-22-2002 12:39 PM
Messed up my partitions mikez Linux - General 8 01-05-2002 02:04 PM


All times are GMT -5. The time now is 12:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration