PDA

View Full Version : LILO



Shroeder
19-08-2002, 10:55 AM
For various reasons, I am re-partitioning my hard drive.

It was:
hda1 - Windows98SE
hda5 - Fat32 - Data
hda6,7 & 8 - Linux RedHat 7.3

will now be:
hda1 - Windows98SE
hda5 - Fat32 - Data
hda6 - Fat32 - Stuff
hda7,8 & 9 - Linux RedHat 7.3

I will reload Redhat soon.

What I want to achieve is either:

1. Have LILO default to Win98 with option to Redhat (It does this now, but when I reload RH it won't automatically change LILO - even though the new /etc/lilo.conf file will have the correct new info) eg. how do I make LILO recognise the new settings; or

2. Remove LILO and reinstall the normal Windows loader (I can't simply remove LILO and revert as I'm pretty sure LILO would revert to a previous version of LILO!). I would then use a floppy to boot to RedHat any time I want this option (Saves hassle for the rest of the family!)

TIA
Shroeder

Graham L
19-08-2002, 02:39 PM
1) The boot process doesn't use the lilo.conf file (or the lilo programme). lilo uses lilo.conf as data to write the boot information to the disk ... If you change lilo.conf, you must run lilo. One of the FAQs recommends lilo -v -v -v --- I assume that the "-v"s make it do its thing very verbosely.

2) It's no problem using a floppy to boot the linux ... but there is an alternative. You can run a DOS programme which loads the kernel from the HD --- my erratic memory has lost its name, but it will be on the RH CD (probably in the "dosutils" directory). You need to have a copy of the kernel in the DOS/Win partition. I have one box which I use that on --- it was the easiest way around the Compaq maintenance partition on a Deskpro.

ctonks
19-08-2002, 02:46 PM
I'm not too sure what you are asking here..
> For various reasons, I am re-partitioning my hard
> drive.
>
> It was:
> hda1 - Windows98SE
> hda5 - Fat32 - Data
> hda6,7 & 8 - Linux RedHat 7.3

should have a lilo.conf similar to:

boot=/dev/hda
lba
install=/boot/boot.b
initrd=/boot/initrd
map=/boot/map
default=windows
image=/vmlinuz
root=/dev/hda6
label=linux
read-only
other=/dev/hda1
label=windows


>
> will now be:
> hda1 - Windows98SE
> hda5 - Fat32 - Data
> hda6 - Fat32 - Stuff
> hda7,8 & 9 - Linux RedHat 7.3

should be changed to:

boot=/dev/hda
lba
install=/boot/boot.b
initrd=/boot/initrd
map=/boot/map
delay=20 (this will give you a chance to select to boot into linux)
default=windows
image=/vmlinuz
root=/dev/hda7 (im assuming hda7 is /)
label=linux
read-only
other=/dev/hda1
label=windows
>
> I will reload Redhat soon.
>
> What I want to achieve is either:
>
> 1. Have LILO default to Win98 with option to Redhat
> (It does this now, but when I reload RH it won't
> automatically change LILO - even though the new
> /etc/lilo.conf file will have the correct new info)
> eg. how do I make LILO recognise the new settings;
> or

see my above examples
>

> 2. Remove LILO and reinstall the normal Windows
> loader (I can't simply remove LILO and revert as I'm
> pretty sure LILO would revert to a previous version
> of LILO!). I would then use a floppy to boot to
> RedHat any time I want this option (Saves hassle for
> the rest of the family!)

you can do this by booting into dos and typing fdisk /mbr
and then you can either boot into linux from a floppy or by using loadlin (in dos/win)


PS. MAKE SURE YOU create dos and linux boot disks in case anything goes wrong.

JohnD
19-08-2002, 09:12 PM
The DOS utility for loading Linux from Windows or DOS is called loadlin. You have to have a copy of the kernel on your Windows\DOS partition. I have used it - but only when for various reasons I could not LILO to work!

Shroeder
20-08-2002, 08:42 AM
Thanks all, that worked a treat :)

Graham, it just shows how much I don't yet understand about linux eh! I thought (obviously) lilo ran each time the thing booted. On reflection, I should have been able to work out what really happens :D