Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-19-2013, 02:48 PM   #1
LQ Newbie
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
Changing the boot order after installing Ubuntu alongside Win 7

I've recently loaded Ubuntu alongside my Win 7 laptop in order to polish up on my unix command line skills to take the Linux + certification. I came across an article on how to change the default boot order for a dual boot system but cannot find it again....

Currently my machine boots Ubuntu by default unless I arrow down to the windows installation. What file do I need to edit to make Windows the default os?


Dave G.
Old 11-19-2013, 02:52 PM   #2
Registered: Sep 2010
Posts: 133

Rep: Reputation: 13
try this...

Old 11-19-2013, 02:55 PM   #3
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,167

Rep: Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889Reputation: 889
i would change the line that mentions default in the file: /boot/grub/grub.cfg.
Old 11-19-2013, 03:03 PM   #4
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,383

Rep: Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415
Change the "GRUB_DEFAULT=0" line in the /etc/default/grub file and run sudo update-grub. You would need to know which menuentry windows is to get the correct number, counting starts with zero so the third menuentry you would put 2.

The above method will work as long as you don't update grub which will set it back to whatever is in the /etc/default/grub file.
Old 11-19-2013, 11:29 PM   #5
Registered: Mar 2008
Posts: 17,182

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
Doesn't ubutu have a way to config grub from the window manager?


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
I don't get the boot loader after installing ubuntu alongside windows 7 redguy Ubuntu 22 03-20-2012 11:00 AM
[SOLVED] I cant boot up my ubuntu 11.01 after installing win 7 ! Binyam Hailu Linux - Newbie 1 12-31-2011 03:36 AM
I can't uninstal Ubuntu 9.01 alongside Win XP plang53271 Linux - Newbie 8 04-30-2010 11:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 AM.

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