[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MBR corrupt



Here is the procedure that I usually use:
1. Boot a livecd
2. Mount the linux install somewhere like /mnt/drive
3. Bind proc + dev onto this with 'mount -o bind /proc /mnt/drive/proc'
and 'mount -o bind /dev /mnt/drive/dev'
3. type 'chroot /mnt/drive /bin/bash'
4. You are now effectivelly using the hard drive installation of linux and
should be able to reinstall grub/lilo onto the MBR.

IIRC to install grub
1. type 'grub'
2. root (hd1,0) - thats hdb1, adjust as necessary
3. setup (hd0) - I'm assuming we want this on the MBR of the primary drive
(hda)

For lilo just typing "lilo" does it.