You are on page 1of 14

grub2 - How do I set Windows to boot as the default in the boot loader?

- Ask Ubuntu
Ubuntu

Community

Ask!

Developer

Design

Discourse

Hardware

Shop

More

sign up

Questions

Tags

Tour

log in

tour

help

search

Users

Ask Question

Take the 2-minute tour

Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I set Windows to boot as the default in the boot loader?
71

How do I set the bootloader so that in my dualboot with Windows 7/Ubuntu 11.04, Windows start up as
standard instead of Ubuntu?
grub2

45

share improve this question

Linked
7

Set “older” kernel as default
grub entry

6

How do I edit GRUB menu

2

GRUB and making windows
the default OS

6

How to make Windows boot
first?

2

Dual Boot Default Question
(W7 & Ubuntu)

0

How to make Windows the
default OS in grub menu?

1

How can I make Windows
boot first and Ubuntu
second?

Boot which ever operating system you booted last time, the "saved method"

2

This is the on I use. It lets me decide which one I going to use and will allow me to reboot into that
system, handy when I'm updating.

can i use windows boot
manager to boot into ubuntu
11.10

0

How to set Windows the
default OS on dual boot
system?

2

How do I change the the
boot default from Ubuntu to
Windows?

edited Dec 24 '13 at 23:23
Braiam
1

asked Jul 13 '11 at 17:13
Rasmus Peter Mathiesen
392
1
5
9

add comment

16 Answers

ACTIVE

OLDEST

VOTES

There are two ways of doing this using editing a grub file.

58

asked 2 years ago
viewed 148952 times
active 3 months ago

These are described in the Ubuntu Communuity Documentation Grub2 page
The two ways are

Boot a specific operating system by default, your exact question
To start we need to find out what we are booting, open a terminal (dash, type terminal, … ) and type in
grep menuentry /boot/grub/grub.cfg
user@YourComputer:~$ grep menuentry /boot/grub/grub.cfg
menuentry 'Ubuntu, with Linux 2.6.35-31-generic' --class ubuntu --class gnu-linux
--class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.35-31-generic (recovery mode)' --class ubuntu -class gnu-linux --class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.35-30-generic' --class ubuntu --class gnu-linux
--class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.35-30-generic (recovery mode)' --class ubuntu -class gnu-linux --class gnu --class os {
menuentry "Memory test (memtest86+)" {
menuentry "Memory test (memtest86+, serial console 115200)" {
menuentry "Windows NT/2000/XP (loader) (on /dev/sda1)" {
menuentry "Ubuntu, with Linux 2.6.32-34-generic (on /dev/sdb1)" {
menuentry "Ubuntu, with Linux 2.6.32-34-generic (recovery mode) (on /dev/sdb1)" {
menuentry "Ubuntu, with Linux 2.6.32-33-generic (on /dev/sdb1)" {
menuentry "Ubuntu, with Linux 2.6.32-33-generic (recovery mode) (on /dev/sdb1)" {
menuentry "Windows Vista (loader) (on /dev/sdc1)" {
From mine you can see why I prefer the "saved" method.

see more linked questions…

Related
0

GRUB doesn't boot-up
Windows as default even
though I modified it using
Start-up manager

0

How do I set windows to
boot as default in the boot
loader? Unable to locate
theme engine?

0

How to change default boot
with two Ubuntus?

2

How to Load ubuntu with
windows 8 boot loader

0

recovering linux boot loader
after reinstalling windows

0

How to set Windows the
default OS on dual boot
system?

1

Must go through Windows
Boot Loader to get to Grub

0

Boot Loader doesn't offer
windows 7?

2

Making Windows Boot Loader
the default instead of Grub 2

0

How to set GRUB default, not

Now you are ready to edit the grub file…
Type in the terminal sudo nano -B /etc/default/grub and your password if asked
user@YourComputer:~$ sudo nano -B /etc/default/grub
and the nano editor will open, thus (for mine)...
# If you change this file, run 'update-grub' afterwards to update

http://askubuntu.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ]

×

35-31-generic Found initrd image: /boot/initrd..) #GRUB_BADRAM="0x01234567. but only one drummer in a band? SSL not working on home page Properties of vector spaces without AC Why isn't the arresting hook always used on land? Is the address on 1040 and MD resident 502 my previous address in 2013 or my current address? Which is better button.04.6. GRUB_DEFAULT="Windows NT/2000/XP (loader) (on /dev/sda1)" You could set GRUB_DEFAULT to the line number in the menu entry list (with 0 being the first).35-30-generic Found initrd image: /boot/initrd.0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 GRUB_GFXMODE=1280x800 GRUB_GFXPAYLOAD_LINUX=1280x800x8 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_LINUX_RECOVERY="true" # Uncomment to get a beep at grub start In my preferred way.0xfefefefe.04) on /dev/sdb1 Found Windows Vista (loader) on /dev/sdc1 done Notes on nano http://askubuntu.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] A Poster About Prime Numbers Did the German Enigma machine use multiple encryption keys? Inner model in which every uncountable cardinal is large Probability of Parking Spot Being Empty Why does nslookup return two or more ip address for yahoo.6. kernel of FreeBSD .bin Found Windows NT/2000/XP (loader) on /dev/sda1 Found Ubuntu 10.cfg .0x89abcdef.6. I made these changes from the standard grub file: I changed the value of GRUB_DEFAULT to "saved" Windows Boot Manager Hot Network Questions Can you have multiple lost and found directories? Is there a word to describe the state of being the only one of something? Is it necessary to ask permission before including someone in the acknowledgements of a research paper? Why are there many guitarists. This will be found in the previous grep … output prior.com? How come so many species in Star Trek universe have compatible communications technologies? What female mathematician can I introduce to my High School students? Do any US airlines make use of their right to fly between EU airports? The nuance of 'young' and 'younger' in this context problem books at undergraduate level What happens when Zombies are Slowed? .3 LTS (10. I set GRUB_DEFAULT to "Windows NT/2000/XP (loader) (on /dev/sda1)".. with Icon befor or after the text? Table with multirows. but when the kernel in Ubuntu is updated grub adds the new kernel to the top of the list.cfg.grub2 .35-31-generic Found linux image: /boot/vmlinuz-2.35-30-generic Found memtest86+ image: /boot/memtest86+. Found background: /usr/share/images/grub/Apollo_17_The_Last_Moon_Shot_Edit1.img-2. You can see this in my menu entry list. multicolumns. modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach. For my system if I wanted to only allways boot my Window XP. everything between the "'s. GRUB_DEFAULT=saved #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX_DEFAULT="delayacct" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering. Type into your computer sudo update-grub and your password if asked… user@YourComputer:~$ sudo update-grub Generating grub.Ask Ubuntu # /boot/grub/grub. you would have to change the number. since Windows is the last one in the menu entry list.img-2.6. and a combination of both Finding "Maxima" and "Minima" on a B-Spline and I added this line… Why cannot a user change group ownership of his own files? GRUB_SAVEDEFAULT=true Almost Equilaterial Heronian Triangles GRUB_DEFAULT=saved In the way you are asking far to this Change the value of GRUB_DEFAULT to the name of the Windows system you want to always boot.cfg file in the /boot/grub directory..com or microsoft.How do I set Windows to boot as the default in the boot loader? . Important last step Now you have to run update-grub to update the system generated grub..tga Found linux image: /boot/vmlinuz-2.

but not too simple. Closing nano without saving. If you prefer not to use the nano editor and prefer the Gnome Text Editor." (The last three words are omitted when some quote this). sudoedit is safer in that it automatically saves a backup copy of the edited file. really appreciated.grub2 . but as i saw . Note that the Gnome text editor does not automatically make a backup! Notes on my grub file I made some changes to grub for my personal needs. sir. delete the unwanted. and /etc/default/grub could easily be considered a large file. Thus type in gksu gedit /etc/default/grub instead of sudo nano -B /etc/default/grub. When you are though. Ctrl-X These and other options are shown at the bottom of the terminal screen with the ^ indicating Ctrl ^G Get Help Pos ^X Exit Spell ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Notes about nano.. –  twome Apr 13 '13 at 9:02 add comment 38 With a bit of command line trickery. GRUB customizer it much easy :P XD –  Rani. The " -B" (or " --backup") option backs up the previous version of it to the current filename suffixed with a ~. Good luck! share improve this answer edited Nov 28 '11 at 20:39 answered Nov 26 '11 at 18:53 keepitsimpleengineer 2. and other editors. Thanks for the kudo. Some in the Ubuntu community suggest sudoedit instead of nano.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] . recommended. I recommend nano (which is the default sudoedit editor in later distributions of Ubuntu) instead of sudoedit because the default can be overridden in non-obvious ways (unless you are an administrator). Crtl-O will allow you to save your edits by hitting Enter. In a terminal type: fgrep menuentry /boot/grub/grub. Type in you addtions.Ask Ubuntu nano is especally easy to use in the terminal. Move around with the arrow keys. I generally do this for large files.no matter when a new kernel is installed. it's really. Well done! –  Scaine Nov 27 '11 at 12:13 1   Keep it simple is based on the Einstein quote: "Things should be as simple as possible. nano is safer than other editors like vi or emacs because it doesn't have scary shell escapes.026 17 45     This incredibly complex.Shemer Dec 2 '11 at 20:38     This is an absolutely brilliant answer. How to do these are discussed at the Ubuntu Community Documentation page on Grub2. instead of sudo nano -B use gksu gedit. you can get the default of grub to always be a particular grub entry for example Windows . Such as the background picture of the moon launch.How do I set Windows to boot as the default in the boot loader? . but the " -B " command line option in nano does the same thing. –  keepitsimpleengineer Nov 28 '11 at 20:24     love it help me a lot . Very handy in case of the dreaded Fat pfinger effect . sudoeditor. Thanks so much for providing all that useful context..cfg This will display all your grub entries .for example http://askubuntu. but excellently written answer makes a mockery of your username.

First Step. Look for the GRUB_DEFAULT=0 line and change it's value from 0 to the selected Windows menu entry by pasting it.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] .grub2 .6. GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)" http://askubuntu. serial console 115200)" { menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os { You will then select the Windows partition.38-8-generic (recovery mode)' --class ubuntu -class gnu-linux --class gnu --class os { menuentry "Memory test (memtest86+)" { menuentry "Memory test (memtest86+.6.cfg This will list the grub menu entries. type the following on the terminal: gksudo gedit /etc/default/grub It will open the /etc/default/grub file with gedit. Second Step. Right click and choose copy Type gksu gedit /etc/default/grub Change the entry GRUB_DEFAULT=0 to GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda2)" i.e.Ask Ubuntu Highlight the entry you want to default to .How do I set Windows to boot as the default in the boot loader? . To do this. with Linux 2.38-8-generic' --class ubuntu --class gnu-linux -class gnu --class os { menuentry 'Ubuntu.for example Windows 7 in the screen-shot. Open the /etc/default/grub file. open a terminal by pressing Ctrl+Alt+T and type the following: grep menuentry /boot/grub/grub. then type sudo update-grub source share improve this answer edited Jul 13 '11 at 21:19 answered Jul 13 '11 at 20:51 fossfreedom ♦ 93. . with Linux 2. To do this. Determine the Windows OS' position in the grub menu. in my case "Windows 7 (loader) (on /dev/sda1)" including the double quotes and copy it. paste the entry you want (including the quotes) Save. I'll use my grub menu as an example: menuentry 'Ubuntu.1k 15 200 251 add comment 12 You need to edit the /etc/default/grub file to set Windows as your default OS.

therefore you can also set GRUB_DEFAULT=4 After which. the Windows OS value would be 4.How do I set Windows to boot as the default in the boot loader? .Ask Ubuntu Alternatively. you can try instead grub customizer Install Grub Customizer in ubuntu Open the terminal and run the following command sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-get install grubcustomizer Once you install you can open from Applications -> System Toiols -> Grub Customize –  dago Nov 26 '11 at 17:50 add comment You can follow this nitstorm answer here . share improve this answer answered Nov 26 '11 at 17:24 dago 1.560 11 17 2   Sorry I just saw that you said that startup manager is not working in the 64bit version. which you can start from the dash. take note that index starts counting at 0.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] . application lens. you need to update grub by typing sudo update-grub share improve this answer edited Jul 16 '12 at 14:42 Anwar Shah 19.5k 6 52 107 answered Jul 12 '12 at 11:51 Peachy 3. so in my example. you can use an integer value specifying the index position of the Windows OS. 9 You will have to add Grub-customizer through sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-get install grub-customizer Then launch it from dash .grub2 .112 4 20 33 add comment 9 Use startup manager. http://askubuntu. There you can use the OS to start with in the dropdown menu.

com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] . so choose wisely and select the Windows 7 entry and from the top Menu bar . See: ubuntuforums.441 3 21 39 add comment 8 Change the value of GRUB_DEFAULT in /etc/default/grub to whatever windows is on grubs list of available operating systems when you boot.564 1 11 22 1   This method needs to be modified to always correctly identify the correct menu entry (for windows). This method will only work in the simplest setup.How do I set Windows to boot as the default in the boot loader? .php?t=1195275 –  david6 Nov 27 '11 at 5:52 http://askubuntu. run sudo update-grub . and may NOT survive a kernel update or other changes. For booting into Windows directly select the preference and reduce the boot-time to load windows.grub2 . For example in my case I would have to change that line from GRUB_DEFAULT=0 to GRUB_DEFAULT=5 After that. share improve this answer edited Nov 28 '11 at 8:40 answered Nov 26 '11 at 16:52 imbaer 1.Ask Ubuntu the above menu will be different to yours. share improve this answer edited Jul 12 '12 at 6:54 answered Jul 12 '12 at 6:31 tijybba 7.org/showthread. select the ^ arrow to move it upward to have the top position . while booting.

Hit Super key (Windows key) to open Unity dash and search for "" and open it. all other kernel's are grouped in "other kernels" (or something similar. didn't know there was a GUI for GRUB2 configuration. rename and reorder boot menu items How to install? Hit Alt + Ctrl + T to open terminal and run following commands one by one: sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-get install grub-customizer How to use? Once installed. it survives kernel updates. +1 on this one . So I have to disagree. That's it! Remember that you can't move single entries out of their respective group like Ubuntu can't be moved out of Linux group.How do I set Windows to boot as the default in the boot loader? . share improve this answer answered May 17 '12 at 4:05 Basharat Sial 9.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] .258 4 26 48     Nice. it should be =5. The application allows the user to add. it only allows you to edit the GRUB2 http://askubuntu. 5 What is Grub Customizer? Grub Customizer is a graphical interface to configure the grub2. freeze. remove.Ask Ubuntu 1   Today only the newest kernel has 2 entries (recovery and normal boot).grub2 . I don't recall the name). Select the Linux group by clicking on Linux and move it down by clicking on down arrow in toolbar. Once done. Click on save. For now. –  imbaer Nov 28 '11 at 8:40 add comment It can be done easily with a GUI tool called "Grub Customizer". –  imbaer Nov 27 '11 at 10:40     I added the comment because your example used =6 –  david6 Nov 27 '11 at 20:35     That's right.) –  ruffEdgz May 17 '12 at 13:43 add comment Grub-Customizer: 2 Is a very easy to use graphical GRUB2 settings manager.

3. 3. and the Windows entry should be highlighted as the default! share improve this answer answered Jan 26 '13 at 19:34 Addison Montgomery 623 2 17 add comment 1 From my experience. your customization won't be overwritten.cfg so if you then run "sudo update-grub". so open a Terminal and run the following command: $ fgrep menuentry /boot/grub/grub. I just removed all absolete boot options (there are many). I noticed that it's not so easy to change boot priority for Win7/Ubuntu 11.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] . it is Windows 8 (loader) (en /dev/sda1) .342 7 17 add comment 2 Identify the name of the Windows entry On the GRUB. I such case I suggest Grub Customiser Grub Customised on WebUpd8. close gedit. Since these are actually scripts which generate the boot.Ask Ubuntu menu entries: reorder.recovery mode' --class linuxmint --class gnu-linux --class gnu --class os { menuentry "Memory test (memtest86+)" { menuentry "Memory test (memtest86+.5. and now let's set is as the default.04 continue to boot by default). leaving only 11. Updating GRUB Just run this command: $ sudo update-grub Now just restart. And then changed a boot priority.cfg file.0-17-generic (/dev/sda6)' --class linuxmint --class gnu-linux --class gnu --class os { menuentry 'Linux Mint 14 Cinnamon 64-bit. Grub Customizer changes the actual script order and then generates a new boot. In my computer: GRUB_DEFAULT=Windows 8 (loader) (en /dev/sda1) Now just save the file.cfg The output should be something like this: if [ x"${feature_menuentry_id}" = xy ]. yet nothing happens after restart (11.04 and Win7. and update grub. which works well with Grub2.How do I set Windows to boot as the default in the boot loader? . serial console 115200)" { menuentry 'Windows 8 (loader) (en /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-06B66EA8B66E97C7' { menuentry 'Microsoft Windows XP Embedded (en /dev/sda4)' --class windows --class os $menuentry_id_option 'osprober-chain-7246B3A846B36C0B' { Look at the line we were talking about! In my machine.grub2 . It will also allow changes to background image and menu timeout. Utility. Now. open our configuration file with gedit (a text editor) as root.0-17-generic (/dev/sda6) -. everything works well :) http://askubuntu. then menuentry_id_option="--id" menuentry_id_option="" export menuentry_id_option menuentry 'Linux Mint 14 Cinnamon 64-bit. like Startup Manager seems like isctrying to change the default boot system.5. rename or add/remove entries. We need to know what's that name on your machine. there should be an entry like Windows 7 (loader) (/dev/sda1) . share improve this answer answered Jul 13 '11 at 23:21 13east 1. running this command: $ gksudo gedit /etc/default/grub Search for this line: GRUB_DEFAULT=0 And modify the 0 with the name of your Windows entry. Setting the Windows entry as the default That's easy! First. Write the name of your entry somewhere.04.

com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] . quit.grub2 .Ask Ubuntu Good luck. First. It does not take in account new grub2 menu inserts :) –  Vincenzo Jul 16 '11 at 8:28 add comment 1 This is actually quite easy to do. you need to find out what Grub names your Windows entry.10 uses grub2. open /etc/default/grub by running: gksudo gedit /etc/default/grub and change: GRUB_DEFAULT=0 to GRUB_DEFAULT="Name of your Windows menu entry" Lastly. Now. You can do that by looking in /boot/grub/grub. :) –  Nirmik May 16 '12 at 20:12     I could be wrong but didn't 11. run: sudo update-grub to regenerate the Grub menu.518 2 12 33     I have used Startup Manager on my parents' desktop dual-booting Windows XP and Ubuntu 10.You might get into trouble. But it's the same –  tomodachi May 20 '12 at 13:22 http://askubuntu. And that's it! Future upgrades won't mess this up.How do I set Windows to boot as the default in the boot loader? .cfg | grep -i Windows | sed -e 's/^. The command will output something like Microsoft Windows XP Professional (on /dev/sdb2) . it has worked nicely.04 LTS. –  WarriorIng64 Jul 14 '11 at 18:54     Hi ! I suppose it's a matter of how Grub2 treat new kernel installs.be careful and take care that you do not mess up with anything other than what is written.cfg and remove the text outside of the " characters. my examples are from 12.*$//g' What that command does is search for Windows in /boot/grub/grub. run the: update-grub command and reboot to behold your new changes! share improve this answer answered May 16 '12 at 20:08 tomodachi 2. share improve this answer answered Jul 13 '11 at 20:54 Xiao-Long Chen 2.10 use grub2 and isn't the /etc/grub/default more of an older grub1 change? Just wondering.(judging from your choice of keeping windows the default OS.cfg or by running this command: sudo cat /boot/grub/grub.208 1 9 18 add comment edit the file /etc/grub/default 1 there you find the entry GRUB_DEFAULT=0 when you first start your computer and get the grub menu the first entry in your boot menu is 0 so if the second entry in your boot menu is Windows change this digit to 1 save.04. share improve this answer answered Jul 13 '11 at 20:06 Vincenzo 1.I am sorry if i am wrong) So when you carry out the above procedure. –  ruffEdgz May 16 '12 at 21:29     11. Your Windows menu entry will always be selected by default.* "//g' -e 's/".750 8 26     @ Daniel Guzman You seem new to Linux/Ubuntu. and aside from the fact that you have to re-run it every time you upgrade to a new kernel.

Jul 13 '11 at 17:53 http://askubuntu. type sudo update-grub .grub2 .6. if windows 7 is on the 5th line.38-8-generic' --class ubuntu --class gnu-linux -class gnu --class os { menuentry 'Ubuntu. count in shich position Windows 7 is placed in GRUB menu. then you have to put 1 (the first row is numbered 0) –  Juan Sebastian Totero Jul 13 '11 at 17:47     thus the formula for "N" is: <line its on in human numbering> . So. serial console 115200)" { menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os { As you may can observe. so I am not sure that your OS is using grub2 or the old grub. this is a sample output: menuentry 'Ubuntu. open a terminal and write sudo gedit /etc/default/grub then modify the line GRUB_DEFAULT="0" to GRUB_DEFAULT="N" where N is the position (starting from 0) of Windows7 entry in grub menu. but it is more likely that you have grub2.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] .e. then its position is 2 and so on). because the grub option index starts from 0) So.How do I set Windows to boot as the default in the boot loader? . with Linux 2. (remember you have to count from 0 . Next.6. Windows 7 is on the 5th line of the output. share improve this answer edited Apr 7 '13 at 21:37 answered Apr 6 '13 at 23:54 fromnaboo 408 3 7 add comment 0 Next time you boot your machine.cfg This command gives you an output saying what startup possibilities / OSes you have. Tell me if you need more info about this.Ask Ubuntu add comment You don't need to install the grub-customizer!!! 1 i do not know what ubuntu you have installed.1 –  Thomas W. with Linux 2. you need GRUB_DEFAULT=6 To save the changes. Boot into ubuntu.i. share improve this answer answered Jul 13 '11 at 17:37 Juan Sebastian Totero 590 4 12     So if my windows is placed in position 2 then i will write "2" in the command where you wrote "N"? –  Rasmus Peter Mathiesen Jul 13 '11 at 17:42     if it's in the second row. if Windows is in the third row. you open the /etc/default/grub file with your text editor and sudo priviledges and modify the GRUB_DEFAULT value to (the number of the line where you have Windows 7 minus one. AND this is everything.38-8-generic (recovery mode)' --class ubuntu -class gnu-linux --class gnu --class os { menuentry "Memory test (memtest86+)" { menuentry "Memory test (memtest86+. you need GRUB_DEFAULT=4 if windows 7 is on the 7th line. this is what you have to do for grub2: grep menuentry /boot/grub/grub.

open your package manager. Mark it for installation then click apply to start the process." Click on that and enter your password.) –  Rasmus Peter Mathiesen Jul 13 '11 at 17:54 1   Actually it doesn't. It is easy to install and use.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] or ask your . that´s what i ment . In ubuntu. You can have it automatically boot into a certain OS every time or just boot into whichever OS was booted last. Never had problems upgrading.grub2 . After installation. posting an answer now requires 10 reputation on this site. share improve this answer edited Apr 6 '13 at 23:35 Seth ♦ 11. it has a GUI so you can see easily what you are changing. because when upgrading warns you the file it's installing has changed. Alternately you could just open a terminal and run the following commands: sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-get install grub-customizer You may want to pick out a pretty picture to use as background to your grub boot menu. Now click on the second tab entitled "Other Software" and press the add button toward the bottom. close the Software Sources dialog now and push the check for updates button on your package manager if it didn't already start to update the available packages. Agree to install any dependencies so they get installed automatically as well. you can do it also with grub-customizer. under settings you should find "Configure Software Sources. but it is more difficult than by command line. Here are some links if you want to learn more before starting: Launchpad PPA for Grub Customizer Guide on How to Geek with walk through and pictures share improve this answer answered Jan 26 '13 at 20:07 starrysky 52 1 1 8 add comment -1 Normally when I have to "mess up" the Grub I use "Grub Customizer". Just type this into the terminal: sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-get install grub-customizer Then search in the Dash for grub customizer and change the predefined entry to Windows. –  hbdgaf Apr 6 '13 at 22:57     it is not necesarry to install software for changing the grub order. and prompts you if you want to change it. but I think this should be merged in to the other question as an answer if this closes. –  Juan Sebastian Totero Jul 14 '11 at 9:53 show 1 more comment 0 I use grub customizer to do that. Enter in the PPA for grub customizer : ppa:danielrichter2007/grub-customizer Click OK and a couple of new lines will show up.How do I set Windows to boot as the default in the boot loader? .Ask Ubuntu 1   Right right. modify it or install a new one. Because it has attracted low-quality answers. Type into the search function : "grub-cus" and you will see the grub customizer at the top of the list.3k 14 44 82 answered Apr 6 '13 at 22:52 s0ldier 1     I haven't used this. you can find grub-customizer by typing "grub" into the search dialog or you can also find it in the menu under Applications>Settings>Grub-Customizer. Would you like to answer one of these unanswered questions instead? Not the answer you're looking for? Browse other questions tagged grub2 http://askubuntu. i think –  fromnaboo Apr 6 '13 at 23:56 add comment protected by Community ♦ Sep 22 '13 at 22:17 Thank you for your interest in this question.

How do I set Windows to boot as the default in the boot loader? .4. user contributions licensed under cc by-sa 3. question feed about help badges blog chat data legal privacy policy jobs TECHNOLOGY advertising info mobile CULTURE / RECREATION SCIENCE OTHER English Language & Usage Mathematics Stack Apps Cross Validated (stats) Meta Stack Exchange Theoretical Computer Science Area 51 Mi Yodeya (Judaism) Travel Physics Home Improvement Christianity MathOverflow Personal Finance & Money Arqade (gaming) more (7) Programmers Database Administrators Photography Server Fault Unix & Linux Drupal Answers Science Fiction & Fantasy Super User Ask Different (Apple) SharePoint Graphic Design Web Applications WordPress Development User Experience Seasoned Advice (cooking) Webmasters Game Development TeX .18.0 with attribution required rev 2014. http://askubuntu.LaTeX Geographic Information Systems Mathematica more (14) Electrical Engineering Android Enthusiasts Information Security feedback LIFE / ARTS Stack Overflow Ask Ubuntu contact us more (11) Skeptics Bicycles Role-playing Games more (21) site design / logo © 2014 stack exchange inc.1558 Ubuntu and Canonical are registered trademarks of Canonical Ltd.grub2 .com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader[21/4/2014 8:58:25 μμ] Stack Overflow Careers .Ask Ubuntu own question.

12.04 Dual boot. It's 100% free. but you can set the default entry. The Linux boot is 1st and the Windows 2nd.10. I need to know the steps to go about editing GRUB.10 grub2 dual-boot share improve this question Linked 71 How do I set Windows to boot as the default in the boot loader? 1 After installation of Ubuntu alongside windows 7 boot menu shows Ubuntu. I would like to reverse the boot order in the GRUB menu.12. no registration required. × How do I edit GRUB menu [duplicate] 6 3 asked 1 year ago viewed 72568 times active 1 year ago This question already has an answer here: How do I set Windows to boot as the default in the boot loader? 16 answers I have a dual boot on my computer of Windows 7 and Xubuntu 12. 2 Answers ACTIVE OLDEST VOTES 3 Windows 7 and Ubuntu 12.478 8 27 asked Mar 7 '13 at 7:58 49 user138310 31 1 1 2 add comment Related marked as duplicate by vasa1.com/questions/265010/how-do-i-edit-grub-menu[21/4/2014 8:59:41 μμ] .04 12.Ask Ubuntu Ubuntu Community Ask! Developer Design Discourse Hardware Shop More › sign up Questions Tags Tour log in tour help search Users Ask Question Take the 2-minute tour Ask Ubuntu is a question and answer site for Ubuntu users and developers.I do most of my work on Windows and need it to be 1st so I can boot up and not watch it.04 . hhlp. Chris Wilson Mar 7 '13 at 13:09 This question has been asked before and already has an answer. 5 in terminal sudo gedit /etc/default/grub I dont know what your grub menu looks like but lets say: Ubuntu Memory test Windows 7 in this case if you want windows 7 to boot by default you replace GRUB_DEFAULT=0 with GRUB_DEFAULT=2 save file and in terminal: Draw the shadows of buildings What should I buy to get in a D&D crowd? sudo update-grub Why are laptop screens sized the way they are? reboot share improve this answer Hot Network Questions answered Mar 7 '13 at 8:11 Kempe 1. that is vital for the story? How do I practice harmonizing in singing?     should be gksu gedit –  endolith Mar 11 at 0:36 http://askubuntu.How do I edit GRUB menu . please ask a new question. Grub not showing! 0 Selecting Windows in grub redirects to bootmgr 4 Dual Boot . con-f-use.No GRUB 0 Grub menu editing help 1 Grub menu doesn't appear on HP Z220 Workstation 1 Dual boot Win7/Ubuntu GRUB menu flashes.207 3 18 What to do when a player dislikes his character. memory tester. Windows 7 how can I edit it? 0 Windows 7 is not shown in GRUB menu after 13.04 install windows-7 edited Mar 7 '13 at 8:25 BuZZ-dEE 3. cannot select 1 Dual-boot computer runs Windows Boot Manager followed by grub menu: how to change to just grub? 0 How to prevent GRUB from appearing after selecting Ubuntu from Windows' Dual Boot menu? 0 How to re-enable GRUB when installed Ubuntu system won't boot? 0 Not getting into Grub anymore after running BootRepair I dont know if you can change the order of the menu in an easy way. Stephen Myall. If those answers do not fully address your question.

04 Seasoned Advice (cooking) more (11) Skeptics Bicycles Role-playing Games more (21) site design / logo © 2014 stack exchange inc.10 doesn't have etc/default/grub? –  endolith Mar 11 at 1:15 add comment The menu entry of "Windows 7" in /boot/grub/grub..18.How do I edit GRUB menu .12..cfg may look like this: 5 . menuentry "Windows 7 (/dev/sda1)" { #it's depend on your config .com/questions/265010/how-do-i-edit-grub-menu[21/4/2014 8:59:41 μμ] Stack Overflow Careers .1558 Ubuntu and Canonical are registered trademarks of Canonical Ltd. http://askubuntu. about help badges blog chat data legal privacy policy jobs advertising info TECHNOLOGY mobile SCIENCE OTHER English Language & Usage Mathematics Stack Apps Cross Validated (stats) Meta Stack Exchange Area 51 Mi Yodeya (Judaism) Theoretical Computer Science Travel Physics Home Improvement Christianity MathOverflow Personal Finance & Money Arqade (gaming) more (7) Programmers Database Administrators Photography Unix & Linux Drupal Answers Science Fiction & Fantasy Super User Ask Different (Apple) SharePoint Graphic Design WordPress Development User Experience Geographic Information Systems Mathematica Webmasters Game Development TeX .cfg .04 .10 LIFE / ARTS Stack Overflow Web Applications 12.LaTeX more (14) Electrical Engineering Android Enthusiasts Information Security feedback CULTURE / RECREATION Server Fault Ask Ubuntu contact us 12...Ask Ubuntu more hot questions     also 13. You can also write GRUB_DEFAULT="Windows 7 (/dev/sda1)" to /etc/default/grub to avoid the order problem in grub.478 8 27 49 answered Mar 7 '13 at 8:43 Oling Cat 51 1     Just what I was looking for today! Thanks a lot bro :) –  Spirit Dec 7 '13 at 13:34 add comment Not the answer you're looking for? Browse other questions tagged grub2 dual-boot windows-7 or ask your own question.4. share improve this answer edited Mar 7 '13 at 9:03 BuZZ-dEE 3. user contributions licensed under cc by-sa 3.0 with attribution required rev 2014.