On a side note, i think the best technique for recoverign grub i sto store a copy of the firs 512 bytes of disk in some place, to restore it. All is done with a couple of dd lines, which can be launched from any Live-cd (like knoppix, or suse) floating around. This adds the recovery of the partition table, if needed. Alle 04:09, venerdì 28 gennaio 2005, Paul W. Abrahams ha scritto:
On Thursday 27 January 2005 9:11 pm, Doug B wrote:
On Thursday 27 January 2005 07:39 pm, Trey Sizemore wrote:
I've installed SUSE 9.2 on my machine but omitted the boot loader. What is the method to do so in rescue mode? I tried:
#chroot /mnt/sysimage
but this doesn't exist so I can't even get to 'grub-install'
I never tried from rescue, but if you have the cd/dvd, boot to repair mode. On boot select installation > choose language > choose repair installed system.
I've had to call upon grub-install in a non-working environment a number of times and finally figured out how to do it pretty reliably. In fact, you can not only do it using the SuSE install CDs; you can do it from any CD that boots up a Linux shell, such as the ones on the Ultimate Boot CD (a gem in itself -- see http://www.ultimatebootcd.com.) Here's how:
1. Mount your root partition to a subdirectory of the current root, e.g.:
mount /mnt /dev/hda2
2. Change the root to that subdirectory:
chroot /mnt
3. Mount all partitions that are mountable in that environment:
mount -a
4. Call grub-install, e.g.:
/usr/sbin/grub-install
That's it! If you think you might not remember this procedure, print it out; if it's stored in a file on your computer, you might not be able to get to that file!
Paul