LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 03: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, 05:48 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
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, 06:33 PM   #3
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,087

Rep: Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809
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 06:39 PM.
 
1 members found this post helpful.
Old 07-07-2014, 12:02 AM   #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, 08:34 AM   #5
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,087

Rep: Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809
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


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


All times are GMT -5. The time now is 06:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration