• Linkedin
  • Reddit

Summary :

GRUB Loading Error

When you boot your computer, you might find that your computer is stuck in Grub Loading Error 15, 17, 21, or 22. Do you know what they are, the causes of these GRUB Load Errors, and how to fix them to make your computer go back to normal? This MiniTool article shows you the answers.

Quick Navigation :

What Is GRUB Loading Error?

GRUB, which is also known as GNU GRUB, stands for GNU GRand Unified Bootloader. It is a boot loader package from the GNU Project. It provides you a choice to boot one of multiple operating systems installed on a computer or choose a specific kernel configuration available on a particular operating system’s partitions.

It is similar to NTLDR or BOOTMGR on Windows. But, it supports both Windows and Linux kernels and has more features. You need to configure GRUB properly when using your computer. If not, you might encounter different kinds of GRUB errors like Grub Loading Error 15, 17, 21, 22….

Tip: If you encounter the BOOTMGR is missing issue, you can refer to this article to solve it: 11 Solutions to "BOOTMGR Is Missing" Error in Windows 10/8/7; If you are facing NTLDR is missing issue, you can read this post to get the solutions: 10 Solutions to Fix NTLDR Is Missing in Windows 10/8/7.

Now, we will introduce these common GRUB Loading Errors in the following content.

Common Grub Loading Errors

Usually, there are no error codes in Grub Stage 1. You might just receive the error message saying Hard Disk Error, Floppy Error, Read Error, or Geom Error. The GRUB loading error code always appears in Grub Stage 1.5 or Stage 2.0.

There are 4 common GRUB Loading Errors:

  1. Grub Loading Error 15: File not found. This GRUB Loading Error always appears when a specified file name cannot be found by the system.
  2. Grub Loading Error 17: Cannot mount selected partition. This GRUB Loading Error always appears when the required partition exists, but the type of file system is not recognized by GRUB.
  3. Grub Loading Error 21: Selected disk does not exist. This GRUB Loading Error always appears when the disk is not recognized by the BIOS in the system.
  4. Grub Loading Error 22: No such partition. This GRUB Loading Error always appears when a required partition is not on the selected disk.
recover data when pc wont boot thumbnail
How to Recover Data When PC Won't Boot 2020 (Works 100%)

SEE! Here's how to effectively recover data when PC won't boot and what to do when PC won't boot.

Read More

Top Reasons for GRUB Loading Errors

Why do the GRUB Loading Errors occur when you boot your computer? Here, we collect some reasons and show them as follows:

  • The configuration of GRUB is improper.
  • GRUB is installed in a wrong location.
  • GRUB is deleted by mistake.
  • MBR is corrupted.

Now, you know what GRUB is, the common GRUB Loading Error codes, and the top main causes of these errors. Then, if you are bothered by the GRUB Loading Error, you must want to get rid of it immediately because you still need to use your computer to deal with your work. Keep reading to get the solutions.

How to Fix GRUB Loading Errors?

Focusing on these 4 GRUB Loading Errors, we will introduce 4 different solutions. You just need to select a suitable solution according to the error code you receive.

How to Fix GRUB Loading Error 15?

If you are bothered by Grub Loading Error 15, you need to make sure that the kernel file exists on your computer. Here, you need to shut down your PC and then boot it from the live CD. Then, you can mount /boot on your partition and then do the following: cd /boot | ls to check the exact name of the kernel file.

It is quite possible that the kernel file is missing from your computer. If so, you can still use the live CD to perform a system reinstallation to get rid of the issue.

How to Fix GRUB Loading Error 17?

If you are facing Grub Loading Error 17, you need to make sure that your root(x,y) settings are right in your Grub.conf. You still need to use a live CD to set up Grub as follows:

1. Boot your computer from a live CD.

2. Execute this command: sudo fdisk –l.

3. You are likely to get the following results:

Disk /dev/sdb: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk identifier: 0x62ff371f

Device Boot Start End Blocks Id System

/dev/sdb1 2048 206847 102400 7 HPFS/NTFS/exFAT

/dev/sdb2 206848 174082047 86937600 7 HPFS/NTFS/exFAT

/dev/sdb3 174082110 976771071 401344481 f W95 Ext’d (LBA)

Partition table entries are not in disk order.

The cause of the problem appears on the last line: Partition table entries are not in disk order.

4. You can fix the problem by executing the following command: sudo fdisk /dev/hda. hda means the whole hard disk.

5. If you are an expert, you can select x and press Enter. If you are not an expert, just skip to the next step.

6. Select f and press Enter to fix the partition order.

7. Select w and press Enter to write table to disk.

8. Then, you need to finalize these command one by one in GRUB:

sudo grub

root (hd0,1)

setup (hd0)


Here, (h0, 1) stands for the first hard drive and the second partition on that drive.

Of course, the above hd0,1 and hd0 are just examples. You need to know which hard disk houses your OS and then replace the numbers according to your actual situations.

When all these steps are done, you can restart your computer to check whether it can work as normal.

How to Fix GRUB Loading Error 21/22?

If you are bothered by GRUB Loading Error 21/22, you can follow these steps to fix the problem.

  1. Boot your computer from the live CD.
  2. Open a terminal and then run sudo grub. This can lead you to a GRUB command line.
  3. Run find /boot/grub/stage1.
  4. Then, run root (hd0, 1). Here, (h0, 1) stands for the first hard drive and the second partition on that drive. You can replace these two numbers according to your own situation.
  5. Next, run setup (hd0).
  6. At last, run quit to complete the operation.

After these 6 steps, you still need to reboot your computer to see whether the GRUB Loading Error 21 or GRUB Loading Error 22 is disappeared.

Click to tweet

If You Lose Your Data Due to GRUB Loading Errors

After the GRUB Loading Errors are solved, you can use your computer as usual. However, you may find that some important files are missing from your device by accident due to the error. In a situation like this, you can use a professional data recovery software to get back your data. Here, we suggest using MiniTool Power Data Recovery.

This free file recovery tool is specially designed to rescue your lost and deleted files from your computer hard drives, SD cards, memory cards, pen drives, CDs, DVDs, and more. It has 4 recovery modules that are designed for different situations.

corrupted scratched cd dvd thumbnail
How to Repair Corrupted/Damaged CDs or DVDs to Recover Data

Do you know how to recover data from corrupted or scratched CD/DVD? Now, read this post to get a third-party tool to do this job easily and effectively.

Read More

For example, if you want to recover data from a partition on the hard drive, you can use the This PC module. But, if you have repartitioned the hard drive after missing files, you’d better use the Hard Disk Drive module because it enables you to scan the entire drive at once.

This software is designed for Windows computers. However, if your computer is dual-boot (Windows and Linux), you can choose to recover your Linux data under Windows.

MiniTool Power Data Recovery has a trial edition and you can use it to scan the drive that has saved your lost files and then check whether it can find the files you want to restore. If you are interested in it, you can press the following button to download and then install it on your computer to have a try.

Free Download

After installing MiniTool Power Data Recovery on your device, you can use these steps to retrieve your data.

1. Open this software and you will enter the This PC interface directly.

2. Suppose that you want to recover data from a partition, you can just stay at this recovery module. Then, you need to select the target partition and press Scan to start the scanning process.

select the target partition to scan

3. The whole scanning process will last for a while. To make sure that you can get the best data recovery effect, you need to wait until the whole process ends. Then, this software will show you the scan results by path.

Here, you can click each path and unfold the folders in it to find your needed files. However, you may find that it is not easy and fast to find the target items using this method. If so, you can use other features of this software to perform a quick search.

For example:

  • Type: The Type feature can enable the software to show the scan results by type. You must know which type of data you want to recover. So, you can select that type to find your needed files quickly.
  • Show Lost Files: After scanning, this software will show you all the data on the drive including existing and deleted files. If you only need to restore the deleted files, you can use this feature to make the software only show you the lost files. This can narrow down the search range.
  • Find: If you still remember the name of the file you want to recover, you can use this feature to directly locate that file. However, if the name of the file is damaged, you will be unable to use this method to find your data.
  • Preview: This feature enables you to preview up to 70 types of files. So, if you are not sure whether it is the file you want to restore, you can just preview it to make a confirmation.

Type, Show Lost Files, Find, and Preview

4. You are not allowed to use this trial edition to recover the scanned files. However, you can update this software to a full edition and then recover your needed files without limits. If you are a personal user, the Personal Ultimate edition can fully meet your need and you can even enjoy a lifetime free update.

Here, you need to know that you should not select the files’ original path to save these data. Otherwise, the deleted files will be overwritten and become unrecoverable.

Click to tweet

Bottom Line

Now, you should know what GRUB is, the GRUB Loading Errors you may encounter when booting your PC, and how to get rid of these errors. At the same time, we also recommend a data recovery software for recovering your lost and deleted files that are caused by these GRUB Loading Errors. We hope this article is helpful to you.

Should you have any related issues, you can contact us via [email protected] or let us know in the comment.

GRUB Loading Error FAQ

What is GRUB?
GRUB is a boot loader package from the GNU Project. You can read this post to get more information about it: Glossary of Terms - What Is GRUB?
What is a GRUB Loading Error?
A GRUB Loading Error always happens when you boot the computer. It can be caused by improper GRUB configuration, a wrong location of GRUS, missing GRUB, corrupted MBR, etc.
How do I fix grub loading errors?
There are different kinds of GRUB Loading Errors like GRUB Loading Error 15, 17, 21, and 22. This current article shows you the corresponding solutions. You can scroll up to find them.
How to fix Error No Such Partition Grub Rescue?
Error No Such Partition Grub Rescue is an error that always happens on a dual-boot computer. This article shows you some solutions to get rid of this error: [SOLVED] – Error No Such Partition Grub Rescue in Windows 10.
  • Linkedin
  • Reddit

User Comments :