PDA

View Full Version : Fix LILO?



JockVSJock
08-07-2003, 12:45 AM
I installed http://www.bastille-linux.org/ via apt-get and it worked great in securing my laptop.

But, when configuring Bastille, it must have done something to LILO, cause I didn't receive a boot prompt for my OS (Knoppix and XP) when rebooting.

I found this in the forums while searching,
http://www.knoppix.net/forum/viewtopic.php?t=4013&highlight=lilo, but I want to be very careful and not hose anything up further.

Here is my question.

1. Bott of Knoppix CD

2. mount your HD knoppix partition

Knoppix resides on HDA3, so I have to mount this correct?


3. Open root shell and type : chroot /mnt/hda2 <enter>

Does HDA only apply to this example?


4. Type lilo <enter>

5. Reboot computer

thanks


[/code]

Stephen
08-07-2003, 03:22 AM
You would also have to edit your /etc/lilo.conf on your install and remove the comment in front of the prompt line and make sure there is also a delay=100 line which would give you a delay of 10 seconds before boot.

So the steps would be:

1. Boot Cd
2. Open root shell
3. mount /dev/hda3 /mnt/hda3
4. Edit /mnt/hda3/etc/lilo.conf and save file
5. chroot /mnt/hda3/ /sbin/lilo -v
6. Reboot and hope Bastille likes the changes

JockVSJock
08-07-2003, 02:13 PM
You would also have to edit your /etc/lilo.conf on your install and remove the comment in front of the prompt line and make sure there is also a delay=100 line which would give you a delay of 10 seconds before boot.

So the steps would be:

1. Boot Cd
2. Open root shell
3. mount /dev/hda3 /mnt/hda3
4. Edit /mnt/hda3/etc/lilo.conf and save file
5. chroot /mnt/hda3/ /sbin/lilo -v
6. Reboot and hope Bastille likes the changes

I've tried the steps above, but didn't have any success with it.

The output that it did create a prompt for Linux, but when rebooting, I didn't get a prompt for XP/Knoppix.

Please advise.

thanks

garyng
08-07-2003, 02:18 PM
try press the control key or the alt key.

Stephen
08-07-2003, 07:17 PM
I've tried the steps above, but didn't have any success with it.

The output that it did create a prompt for Linux, but when rebooting, I didn't get a prompt for XP/Knoppix.

Please advise.

thanks

You did make sure when you were editing the lilo.conf that the sections for the Linux and XP boot options were there uncommented also? Could you boot from the CD or HD and post the lilo.conf from your machine so we can look at it.

JockVSJock
08-08-2003, 02:42 AM
try press the control key or the alt key.

Hmmm...that worked...but why?

Any more info. to help out this curious soul would be awesome.

garyng
08-08-2003, 02:51 AM
I don't understand why the designer of lilo choose it that way, giving a clueless prompt and wait for the user to press the said key to present the menu. This is very confusing IMO and doesn't help in promoting linux to the public.

k_the_first
04-09-2004, 10:42 AM
you should add a "-o dev,suid" to the mount command

mount -o suid,dev /dev/hdxx /mnt/hdxx