> 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

Updated on Aug 24, 2018 by Jean to Resource

Summary

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 download 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 NUMBERS MEANING 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) 
exit
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 invertible 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 the 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.

1. Download and install EaseUS Data Recovery Wizard on your computer.

2. Use the data recovery tool to search for and recover your lost data.

  • Choose a storage location or a specific folder where your data was lost and then click the Scan button.
select a location and click scan
  • When the scan is complete, locate the recoverable files or folders from the list of scan results.
scan lost data
  • Select files and then click the Recover button. When choosing a location to save the recovered data, you should not use the original drive.
select wanted data and click recover