On 6/15/06, Marlier, Ian
-----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?
root (hd0,7)
When I try that it complains about /dev/root not existing. If I try: # grub partition is reiserfs
setup (hd0) /boot/grub/stage1 does not exist
So basically if I'm not chrooted I don't have a stage1 file to put into the MBR. If I am chrooted then it doesn't know how to access the drive. Seems like a catch 22. I also tried to do a mount -t bind /mnt/boot /boot. With that /boot/grub/stage1 looks good to me, but grub still complains as above. I swear I've done this several times before, but now nothing is working. Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century -- 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