LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-06-2014, 02:02 PM   #1
afgcons
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
How to Change Grub Boot Order "On Demand" (from running Windows)


The PC has ubuntu 12.04 LTS and WinXP installed. It is physically inaccessible. It is usually booted by WOL (wake-up over LAN). As it is, the preferred GRUB default is to boot XP. Question: Is there a way to initiate a Windows reboot, shut down Windows but then boot ubuntu instead? e.g. leave "something" somewhere for grub to see and boot ubuntu rather than the "hard-coded" default.
 
Old 07-06-2014, 04:48 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
You could mount the boot partition ( with something like http://www.ext2fsd.com/ )
Edit the grub.cfg altering the default ( i'd use gvim for windows).
Umount /boot

You could then reboot and the new grub.cfg should 'kick in'


an alternative is to run xp in a vm on linux host
 
1 members found this post helpful.
Old 07-06-2014, 05:33 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You could if you knew which menuentry Ubuntu was in its grub.cfg file. In all likelihood, it is the first. You would also need to know which entry xp is. You would also need a timeout set for Grub, the standard is usually 10 seconds. Then you could arrow up to the Ubuntu entry, hit the Enter key and have grub boot Ubuntu. If there is no timeout, this obviously won't work and you will have to get into something more complex.

I'm not sure why you would have the bootloader of one system default boot to another system which is incapable in a default installation of writing to the other system, or even reading or recognizing it. I've not used WOL but, from your post I expect you don't see any menu?

The suggestion above of editing the grub.cfg file should work but if you don't make the same edit in /etc/default/grub, it will be gone after a grub update. I guess that won't be a problem though if you can't boot it?

Last edited by yancek; 07-06-2014 at 05:39 PM.
 
1 members found this post helpful.
Old 07-06-2014, 11:02 PM   #4
steez2002
LQ Newbie
 
Registered: Dec 2010
Location: WV
Distribution: Ubuntu 14.04
Posts: 14

Rep: Reputation: 5
How to Change Grub Boot Order "On Demand" (from running Windows)

kinda strange to me in my experience grub/grub2 in dual boot scenarios has always defaulted to Ubuntu.
 
Old 07-07-2014, 07:34 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
kinda strange to me in my experience grub/grub2 in dual boot scenarios has always defaulted to Ubuntu.
The Grub default boot entry will be the one from the system to which it is attached, in this case Ubuntu. The OP or someone obviously changed it although given the setup, I can't imagine why. Apparently not much thought was given to this.
 
  


Reply

Tags
boot order, dynamic, grub, reboot



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
"A disk read error occured" error for Win 7 boot after changing boot order in grub myrddin123 Linux - Newbie 2 10-31-2013 10:40 AM
Need to change DEBIAN 5.0 & WINDOWS 2k/xp boot order on GRUB PC caf Debian 2 04-14-2009 12:27 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM
how to change "kernel arguments" in grub boot loader permanently stupid_guy Linux - Newbie 7 06-09-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:35 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
Open Source Consulting | Domain Registration