> How to > Resource > How to fix 'grub loading error' 15, 17, 21, 22 and recover data

How to fix 'grub loading error' 15, 17, 21, 22 and recover data

Posted on Jun 02, 2017 by Jean to Resource


If you're using Grub Stage 1.5 or Stage 2.0, you'll probably encounter grub loading error 15, 17, 21 or 22, which generally occurs when Grub is trying to load a non-Windows system. With a little extra study of what each grub loading error implies, you can fix the trouble easily. And in the end, do not hesitate to donwload EaseUS Data Recovery Wizard to rescue files which were very likely to be deleted or formatted during the process of fixing the grub loading error in Windows 10, 8, 7, XP or Vista.

How to fix grub loading error with error codes?

Thanks to Wikipedia's GNU GRUB knowledge share, we won't spare much effort to explain the GRUB thing. Instead, only focus on the most concerned parts: what is grub loading error and how do we fix it without losing data?

For you information, GRUB is related to a user's choice of booting one of multiple operating systems installed on a computer or select a specific kernel configuration available on a particular operating system's partitions.

What's more, there are 2 versions of Grub, and if you're using Grub version 2 Stage 1.5 or Stage 2.0, you'll probably encounter grub loading error 15, 17, 21 or 22. Yes, now we come to the point. Refer to the table below, you can grab the chance of basically knowing each grub loading error along with its solution

Grub Loading Error 15 File not found. This error is displayed when the specified file name cannot be found. Make sure the kernel exists. To find out what the exact kernel name is, boot from the live CD, and mount /boot depending on your partition and then do the following: cd /boot | ls
Grub Loading Error 17 Cannot mount selected partition. This error is displayed when the partition requested exists, but the file system type is not be recognized by GRUB. Make sure your root(x,y) settings are right in your Grub.conf. You could use a distribution CD or Live CD to set up Grub like shown below. (h0,0) means the first hard drive and the first partition on that drive. 
sudo grub 
root (hd0,0) 
setup (hd0) 
Grub Loading Error 21 Selected disk does not exist. This error is displayed if the disk is not recognized by the BIOS in the system. Make sure the disk is correctly connected and detected by the BIOS.
Grub Loading Error 22 No such partition. This error is displayed if a requested partition isn't on the selected disk. You can use the Windows Installation Disc to run a Startup Repair and fix MBR.


How to recover data from grub loading error?

By applying the fixing method for a specific grub loading error in Windows environment, data loss happens a lot. Some behavior would invertiblely format the disk partition or delete hard drive contents, so it's necessary to learn more about data recovery solution after successfully getting rid of the grub loading error but lost important data.

EaseUS Data Recovery Wizard specializes in file recovery and hard drive data recovery on desktop, laptop, internal hard drive, external hard drive, removable usb flash disk, pen drive, memory card and many more storage devices. The accidentally deleted or formatted hard disk data can be effectively restored within 3 steps, in case that you don't have a backup.

Step 1. Select the disk storage location where you lost data and click Scan.

select a location and click scan

Step 2. Run quick scan and deep scan to find all lost and existing data files.

run quick scan and deep scan

Step 3. Select target files and click Recover to bring them all back.

select files and click recover