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

Jean updated on Dec 28, 2018 to Resource | How-to Articles

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

100% of people found this article helpful.

 

Frequently Asked Questions

1. Why choose EaseUS Data Recovery Wizard?

"EaseUS Data Recovery Wizard is the best we've seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past, but it's fast and efficient..."PCMag

"The first thing you'll notice about EaseUS Data Recovery Wizard Pro is that its interface is very clear and uncluttered, with only a small collection of self-explanatory controls. You won't find lots of extra options hidden in a system of hidden menus, either; what you see really is what you get."techradar

"Recover lost files, even after deleting a partition or formatting your drive."Macworld

2. Why cannot I recover 2GB data for free?

It is recommended to check the version installed is Free or Trial because they are different versions.

Trial has data preview function but cannot save any files, while the Free version enables to recover 2 GB files. The default free space is 500 MB and you may share the product on social media to get another 1.5 GB.

3. Why cannot the recovered files be opened?

A file is saved as 2 parts on the storage device: directory info (which is comprised by file name, time stamp and size info, etc.) and data content.

If the files with original file names and folder structures cannot be opened, one possible reason is the corrupted directory info. There is still a chance to recover the data content with the RAW Recovery method in our software.

4. Why isn't it suggested to recover the files back to the original drive?

The storage structure of the lost files would be altered or damaged by any changes on the drive. If you save the recovered files back to the same drive, the original data structures and data content would be corrupted or overwritten, which causes permanent data loss. So you should prepare another disk to save the files.

5. How can I check whether my data is recoverable or not before purchase?

The Free version helps you save 2GB files to better verify the recovery quality of our product before purchase.

6. How long does it take to scan the drive?

It strongly depends on the capacity of your hard drive and the performance of your computer. As reference,most drive recoveries can be completed in around 10 to 12 hours for a 1-TB healthy hard drive in general conditions.

About Data Recovery Wizard

It's super easy to recover 250+ types of files after deletion, disk formatting and virus infection. Click the links and compare the difference of each version.