PDA

View Full Version : lilo-mbr



pc3
07-25-2004, 09:09 PM
I have lost the lilo on master boot hd (two system, winxp + linux), how to restore the choice.

From livecd, i have not the permission to write hda, i have change the permissions for this.

Thx (french man)

shah
07-26-2004, 03:12 AM
I believe your lilo.conf is still intact, with no errors, please check.

What you have to do is boot your knoppix cd with cheatcode
knoppix 2 so that you can go straight to commandline.
I believe your xp partition is hda1.
Type this:
mount /dev/hda1 /mnt/hda1

chroot /mnt/hda1

lilo

then reboot : shutdown -r now

mzilikazi
07-26-2004, 12:49 PM
I believe your lilo.conf is still intact, with no errors, please check.

What you have to do is boot your knoppix cd with cheatcode
knoppix 2 so that you can go straight to commandline.
I believe your xp partition is hda1.
Type this:
mount /dev/hda1 /mnt/hda1

chroot /mnt/hda1

lilo

then reboot : shutdown -r now

That won't work. You can't run lilo from windows! You need to mount the drive you installed Linux to not your windows partition. If you installed Linux to /dev/hda2 then:

su
mount /dev/hda2 /mnt/hda2
chroot /mnt/hda2
lilo -v
CTRL+D (to exit chroot)
reboot

I would suggest booting completely into KDE so that you have your web browser and any other tools you need to fix your mbr.

pc3
07-26-2004, 08:08 PM
Thx to all for your support, it's perfect the solution is correct.
I have tried the mzilikazi solution from cdlive and i have now my old system multiboot.