On Thu, 2006-06-15 at 12:29 -0400, Greg Freemyer wrote:
With SUSE 10.0/10.1 what is the correct way to reinstall grub?
I had a hardware issue trying to install SUSE 10.1 on a computer.
Now grub is not booting to a menu. I tried to re-perform the install, but it had no impact on grub's booting.
I currently have: hda1 - Win2000 boot hda5 - NTFS working drive hda6 - swap partition (garbage) hda7 - / partition (just rewritten with a fresh install) hda8 - /home (Just formatted, no users)
I can mount hda7 in rescue mode and it looks fine.
I'm trying from rescue mode to do either:
grub-install /dev/hda7
or
grub root (hd0,7) setup (hd0)
Both are failing. It seems that SUSE 10.1 does not support the above methodology anymore?
/dev/hda7 would correspond to root (hd0,6) since the grub numbering of the partitions starts at zero. i.e on hard drive 1 /dev/hda1 = root(0,0) /dev/hda2 = root(0,1) /dev/hda3 = root(0,2), etc you can also just boot up from a grub prompt: root (0,6) vmlinuz /boot/vmlinuz root=/dev/hda7 initrd /boot/initrd boot (the tab key will show other options/autocomplete if your default kernel isn't aliased to "vmlinuz" and "initrd" or you have multiple kernels to choose from) Then you can try reinstalling grub from Yast-->system>bootloader. If you originally installed grub on the MBR instead of the boot partition, you may have to reinstall it on the MBR to overwrite what is currently missing. I don't know how to get grub to choose a boot partition over the MBR as the MBR seems to take precendence if a bootloader was installed there originally. Maybe someone can provide more specifics if that is part of your problem. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com