You are not logged in.

1

Thursday, April 10th 2003, 7:27pm

Reboot to a different image from console

I am running Mandrake 9.0 and KDE 3.1. I have a dual boot computer which boots either Windows 98 or Linux. While in Linux, I would like to be able to reboot the computer into Windows from the console. I am able to do this from KDE by Logging off and then at the log in screen I can select reboot and pick the image I want to boot into. The available images I can boot to are listed in /etc/lilo.conf. When I'm done in Windows, I can simply reboot and my default image will load which happens to be linux.

I know I can edit /etc/lilo.conf and set the default image to be Windows, run lilo, and then reboot which will boot into Windows but then when I reboot Windows the default image is still Windows but I want the default to remain linux.

Can this be done from the console?

2

Monday, June 30th 2003, 11:15pm

re: Reboot to a different image from console

I seem to be having a similar problem. I rebooted from lilo and selected windows. I thought it would only be a one time choice, but now when ever my machine boots, it goes from lilo directly to windows. I no longer even see the dual boot screen. I have no way of changing this setting now becuase I can't get back to linux. Help! How do I change this setting back to give me the dual boot option?
Thanks
Nyanta

3

Wednesday, July 9th 2003, 7:25pm

pc_geek:
instead of editing your lilo.conf file, try this command

lilo -D windows

but replace `windows' with the label for your windows boot. since this is a one time change you should be back to normal next time (i haven't tried this yet).

nyanta:
if `prompt' isn't specified in /etc/lilo.conf then when booting lilo will just pause a little bit (for the intervel specified by `delay='). when you see lilo start, press the TAB key quickly, you should then be prompted for a kernel choice.
if this doesn't work (maybe because your lilo.conf has delay=0 in it) then you should boot a rescue disk (the disk you installed linux from maybe?) mount the partition /etc is on, and edit lilo.conf then reboot

whichever, when you do get back to linux, put the word
prompt
on a line by itself near the top of /etc/lilo.conf

seb

Professional

Posts: 622

Location: Sydney

Occupation: Student

  • Send private message

4

Friday, July 11th 2003, 1:33pm

you legend! i have been trying to figure that one out for a while now!