Information about known causes and solutions for the boot-time error message “No g2ldr” and other g2ldr errors affecting the boot-up sequence for Windows XP or Windows Vista, Windows 7, and Windows 8 or 8.1

Contents

About “No g2ldr”

The following information on this error has been compiled by NeoSmart Technologies, based on the information gathered and reported by our global network of engineers, developers, and technicians or partner organizations.

Description and Symptoms

The error messages, alerts, warnings, and symptoms below are tied to this error.

Symptom 1: “No g2ldr” seen on reboot

When attempting to start up a PC, an error stating “No g2ldr” is shown on the screen. It may or may not be accompanied with other error details or warning texts:

No g2ldr boot error

The full text:

No g2ldr

Causes of this Error

This error has been known to occur as a result of one or more of the following:

Cause 1: Failed Linux installation

G2LDR, short for “GRUB2 Loader,” is a variation/fork of the GRUB2 and Grub4Dos bootloaders.

In particular, it is an updated version of Grub4Dos (aka GRLDR) compatible with/designed around the GNU GRUB 2 bootloader (instead of legacy GRUB). Some Linux distributions use the g2ldr bootloader to load the GRUB 2 bootloader from a “Windows” partition — basically, NTFS or FAT32.

A failed such Linux installation can result in the “no g2ldr” error upon boot.

It is also possible for g2ldr to be correctly installed and used for some time, before the error presents itself as a result of a Windows Update or Automatic Update that involved and update or upgrade of one or more of the core boot components (in this case, BOOTMGR or the bootsector).

Case 2: Failed recovery of the bootsector

Certain Windows recovery utilities employ G2LDR (the GRUB2 loader for Windows) to load BOOTMGR from the disk.

Normally, this is attempted when the “regular” bootsector used by Windows Vista, Windows 7, and Windows 8 to locate and load BOOTMGR from the boot partition has failed. In these cases, the G2LDR loader is sometimes used as a proxy to attempt a round-about fashion of locating and loading BOOTMGR.

Fix no g2ldr in Windows XP

Windows Setup CD/DVD Required!
Some of the solutions below require the use of the Microsoft Windows setup CD or DVD. If your PC did not come with a Windows installation disc or if you no longer have your Windows setup media, you can use Easy Recovery Essentials for Windows instead. EasyRE will automatically find and fix many problems, and can also be used to solve this problem with the directions below.

Fix #1: Manually attempt recreation of boot.ini

For Windows XP machines seeing the “no G2LDR” error at boot, the following instructions detailing the correct (re)installation of the bootsector and Windows XP NTLDR bootloader as well as the recreation of the BOOT.INI boot entry configuration file can repair the issue:

A boot.ini file is used by Windows to configure and display its operating system options. Instructions on manually recreating the boot.ini file are also available, but require a moderate level of computer expertise. The instructions below will guide you on recreating boot.ini automatically from the Windows XP setup CD.

Unable to boot into the Windows setup CD?
See our guide on setting up a PC to boot from the CD or DVD for troubleshooting and more detailed instructions.

  1. Insert your Windows XP CD and restart your computer.
  2. Press a key to boot into the CD when you see the “Press any key to boot from CD” message.
  3. When you arrive at the “Welcome to Setup” message, press R to start the Recovery Console.
  4. Type in your Administrator password; hit Enter
  5. The next command you need to write is below; hit Enter afterwards:
    bootcfg /rebuild

The above command, bootcfg /rebuild, will scan your computer for installed Windows copies. If you have Windows XP, here are the next steps:

  1. Press Y if the command prompt shows a message similar to the one below:
    Total Identified Windows Installs: 1
    
    [1] C:\Windows
    Add installation to boot list? (Yes/No/All)
  2. When you receive a message like this:
    Enter Load Identifier

    You are being asked to provide a name to be assigned and shown in the boot menu for the installation you picked in the previous step. Examples:

    Enter Load Identifier: Windows XP Professional (Recovered)
  3. (Optional) When you receive a message like this:
    Enter OS Load options

    Type in /fastdetect followed by Enter

  4. Restart your computer.

Fix no g2ldr in Windows Vista, 7, 8 or 8.1

Windows Setup CD/DVD Required!
Some of the solutions below require the use of the Microsoft Windows setup CD or DVD. If your PC did not come with a Windows installation disc or if you no longer have your Windows setup media, you can use Easy Recovery Essentials for Windows instead. EasyRE will automatically find and fix many problems, and can also be used to solve this problem with the directions below.

Fix #1: Manual recreation of the BCD

As the “no g2ldr” startup error is normally associated with the presence of a non-standard bootsector, the following instructions on fully reinitializing the MBR and bootsector with the default BOOTMGR-loading code can usually resolve the issue:

Problems booting up Windows can often be traced back to errors in the bootloader installation or configuration. Rebuilding your PC’s master boot record (MBR), partition bootsectors, and boot configuration data (BCD) can fix various problems with the BOOTMGR bootloader.

You can rebuild the BCD using bootrec.exe, a tool built found in the Windows Recovery Environment. Follow these steps:

  1. Insert your Windows installation DVD into your PC’s CD-ROM drive,
  2. Fully power down your PC, and make sure it has fully shut off,
  3. Power up your PC,
  4. Press any key when you see “Press any key to boot from CD or DVD..”
  5. Click the link titled “Repair your computer” in the bottom-lefthand corner, after first selecting your language and keyboard options.
    Windows 7 setup Install Now dialog, with repair your computer link
  6. Wait for Startup Repair to scan your PC for Windows installations, then select your install from the list it shows:
    Startup repair lists available operating systems to repair.
  7. Choose “Command Prompt” from the list of available recovery options to begin:
    Startup Repair lists all available recovery options, choose a recovery tool
  8. Once the command line has launched, type in the following commands in the Command Prompt and hit Enter after each command:
    bootrec /fixmbr
    bootrec /fixboot
    bootrec /rebuildbcd

Unable to boot into the Windows setup CD?
See our guide on setting up a PC to boot from the CD or DVD for troubleshooting and more detailed instructions.

BCD not getting rebuilt?
There is an entire entry in our wiki dedicated to advanced manual repair of the bootloader that can also be followed, if necessary.

Fix #2: Use EasyBCD to configure Linux entries

If this g2ldr error is encountered in the process of installing a Linux distribution that attempts to use a “DOS-based”1 version of GRUB2, then it may be possible to set up the existing, standard BOOTMGR bootloader for Windows Vista, Windows 7, and Windows 8 to “chainload” the Linux installation and its copy of GRUB2.

Instructions on using EasyBCD and creating a dual-boot with Linux can be found in the EasyBCD-specific section of our knowledgebase.

More Information

Linked Knowledgebase Entries

The errors below have been verified as being associated with or related to this problem:

Support Links

Applicable Systems

This Windows-related knowledgebase article applies to the following operating systems:

  • Windows XP (all editions)
  • Windows Vista (all editions)
  • Windows 7 (all editions)
  • Windows 8 (all editions)
  • Windows 8.1 (all editions)
  • Windows Server 2003 (all editions)
  • Windows Server 2008 (all editions)
  • Windows Server 2012 (all editions)

Propose an edit


  1. While GRLDR and G2LDR are originally from a project known as “GRUB 4 Dos” or “GRUB for DOS,” in reality, DOS has nothing to do with it. The GRLDR/G2LDR projects focus on loading GRUB or GRUB2 from Windows-based partitions, namely FAT32 and NTFS. 

Tagged: