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


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

astanasto, thank u very much; your thread was helpful big big time!!

For weeks now I have been trying to make my configuration to work, and today it did thanks to this thread

Basically I have a Dell Inspiron 1525 with a SATA HDD installed (Win 7). This is my working laptop, and I wanted to run my private OS from time to time from another HDD. I replaced the CD-ROM with a IDE caddy and installed a second HDD over there with my very own Windows 7 encrypted with TrueCrypt with pre-boot auth. The additional HDD is a 500GB WD SATA drive with default partitions created for Windows 7 (during the installation Win7 created a 100MB primary partition, and set the rest of space as a big Windows partition).

The problem was that the BIOS wouldn't see the second HDD and won't let me choose from which to boot. The default boot HDD is the one in the SATA bay and that's it. Temporarily I installed the encrypted HDD in the SATA bay, and the original one in the CD caddy. So after...

0 0

What is the BCD store?

The Boot Configuration Data (BCD) store contains boot configuration parameters and controls how the operating system is started in Microsoft® Windows Vista® and Microsoft® Windows Server® 2008 operating systems. These parameters were previously in the Boot.ini file (in BIOS-based operating systems) or in the nonvolatile RAM (NVRAM) entries (in Extensible Firmware Interface–based operating systems). You can use the Bcdedit.exe command-line tool to affect the Windows® code which runs in the pre-operating system environment by adding, deleting, editing, and appending entries in the BCD store. Bcdedit.exe is located in the \Windows\System32 directory of the Windows Vista partition.

Why was there a change to BCD from Boot.ini?

BCD was created to provide an improved mechanism for describing boot configuration data. With the development of new firmware models (for example, the Extensible Firmware Interface (EFI)), an extensible and...

0 0
I finally got around to converting my Windows install to EFI. I can boot El Capitan, Ubuntu and Windows 7 all from EFI on my Probook 4530s. The problem I have is that the Windows boot loader is started by default instead of Clover. The 4530s doesn't have a proper boot loader in firmware, the only option is to hit F9 and select a boot device. Something in the Windows setup (I believe it was BCDBOOT.exe) set the default boot loader to /EFI/MICROSOFT/BOOT/bootmgfw.efi but I can't figure out where this is set. If I select the boot from EFI option, I can launch Ubuntu or Windows or I can launch Clover (which can also launch Ubuntu or Windows correctly as well as El Capitan.) I've tried reinstalling Clover and resetting the BIOS to no effect.

Does anyone know how I can change the default back to Clover on the Probook?


Ok I figured it out. The EFI implementation starts /EFI/MICROSOFT/BOOT/bootmgfw.efi by default if it exists. And Clover has a predefined name...

0 0

Hello AxshunJaxun,

Thnaks for your reply. The problem is not the timeout of grub I don't even come to grub2 by default. I have to press Escape at boot and then choose boot from EFI file and select the grub file manually.

The problem is that the laptop is booting into Win8. Even when I change the boot order of the EFI system. I show now what I do to add grub to my bootorder and how I change it.

As long when my system is unchanged the boot order is as followed:

LinuxBox64x4 / # efibootmgr BootCurrent: 003D Timeout: 0 seconds BootOrder: 3001,2001,2002 Boot0001* Windows Boot Manager Boot0002* Notebook Hard Drive Boot0003* Internal CD/DVD ROM Drive Boot2001* USB Drive (UEFI) Boot2002* Internal CD/DVD ROM Drive (UEFI) Boot3001* Internal Hard Disk or Solid State Disk

Here it is clearly seen that the internal hard drive will boot when starting the pc.

Now I add grub to the boot order:

LinuxBox64x4 / # grub2-install --target x86_64-efi...
0 0

EDIT: This other page describes some portions of this procedure in more detail. A merge would be useful: MultiOSBoot. (oops, I found this page after writing this one)

I've been meaning to write this tutorial for a long while now. With the recent introduction of Grub2 into the Ubuntu community, I found it extremely frustrating to do what I had previously been doing with the legacy grub system. Don't get me wrong, Grub2 is a step in the right direction, but for me (and possibly others), I found Grub2's lack of control frustrating for what I'm accustomed to doing. (See Step #4, (ii) for additional notes)

Define: "Master Boot" -- This is the boot loader which is first loaded from the Master Boot Record (MBR). The purpose of this partition is to chainload the boot process to any number of operating systems without relying on any one operating system.

Why this "Master Boot Loader" thing?: OS installations can come and go, and if one gets blown away (or dies), we...

0 0

Configuration / Boot



At this section you can add "Boot Flags" and "Kernel Flags" to be used by the system... Here we will list only Clover's proprietary "Boot Flags", different flags, like for example, npci=0x2000, npci=0x3000, darkwake=0, etc..., should work as expected...

-v - Verbose Boot. -s - Boot OS X into Single User Mode. -x - Boot OS X into SafeBoot (Safe Mode). MountEFI=yes/diskX - Mount EFI partition at every boot or from disk X (X = disk number). LogLineCount=0 - Set maximum number of lines for log file, default 0 (no Limit). LogLocation=PATH - Set the path for the log files to be saved. LogEveryBoot=Yes/No - Save log files at every boot.


Legacy PBR

Necessary for loading old versions of Windows and Linux. Greatly depends on hardware and BIOS. Several algorithms were developed to allow customisation:

LegacyBiosDefault - for UEFI BIOS variants containing protocol LegacyBios ...
0 0

With Windows 8, Microsoft made changes to the boot experience. The simple text-based boot loader is now hidden by default and its place, there is a touch friendly graphical user interface with icons and text. Windows 10 has this as well. Although it is functionally richer, the UI is also very cumbersome to navigate and requires many OS components to be loaded before you see the GUI boot menu. In comparison, the classic boot loader in Windows 7 was extremely fast and gave you all the troubleshooting and startup related options on a single screen. For example, if you need to boot into the Safe Mode of Windows, you have to load this graphical boot UI first and then choose Safe mode. Today, we will see how to add the Safe mode option directly to the new boot loader on the screen where you get the OS choices.

All we need to do is clone the current OS boot options and modify them to start the OS in Safe mode. This is very easy to do. We will use only the built-in bcdedit...

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

Grub2 can be set to boot any system by default, but to change the order they appear in would be difficult.

It is also possible to hide the grub boot menu (for your sister) and only show it by pressing the shift key. I recommend caution here. Details here.

There are two ways setting the default boot using editing a grub file.

These are described in the Ubuntu Communuity Documentation Grub2 page

The two ways are

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

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.

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...
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

UPDATE: This tutorial will also work in Windows 8.1 and later.

One of the most interesting and impressive features introduced in Microsoft's latest OS Windows 8 is the new boot loader. Previous Windows versions used to contain a boot loader without a GUI. It was similar to Command Prompt screen where you could use the arrow keys present in your keyboard to select the desired OS to boot.

Microsoft replaced this classic boot loader with a brand new boot loader in Windows 8 which is now called "Boot Options Menu". It comes with a GUI and allows you to interact with your mouse as well. It provides various useful options such as troubleshoot PC startup problems, reset or repair Windows 8, restore Windows, disable device driver signature check, access Safe Mode and much more.

You can read more info about this new boot loader in following article:

How to Access and Use Windows 8 Metro Boot Loader and Advanced Boot Options?

But there is one...

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

Editing boot choices has become significantly more powerful, but has moved to a command-line tool.

Fire up a Windows Command Prompt, making sure to run it as administrator (right click on the shortcut and select "Run as administrator"):

In the command prompt, run bcdedit /enum - here's the result from my Windows 7 machine:

bcdedit /enum Windows Boot Manager -------------------- identifier {bootmgr} device partition=C: description Windows Boot Manager locale en-US inherit {globalsettings} default {current} resumeobject {8fe75379-c446-11de-9f1d-ab62aca77990} displayorder {current} toolsdisplayorder {memdiag} timeout 30 Windows Boot Loader ------------------- identifier {current} device partition=C: path \Windows\system32\winload.exe description Windows 7 locale en-US inherit {bootloadersettings} recoverysequence ...
0 0

We all know that Microsoft has released final version of its latest OS "Windows 8" to public and interested people can also download a free 90-day trial version of Windows 8 using following link:

Download 90-Day Trial Version of Windows 8 RTM Absolutely Free

Windows 8 comes with many new features and enhancements such as Start Screen, Ribbon UI, Win+X menu, etc. But the most impressive thing about Windows 8 is its booting time. According to Microsoft, Windows 8 boots in less than 7 seconds.

In an official post at building Windows 8 blog, Microsoft posted about Windows 8 boot loader, its menus and useful options. Microsoft says that Windows 8 boots so quickly that you can't get time to press F8 or F2 keys to access advanced boot options such as boot into Safe Mode and other boot options such as:

Boot using an alternate device such as USB, etc. Restore Windows to a working state Enable debugging option Disable driver signing option

To overcome this...

0 0

This is an article detailing different methods of Arch/Windows coexistence.

Windows UEFI vs BIOS limitations

Microsoft imposes limitations on which firmware boot mode and partitioning style can be supported based on the version of Windows used:

Windows XP both x86 32-bit and x86_64 (also called x64) (RTM and all Service Packs) versions do not support booting in UEFI mode (IA32 or x86_64) from any disk (MBR or GPT) OR in BIOS mode from GPT disk. They support only BIOS boot and only from MBR/msdos disk. Windows Vista or 7 x86 32-bit (RTM and all Service Packs) versions support booting in BIOS mode from MBR/msdos disks only, not from GPT disks. They do not support x86_64 UEFI or IA32 (x86 32-bit) UEFI boot. They support only BIOS boot and only from MBR/msdos disk. Windows Vista RTM x86_64 (only RTM) version support booting in BIOS mode from MBR/msdos disks only, not from GPT disks. It does not support x86_64 UEFI or IA32 (x86 32-bit) UEFI boot. It...
0 0

"Safe Mode" in Windows is a special mode which is mainly used for troubleshooting purposes. Many times when you can't boot into Windows because of a virus infection, a faulty software or driver installation, you can boot into Safe Mode and fix the problem. You can scan your system with antivirus, uninstall faulty software or driver using Safe Mode and you'll be able to boot into Windows normally without any problem.

So you can see Safe Mode is very useful feature of Windows OS. If you don't know how to boot into Safe Mode, let us tell you in details!

To boot into Safe Mode, you need to press "F8" key in your keyboard just before Windows boot screen appears. If you have a dual boot system, you can press "F8" key when the boot loader is shown where you select a Windows to boot. As soon as you press "F8" key, a new screen is shown which contains several booting options and on top of all options, you get an option to start Windows in Safe Mode.

Many times you are...

0 0