Get the fix for the error Error: no such partition. Grub rescue on Windows XP, Windows Vista and Windows 7.
About “Error: no such partition. Grub rescue“
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: “Error: no such partition. Grub rescue” error screen on startup
This error is usually displayed on computers with the Linux distribution Ubuntu installed as it uses the GRUB installer.
Contents
Another related issue on PCs with Ubuntu on is the “Cannot find GRLDR” error. You can find more about this particular error on our Wiki at Cannot find GRLDR: Fix for Windows XP and 7 article.
There are no other known alternative error message related to this boot error.
Causes of this Error
This error has been known to occur as a result of one of the following causes:
Cause 1: Invalid boot loader configuration
The most common cause of this error is a misconfigured boot loader file that prevents the system from loading.
Fix: Use Easy Recovery Essentials
Easy Recovery Essentials can fix many errors such as this automatically using its built-in Automated Repair option. EasyRE is currently available for Windows XP, Vista, 7, 8, Windows 10, and Windows 11 and can be downloaded and created on any PC.
- Download Easy Recovery Essentials. Make sure to note your Windows version (XP, Vista, 7, 8, 10, or Windows 11) before you download EasyRE. This guide can help you identify what version of Windows you have installed.
- Burn the image. Follow these instructions on how to burn the bootable ISO image very carefully, as making a bootable CD can be tricky! Alternatively, these instructions explain how to create a bootable EasyRE recovery USB stick/drive.
- Boot up your PC from the Easy Recovery Essentials CD or USB you created.
- Once EasyRE is running, choose the “Automated Repair” option and click Continue.
- After EasyRE scans your computer’s drives, identify and select the drive letter for your Windows installation from the list, and then click on the Automated Repair button to begin.
- Easy Recovery Essentials will start analyzing the selected drive for problems. EasyRE will test for and attempt to automatically correct errors with the disk, partition, bootsector, filesystem, bootloader, and registry. No intervention is required, as EasyRE’s repair is fully automated:
- Once the process is complete, EasyRE will report its findings. Click on the Restart button to reboot your PC and test the changes.
- The “Error: no such partition. Grub rescue” error should now be fixed as your PC begins to load:
You can download Easy Recovery Essentials from here.
Fix Error: no such partition. Grub rescue in Windows XP, 7
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: Rebuild the BCD
You can rebuild the master boot sector with bootrec.exe
, the tool available in the Windows Recovery Environment.
If you have Windows XP:
- Insert the Windows XP CD in the optical drive
- Reboot the computer
- At the Microsoft Setup menu, press R
- Select the operating system
- Enter the Administrator password
- When Command Prompt appears, you can type the bootcfg command:
bootcfg /rebuild
- Press Enter
- Once completed, type
exit
to reboot the computer - Press Enter
If you have Windows 7:
- Insert your Windows install disc
- Press any key at the “Press any key to boot from CD or DVD” message to boot from the disc
- Choose Repair your computer after you select the language, time and keyboard method (for Windows 7 users)
- Select your Windows installation drive (usually
C:\
) - Click Next
- Select Command Prompt in the System Recovery Options window
- Write the following commands in the Command Prompt:
bootrec /fixmbr bootrec /fixboot bootrec /rebuildbcd
- Press Enter after each command
Fix #2: Manually configuring the active partition
A very common cause for this error to show up is not having the correct partition set as active. Referring to the description of how the PC boots, the BIOS tries to start the boot loader up from the active partition and the bootloader searches for its configuration data from the active partition as well. If the active partition is corrupted or incorrectly set, many errors including this “Error: no such partition.” can happen.
Use diskpart from the command line to set the correct partition.
- Execute the following commands to see a list of all partitions on your disk:
diskpart list part
Press Enter after each command.
- Once you’ve determined which of the displayed partition needs to be active (not sure? Easy Recovery Essentials can automatically detect problems with your active partition and automatically reconfigure the correct partition for you, no command line needed), carry out the steps below to make the changes:
-
select partition x active quit
Press Enter after each command.
- Reboot for the changes to take place.
Fix #3: Restore boot sector code
These steps apply only for Windows 7 users.
- Boot from your Windows 7 disc
- Choose Repair your computer after you select the language, time and keyboard method
- Select your Windows installation drive (usually
C:\
) and click Next - Select Command Prompt in the System Recovery Options box
- Determine which drive letter is your Windows install disc by typing these commands in the Command Prompt:
diskpart select disk 0 list volume
- Look for the “CD-ROM” value in “Type” column in the new table and you’ll see your installation drive letter
- Now go to the boot folder from your disc using these commands below. Note that we’ll be using
D:
(second command below) as our installation drive letter; yours may be different.exit D: cd boot dir
- Verify that you have a
bootsect.exe
file listed. If so, enter the next command:bootsect /nt60 SYS /mbr
- Press Enter when the process is complete and then type
exit
:exit
- Restart your computer
More Information
Linked Entries
Support Links
- Easy Recovery Essentials for Windows – our repair and recovery disk.
It’s an easy-to-use and automated diagnostics disk. It’s available for Windows 8, Windows 7 and Windows Vista. It’s also available for Windows XP and Windows Server.Read more at Windows Recovery Disks.
- The NeoSmart Support Forums, member-to-member technical support and troubleshooting.
- Get a discounted price on replacement setup and installation discs: Windows XP, Windows Vista, Windows 7.
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)