LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   2000 took over MBR (https://www.linuxquestions.org/questions/linux-newbie-8/2000-took-over-mbr-292963/)

virgo 02-21-2005 09:05 AM

2000 took over MBR
 
I had mandrake 10 and then afterwared i install win2000. no lilo doesnt load and i cant enter Linux. I dont have the mandrake cds. is there anyway to enter linux and restore Lilo to dual boot both OS.

marco_certelli 02-21-2005 09:27 AM

Yes!

go to this site:

http://www.desktop-linux.net/grub.htm

download the "grub.img" and "rawrite.exe"

make a grub floppy disk.

reboot the PC with grub floppy in the drive (in BIOS boot sequence, the floppy should be first)

once in grub, type

root (hdx,y)

where x is the disk where is your linux /boot (x=0 is hda, x=1 is hdb ...) and y is the partition (counting from 0, then hd0,0 is the /dev/hda1)

then you can access your kernels. try to type:

kernel /vmlinuz ro root=/dev/hdjk

where jk is your / partition (like hda2 or whatever). NOTE if the /boot partition is the same as / partition you should use

kernel /boot/vmlinuz ro root=/dev/hdjk

then try to type

initrd /initrd.img

(or initrd /boot/initrd.img if you have /boot and / on the same partition)

if you do not get errors like "file not found", type

boot

and your linux should boot (with some errors, but able to reinstall /sbin/lilo)

If you have problems, you must study the grub commands in more detail (or tell us the partitions of you disk and the parameters used by lilo to boot your kernel). To check the exact configuration used by lilo, you can cat the /etc/lilo.conf in the grub shell. Just use:

cat (hdz,g)/etc/lilo.conf

where z is the disk and g is the partition (both in the grub syte) of you / partition

beware when you reinstall lilo: you might lose windows XP! check lilo.conf carefully.

Bye, Marco.


All times are GMT -5. The time now is 01:39 AM.