LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2009, 06:55 PM   #1
skipidar
LQ Newbie
 
Registered: Jun 2009
Posts: 15

Rep: Reputation: 0
GRUB multiboot: how to change the default boot system 4 one boot


Hello!

First the Rules of the Game:

I have a Barebone, which i wanna use as a Server. On this Server i have 2 OperatingSystems installed

1. Debian, Lenny + GRUB
2. Windows Server



Problem:

There is no Keyboard attached to the Server, im remote controlling it from the desktop (with NX Machine).

The default System in GRUB is Linux, to boot Windows Server i can simply change the "menu.lst", and reboot,
but from Windows menu.lst is unreachable and on every reboot Windows will be starting, so i can't get back to Linux.



Solution?:

Is there a way to change the GRUB default start System once,
so i can reboot, get into Windows, but on next reboot the default OS in GRUB should be Linux again?
 
Old 06-22-2009, 01:41 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Yes, you can do that with the "grub-reboot" command executed as root. In your example Debian is the default and listed as entry 1 in your menu.lst config file with windows listed as entry 2. To tell grub to boot entry 2 on reboot while in entry 1, i.e. Debian, run the following command as root:

# grub-reboot 2

It should be that simple.
 
Old 06-22-2009, 04:27 PM   #3
skipidar
LQ Newbie
 
Registered: Jun 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kilgoretrout View Post
Yes, you can do that with the "grub-reboot" command executed as root. In your example Debian is the default and listed as entry 1 in your menu.lst config file with windows listed as entry 2. To tell grub to boot entry 2 on reboot while in entry 1, i.e. Debian, run the following command as root:

# grub-reboot 2

It should be that simple.
Thank you, I felt - there should be a native solution like that in GRUB.
 
  


Reply



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
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 10:01 AM
How do I change the default boot option in GRUB martinr Linux - Software 3 04-10-2006 06:05 AM
Change Default Boot from GRUB lel800 Red Hat 14 08-25-2004 01:32 AM
How do you change the default Boot-up OS in Grub? buckwheat12 Fedora 3 05-08-2004 03:24 PM
How to change default boot for Grub? nano_electronix Linux - Software 4 09-01-2003 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 PM.

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
Open Source Consulting | Domain Registration