Fix bootloader with MCNLive
Van MandrivaClub.NL Wiki
[bewerk] Howto fix your bootloader with MCNLive
If your bootloader is broken you can easily reload it with MCNLive.
First step is to boot the livecd. You can boot either the normal way and a bit faster with "livecd init 3". Log on as root with user: root, password: root.
On most systems your harddisk partitions will be mounted in /mnt/. If not, you can mount it with:
mkdir /mnt/<device> mount /dev/<device> /mnt/<device>
Were <device> is the name of your partition. (E.g. hda1, sda6 etc.)
Now mount the proc filesystem, so we access kernel functions:
mount -t proc none /mnt/<device>/proc
Now bind the dev directory to the distribution you want to repair, so we can access the devices:
mount -t none /dev /mnt/<device>/dev -o bind
Now you can change root to the distribution you want to repair:
chroot /mnt/<device>
At this step you are ready to use the applications of your distribution. First repair your bootloader, e.g. lilo or grub:
vim /etc/lilo.conf
or:
vim /boot/grub/menu.lst
Now install your bootloader:
lilo -v
or:
grub-install
If you have no errors, you can reboot:
exit umount /mnt/<device>/dev umount /mnt/<device>/proc umount /mnt/<device> reboot

