How do i set the bootloader so that in my dualboot with Win7/Ubuntu 11.04, Windows start up as standard insted of Ubuntu?
|
feedback
|
|
With a bit of command line trickery, you can get the default of grub to always be a particular grub entry - for example Windows - no matter when a new kernel is installed. In a terminal type:
This will display all your grub entries - for example
Highlight the entry you want to default to - for example Windows 7 in the screen-shot. Right click and choose Type
Change the entry
to
i.e. paste the entry you want (including the quotes) Save, then type
| |||||
feedback
|
|
Is a very easy to use graphical GRUB2 settings manager. For now, it only allows you to edit the GRUB2 menu entries: reorder, rename or add/remove entries. It will also allow changes to background image and menu timeout. Since these are actually scripts which generate the boot.cfg file, Grub Customizer changes the actual script order and then generates a new boot.cfg so if you then run "sudo update-grub", your customization won't be overwritten. | |||
|
feedback
|
|
From my experience, I noticed that it's not so easy to change boot priority for Win7/Ubuntu 11.04. Utility, like Startup Manager seems like isctrying to change the default boot system, yet nothing happens after restart (11.04 continue to boot by default). I such case I suggest Grub Customiser Grub Customised on WebUpd8, which works well with Grub2. I just removed all absolete boot options (there are many), leaving only 11.04 and Win7. And then changed a boot priority. Now, everything works well :) Good luck. | |||||
feedback
|
|
This answer has already been accurately given by fossfreedom (http://askubuntu.com/users/14356/fossfreedom), and I answered essentially the same question elsewhere. I'm pretty sure it's not kosher, but I have an additional option that might be useful⋯so here goes. There are two ways of doing this using editing a grub file. These are described in the Ubuntu Communuity Documentation Grub2 page The two ways are
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
From mine you can see why I prefer the "saved" method. Now you are ready to edit the grub file… Type in the terminal sudo nano -B /etc/default/grub and your password if asked
and the nano editor will open, thus (for mine)...
In my preferred way, I made these changes from the standard grub file:
In the way you are asking far to this (e.g. fossfreedom )
You could set GRUB_DEFAULT to the line number in the menu entry list (with 0 being the first), but when the kernel in Ubuntu is updated grub adds the new kernel to the top of the list, you would have to change the number, since Windows is the last one in the menu entry list. You can see this in my menu entry list. Important last step Now you have to run update-grub to update the system generated grub.cfg file in the /boot/grub directory. Type into your computer sudo update-grub and your password if asked…
Notes on nano nano is especally easy to use in the terminal. Move around with the arrow keys. Type in you addtions, delete the unwanted. The " -B" (or " --backup") option backs up the previous version of it to the current filename suffixed with a ~. Very handy in case of the dreaded Fat pfinger effect. When you are though, Crtl-O will allow you to save your edits by hitting Enter. Closing nano without saving, Ctrl-X These and other options are shown at the bottom of the terminal screen with the ^ indicating Ctrl
Notes about nano, sudoeditor, and other editors. Some in the Ubuntu community suggest sudoedit instead of nano. 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). sudoedit is safer in that it automatically saves a backup copy of the edited file, but the " Notes on my grub file I made some changes to grub for my personal needs. Such as the background picture of the moon launch. How to do these are discussed at the Ubuntu Community Documentation page on Grub2, recommended. Good luck! | |||||
feedback
|
|
It can be done easily with a GUI tool called "Grub Customizer". What is Grub Customizer? Grub Customizer is a graphical interface to configure the grub2. The application allows the user to add, remove, freeze, 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?
Remember that you can't move single entries out of their respective group like Ubuntu can't be moved out of Linux group. | |||
feedback
|
|
Next time you boot your machine, count in shich position Windows 7 is placed in GRUB menu. (remember you have to count from 0 - i.e. if Windows is in the third row, then its position is 2 and so on). Boot into ubuntu, open a terminal and write
then modify the line
to
where N is the position (starting from 0) of Windows7 entry in grub menu. Tell me if you need more info about this. | |||||||||||
feedback
|
|
This is actually quite easy to do. First, you need to find out what Grub names your Windows entry. You can do that by looking in
What that command does is search for The command will output something like Now, open
and change:
to
Lastly, run:
to regenerate the Grub menu. And that's it! Future upgrades won't mess this up. Your Windows menu entry will always be selected by default. | |||
|
feedback
|
|
edit the file /etc/grub/default there you find the entry
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, quit, run the: update-grub command and reboot to behold your new changes! | |||||||
feedback
|

