Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 command prompt. 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.
Thanks for the quick response. So you are saying all I have to do is from the command line type the kernel name? That doesn't make sense because I could name a kernel "sendmail" and linux would think I'm trying to run the sendmail program.
I would assume it would have to be something like "reboot kernel_name" but I'm not sure.
I just tried this and it didn't work. I was sitting at a command prompt in linux (not at the lilo prompt) and I typed the name of the image I wanted to change to and it said "Command not found". I even tried "reboot kernel_name" and I got the following:
"reboot [-n] [-w] [-d] [-f] [-i] [-p]"
I then tried:
"shutdown -rn now kernel_name" and the comptuer rebooted but did not boot to the new "kernel_name"
When I'm trying to reboot, I'm not at the lilo prompt or else just typing the name of the kernel would work.
I have read the man pages for "shutdown", "reboot", and the "init" scripts and I didn't see anything about rebooting to a different image. Thanks for the suggestion.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.