LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to reboot into os of my choise (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-reboot-into-os-of-my-choise-345962/)

umeshbabu 07-23-2005 06:48 AM

how to reboot into os of my choise
 
Hello,

I want to reboot to the specific OS of my choice , which i want to give at command line.

i have 2 linux OS and dos in by box.

How can i do it.

koen plessers 07-23-2005 07:07 AM

Hello

Which bootloader do you use?

You might read this first: http://www.redhat.com/docs/manuals/l...e/ch-grub.html

Bye

Koen Plessers

umeshbabu 07-23-2005 08:40 AM

i want to make my question more clear

my lab box has 2 linux OS and DOS

remotely(from my room) i want to reboot that lab machine and go into another linux of my interest (dos or another linux).

i am using GRUB as boot loader

koyi 07-23-2005 09:43 AM

Change the default OS in /boot/grub/grub.conf(or menu.lst, whichever exists) to the OS you want to boot into. Then restart. But make sure you can log in remotely into the going-to-be-booted OS, or you will have to walk to your lab.

Hope this helps.

umeshbabu 07-23-2005 10:01 PM

Thanks koyi

ya i am aware of what you have replied.I am in search of command line option.

some thing like this

reboot OS2
or
reboot OS3 ....

thankyou for you time

koyi 07-24-2005 03:21 AM

What about writing your own script for that?

For example, prepare a few grub.conf files(i.e. grub.conf.DOS, grub.conf.linux1, grub.conf.linux2) which boot the machine into the specified OS. Then, link grub.conf to one of these files through the script file you create yourself. :D

But I m not sure if it works from DOS, since you cant modified files on your linux partition from DOS(or maybe you can through some utilities... I dont know...)

Good luck.

umeshbabu 07-24-2005 04:20 AM

Thanks koyi

hope i can do like this

if i mention reboot OS2 or OS3 i will go to that particular OS
if i reboot from DOS i will go to default OS.( i will keep default choice as linux) so that from there i can go to OS of my choice.
but this a time consuming one.

i will make some goggling and see whether from dos also if there exists any way of doing it.

Umesh


All times are GMT -5. The time now is 09:13 PM.