Get LILO to remember last boot option
Hi All,
Does anybody know how to get LILO to remember the last boot. I use Slack 10 and Windows, and I want LILO to boot the same OS as last time by default. Thanks in advance. |
I don't think it's possible or have never come across it at least.
great idea though :D |
Of course it's possible, but it would require some code, as i'm not sure wether it is a feature today. I'm not sure, but maybe you can request this feature to the developers. :)
Good luck, and tell us how it went ;) - omes |
It must be possible but I'm not a programmer so where do I find more easy to understand info on Lilo coding? Btw does anybody know the url to Lilo? Thx in advance.
Underberg |
I've sent a mail to the developer with a link to this post. I think what you mentioned is a great feature, and i'd love to see it in lilo :)
http://home.san.rr.com/johninsd/pub/linux/lilo for latest release. - omes |
thats a great idea. like when you remotely reboot a dual boot box and know it wont go back to the os you had been in.... Love it.
Anyhow, I saw a solution to that for grub a few years ago, not sure if anyone has developed it further. At the time it was less than elegant and I didn't trust it enough to use. |
Quote:
As I said, I sent a mail to the developer. Here is my mail and the answer: Quote:
Quote:
|
It's already possible under lilo using lock. I've tested it using RH8.
Add the following line to the general section of your lilo.conf: Code:
lock Activate the new configuration by running lilo and reboot. When the lilo menu shows, go to the command line (under RH by pressing <ctrl>x). Typing ? will show the different labels as specified in lilo.conf (e.g. linux and windows). Type the name of the OS (read: label) that you want to boot (in the example linux or windows). Wait till booting has finished and reboot. The usual lilo screen will not show and the system will immediately boot the last selection (so without the usual delay). To select another OS, hold the <shift> key while the system reboots (just before the usual lilo menu should show); this might be a bit tricky. As a result the lilo menu shows up again; again press <ctrl>x and type the name of the required OS. If you don't go to the lilo commandline, the 'normal' default OS will be booted after the usual delay. This also seems to clear the recorded commandline, so the next time that the system reboots, it agains shows the lilo menu. Docs: man lilo.conf Caution: - First check how to access the lilo commandline - Check my info against your lilo version; things might be slightly different - First check if it works booting into linux; if it does not work, you can still fix lilo.conf - It's a good idea to have a linux bootflop or rescue disk available in case it does not work so you can boot into linux and fix lilo.conf again. My lilo.conf: Code:
prompt |
Thank you. I've used LOCK in Lilo for a month now without problems. But I miss the Lilo start menu :-(
|
As I wrote before, use shift to show the menu again.
Quote:
|
All times are GMT -5. The time now is 07:50 PM. |