LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2005, 07:48 AM   #1
umeshbabu
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: RH SUSE FEDORA
Posts: 19

Rep: Reputation: 0
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.
 
Old 07-23-2005, 08:07 AM   #2
koen plessers
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Mint
Posts: 191

Rep: Reputation: 30
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
 
Old 07-23-2005, 09:40 AM   #3
umeshbabu
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: RH SUSE FEDORA
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 07-23-2005, 10:43 AM   #4
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
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.

Last edited by koyi; 07-23-2005 at 10:45 AM.
 
Old 07-23-2005, 11:01 PM   #5
umeshbabu
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: RH SUSE FEDORA
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 07-24-2005, 04:21 AM   #6
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
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.

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.
 
Old 07-24-2005, 05:20 AM   #7
umeshbabu
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: RH SUSE FEDORA
Posts: 19

Original Poster
Rep: Reputation: 0
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

Last edited by umeshbabu; 08-23-2005 at 11:18 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No keyboard/mouse after reboot. Requires second reboot to work. rottie Linux - Hardware 6 01-16-2006 06:04 AM
reboot when "reboot" command not responding? neocookie Linux - General 1 08-30-2005 05:59 AM
reboot bong.mau Linux - Hardware 10 04-22-2004 12:08 PM
Cant Reboot........ randon Linux - General 3 10-16-2003 04:05 AM
HELP in reboot kcwoo Linux - General 5 02-06-2002 01:38 AM


All times are GMT -5. The time now is 05:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration