Re: [opensuse] New partition killed MBR?
On Tue, 2009-01-06 at 12:32 -0600, L. V. Lammert wrote:
At 11:14 AM 1/6/2009 -0700, Teruel de Campo MD wrote:
1. what did you use as boot manager grub?
Yep - default install.
2. how did you create new partitions? what program did you use?
11.1 partition manager.
3. just boot from a live cd
# fdisk -l
and post it.
Disk /dev/sda: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 2 3917 31455270 f W95 Ext'd (LBA) /dev/sda2 3918 11749 62910540 83 Linux /dev/sda3 11750 15012 26210047+ 83 Linux /dev/sda5 2 392 3140676 82 Linux swap / Solaris /dev/sda6 393 3655 26210016 83 Linux /dev/sda7 3656 3917 2104483+ 83 Linux
Lee Lee,
That's weird setup. I looks like you created first an extended partition as container (sda1) with sda5 as swap sda6 root??? sda7 home?? and then you have two primary partitions sda2 sda3 I make those assumption because you said you created two partions 'after' so according to the blocks they follow. So here my advice: 1. play with the present configuration and we will help you to do that. 2. after you that reformat the HD with a little different partitions :) setup and reinstall. So the first thing is you need to know if you have a /boot and /root or just /. So what you have in sda6 and sda7? After you know that try to reinstall grub. 1. load a live linux cd. If you do not have one dsl or puppy linux are very small and fast or if yo have opensuse live. 2. open a terminal 3. as root #grub
find /boot/grub/stage1
This brings where grub first stage is located. It may not find it because according to you it should have been in the MBR (aka hd0)
root (hdX,Y)
X is the drive (HD) number you start to count form O to the first drive is 0 Y is the partition number, you start to count from 0 so sda5 is 4 and so on.
setup (hdX,Y)
will write those setup Note: If you use (hd0) it will replace the mbr. Typing "(hd0)",it's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)", or to /boot '(hd0,0)' So in your case you have to write it to the MBR if I understand what you wrote :) -=terry=- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
At 12:19 PM 1/6/2009 -0700, Teruel de Campo MD wrote:
Lee,
I looks like you created first an extended partition as container (sda1) with sda5 as swap sda6 root sda7 home
Terry, Sorry, that was in the original email - but yes - sda6 is /, sda7 is /home. Had problems with System Rescue (32/64 bit), .. so I booted the 11.1 Repair & jumped to a command prompt, mounted /dev/sda6 on /mnt & chroot'd to /mnt. Having the same problem with 11.1, so something really strange is going on.
#grub
find /boot/grub/stage1
find /boot/grub/stage1
Error 15: File not found
root (hd0,5)
Error 21: Selected disk does not exist
root (hd0)
Error 21: Selected disk does not exist
setup (hdX,Y)
will write those setup
setup (hd0,5)
Error 12: Invalid device requested
setup (hd0)
Error 12: Invalid device requested TFTR - Any thoughts would be appreciated!! Lee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
L. V. Lammert
-
Teruel de Campo MD