How do I change the GRUB boot order?


Okay, I'm a n00b at Linux, so please be nice to me. I have a minor problem with GRUB bootloader (actually more like an annoyance), I want to change the order of the OSes from Linux being on top to DOS first (actually it's Windows, GRUB just labeled it DOS).

I'm triple booting Win98se, Win2k, and Redhat 9, 98 is in the primary FAT32 partition, 2k is in an extended FAT32, and Redhat is in a partition after 2k, and it's using GRUB bootloader to load itself, and of course chainload to the bootmenu for 2k and 98.

So, basically I want it to boot over to the bootmenu for 2k and 98 and not go into Linux, I don't want to have to manually select to go to the DOS bootmenu everytime I start my PC. I know this has something to do with editing the menu.lst file, but like I said, I'm a huge newbie, and I need a walkthrough on this, so if anyone can help I will definitely appreciate...

0 0

If you’re dual booting Ubuntu with Windows 7 or other Operating Systems, you may wish to change boot order to set which OS starts by default. Well, In this tutorial I’ll show you how to do it in Ubuntu 13.10 Saucy and 13.04 Raring.

There’s a GUI (graphical user interface) tool for editing Grub 2 boot loader, it called Grub-Customizer. You can install it in Ubuntu using the PPA repository. To do so, press Ctrl+Alt+T to open terminal, then run below commands one by one:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-get install grub-customizer

With Grub-Customizer, highlight the OS entry and click up / down arrow button to change its order. Or set the default OS in General Settings tab.

If you’re comfortable with running some terminal commands, it’s not difficult to change default OS without installing any third-party program.

1.) Press Ctrl+Alt+T to open terminal. Edit the “/etc/default/grub” via...

0 0
Feb 3, 2010

I've seen many, many different solutions for how to change the GRUB boot order. Search no more. This is by far the easiest, safest way to do that.

Open your terminal and type in the following:
sudo apt-get install startupmanager

When that is done go to your control panel and you'll have a new icon that says Startup Manager. Every thing you'll need work with your GRUB menu.

General :: Change The Boot Order In Grub? General :: How To Change Boot Order In Grub General :: Any Proper Way To Change Grub Boot Order Ubuntu :: Change GRUB Boot Order: No /boot/grub/menu.lst File Ubuntu :: Change Boot Order In Grub? Ubuntu :: Change Grub Boot Order? Debian :: Change Order Of GRUB Boot List? OpenSUSE Install :: Change The Boot Order In Grub? Ubuntu Installation :: 11.04 - Change The Boot Order In The New Grub Ubuntu Installation :: Change GRUB Boot Order ? Red Hat / Fedora :: Cannot Modify Grub Menu File - Need To Change Boot Order General ::...
0 0

GRUB (GRand Unified Bootloader) is the default bootloader for Linux Mint, Ubuntu, and a host of Linux Distributions. When we are dual-booting with Windows, Linux sets itself as the default boot choice. If we prefer Windows to be the default, though, it's easy to change the GRUB boot order.

We have prepared this guide in Linux Mint 17.2 and Ubuntu 15.10. It should also work for earlier and later versions, and for most distributions based on Ubuntu/Debian.

Change GRUB boot order with GRUB Customizer

GRUB Customizer is an easy, GUI way to change the GRUB boot order, without having to edit system files manually.

To install it, we first need to add the repository. We open a terminal with ctrl+alt+T and type:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer -y

If you 're new to Linux, remember that when we enter the password within the terminal, nothing will show as we type, no stars or dots. We just type the password and submit...

0 0

Solved: See post #2

{sigh} /boot/grub/menu.lst was sooooooooooooooooo easy.

I have read:
Where is /boot/grub/menu.lst?
where snowpine says:

1. The script snippets in /etc/grub.d/
2. The configuration file /etc/default/grub

And from other things read --- its:

that is the all important one there to edit that he's talking about in 1.

as well as a few other threads found here

Well Women are from Venus Men are from Mars and this Noob is from Pluto.

I tried something else from that thread:

because it starts at 0 - right?
At least that's what it is:

.. yea! That worked - NOT! so it's back at 0

sudo medit /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=`echo CrunchBang`...
0 0
Ubuntu 11.10 Want to change grub boot order

location: - date: March 21, 2012
I upgraded from Ubuntu 9.1 ... this much I know . I need to have root permissions to modify grub.cfg. However I just cannot login as root . When asked for the password I get 'not authencated'. There was only one account created and I set a password for that . The same password does not work. I even tried recovery mode. Still I cannot get the necessary permissions.

How to Change Grub Boot Order

location: - date: June 20, 2006
I recently installed Ubuntu 6.06 and let it do the whole install automatically on my SATA drive. Grub was installed, and the Ubuntu options were listed first in the boot options, but I only "play" with Ubuntu and XP is what I use to get work done. Can I change the boot order from Windows ? If so, how ? If not, how do I do it from Ubuntu (without an avanced degree). Thanks, Johnny

Change Grub Boot...
0 0

Okay, so I was trying to install Arch on another computer and noticed that there was an EFI Shell v1 & 2 option on the Arch install disk. I ran that on the computer that is having trouble. Once I could enter commands, I did bcfg boot -v dump. It came up with
Boot2001 - USB Drive (UEFI)
Boot3001 - EFI Internal HD or SSD
Boot3002 - EFI Internal HD or SSD
Boot2002 - Internal CD/DVD ROM Drive
Error. Unable to read from 'Boot2003' (Not Found).
I used bcfg boot mv 2 1 to swap Boot3002 with Boot3001. I then used exit and restarted my computer. It booted straight to Windows 8. When I went back into the EFI shell and ran bcfg boot -v dump again, the Boot3002 option was missing. When I went to Boot Device Options (F9) the arch_grub entry was missing.

EDIT: I tried re-installing GRUB and using efibootmgr (through the live USB) to manually configure the boot options again. efibootmgr reports all of the proper boot options as well as the proper boot order....

0 0

Dual-boot or even multi-boot Ubuntu with other operating systems? You may wish to change which OS starts as default in the Grub2 boot-loader.

If you’ve booted into Ubuntu, you can change the boot order via two ways:

use Grub-Customizer, a graphical tool. configure Grub2 manually via a few commands.

Set Default OS by Manually configuring Grub:

For those who don’t wish to customize Ubuntu via third-party applications, open terminal from App Launcher or via Ctrl+Alt+T keys and do following steps:

1. First edit the configuration file via command:

gksudo gedit /etc/default/grub

Tip: for those who don’t have gksu, install it first via command: sudo apt install gksu.

When it opens, change the line GRUB_DEFAULT=0 to GRUB_DEFAULT=saved and finally save the file.

For Ubuntu Server, use the command below to edit the Grub configuration file:

sudo nano /etc/default/grub

And save changes by pressing Ctrl+X, typing Y, and...

0 0

You can also change the grub default boot entry from the command line without having to install any additional tool. This won't change the order in the list but it will allow a different OS to boot by default, which sounds like what you may want anyway.

First, make a backup copy of /etc/default/grub. In case something goes wrong, you can easily revert to the known-good copy:

sudo cp /etc/default/grub /etc/default/grub.bak

Then edit the file using vim or the text editor of your choice:

sudo vim /etc/default/grub

Find the line that contains


and set it to


where x is the index of grub menu item to which you would like to boot to by default. Note that the menu items are zero-indexed. That means that the first item in the list is 0 and that the sixth item is actually 5. So to boot to the sixth item in the list, the line would read:


If you forgot the order of the items, take a look at...

0 0

This tutorial shows you how to easily change grub boot order to make Windows as default OS in Windows-Linux dual boot.

Several people prefer to install Linux in dual boot mode with Windows. Some of them use Linux as their primary OS while some prefer Windows as their primary OS.

When you install Ubuntu or Linux Mint or elementary OS along with Windows in dual boot mode, Linux becomes the default OS. At the boot time, on the grub screen, if you do not choose Windows for login within 10 seconds (default Grub timeout), it boots up into the Linux.

This grub behavior creates problem if you prefer to have Windows as your primary OS. You have to wait till the computer boots up and stay close to your computer to choose Windows for login. This is inconvenient, I can understand.

You can change the grub behavior to make Windows your default OS in dual boot by editing the grub configuration file. While this is my preferred way, I can understand that as a...

0 0

If you read the file that you are editing in the example above (/etc/default/grub), you will notice that the very first couple lines instruct you to run update-grub after making changes in order to update the actual file that grub reads to "get its instructions" (/boot/grub/grub.cfg). Note that you must actually run it with the sudocommand first as you need root privileges to actually run the command (which is why the poster above said to type sudo update-grub). This will cause the changes you made to be written to /boot/grub/grub.cfg. The very next couple lines tell you that you can read the full documentation of options in that file (again, /etc/default/grub) by typing info -f grub -n 'Simple configuration'.

That said, set GRUB_TIMEOUT to -1 if you want to set the "grub time" to be indefinite. In other words, it will never automatically boot. You will have to make a selection.

Finally, to answer your question, here are the descriptions of those "grub hidden lines"...

0 0

Ordinarily, running Boot Repair backs up Microsoft's original boot loader file (bootmgfw.efi) as bootmgfw.efi.bkp and replaces the original bootmgfw.efi file with a copy of GRUB (or shim), and the Boot Repair output you posted would show this; however, I don't see such a backup file. Thus, I recommend you do one of three things:

Run Boot Repair again, but look for options related to backing up and replacing the Microsoft boot loader. Activate those options to continue the process. GRUB might or might not be able to launch Windows; that seems hit or miss -- and more "miss" if you leave Secure Boot active. Do the job manually: From Linux, back up /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi (I recommend moving it down one level, to /boot/efi/EFI/Microsoft/bootmgfw.efi, rather than renaming it to bootmgfw.efi.bkp, since the latter is non-standard and makes tools other than Boot Repair and Ubuntu's GRUB unable to locate it). Copy /boot/efi/EFI/ubuntu/grubx64.efi in its place; or if...
0 0

There are two ways of doing this using editing a grub file. These are described in the Ubuntu Community Documentation Grub2 page

The two ways are:

Boot which ever operating system you booted last time, the "saved method" This is the one 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. Boot a specific operating system by default. The answer to your exact question.

Finding the menuentry to set as the new default

To start we need to find out what we are booting or want to boot. Open a terminal with Ctrl+Alt+t 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...
0 0

I have an old Vista laptop that I partitioned and installed Ubuntu on, with dual-boot. I've now decided to switch entirely to Ubuntu. What's the best way to achieve this?

My current partitions:

+-------+--------------------+---------------+------------------------------+ | WinRE | C: (dual bootable) | D: | Extended | | | | +-----------+------------------+ | | | + Ubuntu | Swap | +-------+--------------------+---------------+-----------+------------------+

I'd like to change this to:

+-------+-------------------------------------------------------------------+ | WinRE | Extended | | +------------------------------------------------+------------------+ | | Ubuntu (bootable) | Swap | +-------+------------------------------------------------+------------------+

(I'd like to keep the Windows Recovery partition in case I ever want to sell the...

0 0

GRUB 2 is the latest version of GNU GRUB, the GRand Unified Bootloader. A bootloader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel, (Linux, in the case of Fedora). The kernel, in turn, initializes the rest of the operating system.

GRUB 2 has replaced what was formerly known as GRUB (i.e. version 0.9x), which has, in turn, become GRUB Legacy.

Starting with Fedora 16, GRUB 2 is the default bootloader on x86 BIOS systems. For upgrades of BIOS systems the default is also to install GRUB 2, but you can opt to skip bootloader configuration entirely.

The grub2 packages contain commands for installing a bootloader and for creating a bootloader configuration file.

grub2-install will install the bootloader - usually in the MBR, in free unpartioned space, and as files in /boot. The bootloader is installed with something like:

grub2-install /dev/sda...
0 0