-----Original Message----- From: Greg Freemyer [mailto:greg.freemyer@gmail.com] Sent: Thursday, June 15, 2006 12:55 PM To: SuseLynuxEnglish Subject: Re: [SLE] Grub reinstall
On 6/15/06, Marlier, Ian
wrote: When you boot does the first stage of grub load?
If you've got a grub config that's got all the requisite information in it (ie, the location of the /boot/ directory and all), maybe you just need to do "grub-install /dev/hda" to push the bootloader into the MBR?
(I had to do this recently, and it worked fine; I booted into the rescue system, mounted the root directory and did a chroot to it, and then did `grub-install /dev/hda`. That restored the bootloader to fully working order)
With 10.1 in rescue mode when I do the chroot, it says that /dev/hda no longer exists. ie. even fdisk -l /dev/hda fails.
My assumption is that with 9.2, 10.0, 10.1 /dev is dynamic and built during the boot process. So when I chroot I basically lose the ability to see my drive.
I've got SUSE 9.2 booted into rescue mode right now. With it I tried the chroot approach and I get: # grub-install /dev/hda7 /dev/hda7 does not exist or is not a block device. # grub
root (hd0,7) Selected device does not exist (IIRC, its in another room)
Leave it to grub to know where I put that stupid drive after taking it out of the box... :-) What if you just do a plain old "grub-install /dev/hda" when you're not chrooted to anywhere? Just to get the loader back into the MBR on the disk? -- 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