Restoring grub on MBR

Wilco Beekhuizen wilcobeekhuizen at gmail.com
Tue Sep 23 00:54:27 PDT 2008


> Hi Randir,
>
>
> yes I mean a disket and floppy drive. I have yesterday seen from chapter
> 8.4 that
>
> dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
> dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
>
> may be helpful as well. You can give it a try as well.
>
>
> Wolfgang
>


Well the easiest solution is this:
1. Boot any Linux CD
2. mount your lfs partition to /mnt/lfs and mount /dev/ to /mnt/lfs/dev --bind
3. # chroot /mnt/lfs
4. run grub or grub-install
5. (optional unmount and) reboot

Done!
Easy when you install windows on a partition and it overwrites grub



More information about the lfs-support mailing list