Click to See Complete Forum and Search --> : From LILO to NTLDR


particleman
07-18-2004, 09:37 PM
Hello:

I have a dual boot system which looks like this:

hda1 - 17 GBS - NTFS (C:\ windows 2000)
hda5 - 10 GBS - NTFS (E: this just has a ghost file back up of my C
hda6 - 500MBS - FAT32( i will use this to move files between linux and windows)
hda7 - 3.5GBS - ext3 (/home)
hda8 - 3.5GBS - ext3 (/usr)
hda9 - 1.0 GB - (SWAP)
hda3 - 1.5 GB - ext3 (/)

I have installed LILO to the MBR and added the necessary lines to LILO.conf so that it will also boot windows. But what I want to do is actually be able to have the windows loader (NTLDR) on the MBR and to load Linux from there as well. So currently LILO is installed to /dev/hda and I would like to move it to /dev/hda3 and at the same time install the windows 2000 loader to the MBR.

I know how to get the NTLDR to boot linux by making the changes to the boot.ini file so that it will also point to the /dev/hda3 boot sector when Linux is selected from the NTLDR menu. My question is. If I remove LILO from the MBR by using the /sbin/lilo {-u|-U} command. Can I then install Lilo to /dev/hda3 by just running the /sbin/lilo command and specifying what partition I want to install it to (in this case /dev/hda3)? Thanx!

Pman

JohnT
07-18-2004, 10:43 PM
For all your Lilo needs (well a majority of them)man lilo

paj12
07-19-2004, 03:35 AM
man lilo
Actually, "man lilo.conf" would be more fitting. The "boot=" line in your /etc/lilo.conf file specifies where LILO is installed when you run the "lilo" command. After you remove LILO from your MBR, change this line to read "boot=/dev/hda3" and re-run "lilo". Should work.

P.S. Windows 2000 runs great on a FAT32 partition. If you used this instead of NTFS, you would eliminate the need for that 500MB partition for sharing data. Just my $.02