What Is GRUB
GRUB or GNU GRUB is short for GRand Unified Bootloader. It is a boot loader used on multi-OS computers that provides users the choice to choose which operating system to boot from on the computer. Different operating systems may need varying boot loaders. For example, NTLDR is the boot loader for Windows NT operating systems, and LILO is the boot loader for Linux. As for GRUB, it is the boot loader for Windows and Linux and is generally used on computers that are with both Windows and Linux installations.
Here’s a quick view of common GRUB loading errors and corresponding solutions. Jump to the part you’re most interested:
Workable Solutions | Step-by-step Troubleshooting |
---|---|
Fix 1. GRUB Loading Error 15 | boot from the Live CD, and mount/boot depending on your partition…Full steps |
Fix 2. GRUB Loading Error 17 | use a distribution CD or Live CD to set up Grub as sudo grub > root (hd0,0) > setup (hd0) exit…Full steps |
Fix 3. GRUB Loading Error 21 | Boot the computer from the Ubuntu installation disc > Run Command Prompt as an administrator…Full steps |
Fix 4. GRUB Loading Error 22 | Restart the computer and press «F8» until you see the options, go back to the menu…Full steps |
Common GRUB Loading Errors
However, it’s not without a problem while using GRUB. Many users have the experience of encountering the GRUB loading error during the computer startup. There are two versions of GRUB, and if you’re using Stage 1.5 or Stage 2.0, you’ll probably encounter grub loading error 15, 17, 21, or 22.
GRUB loading error 15
File not found. This error is displayed when the specified file name cannot be found.
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.
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.
GRUB loading error 22
No such partition. This error is displayed if a requested partition isn’t on the selected disk.
What Causes GRUB Loading Error 15, 17, 21, 22
When you install Windows and Linux on a computer, you need to configure GRUB correctly to boot from one of the operating systems successfully. Or you may encounter GRUB loading errors, like error 15, 17, 21, and 22. The common GRUB loading errors might be caused by:
- Improper configuration of GRUB
- The wrong installation location of GRUB
- Accidental deletion of GRUB
- The corruption of MBR
How to Fix GRUB Loading Error 15, 17, 21, 22
The solutions differ based on the error you are faced with. Specify the error message you encounter and carry out the corresponding solution.
Fix GRUB Loading Error 15
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
Fix GRUB Loading Error 17
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 as shown below. (h0,0) means the first hard drive and the first partition on that drive.
sudo grub
root (hd0,0)
setup (hd0) exit
Fix GRUB Loading Error 21
Step 1. Boot the computer from the Ubuntu installation disc.
Step 2. Run Command Prompt as an administrator.
Step 3. Enter the following command:
$sudo -s
#grub
grub> find /boot/grub/stage1 (then cmd will return something like «hd0,0»)
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
Fix GRUB Loading Error 22
Step 1. Restart the computer and press «F8» until you see the options.
Step 2. Go back to the menu where you can choose the operating system.
Step 3. Choose «Microsoft Windows Recovery Console». (You may need your Windows installation disc to access the recovery console.)
Step 4. If you are asked to choose the system drive, enter the number in front of the system drive listed.
Step 5. Enter the account password as required. Run the command fixmbr and enter «y» to confirm the operation.
Step 6. Enter «exit» and restart the computer.
How to Recover Data Lost After Fixing GRUB Loading Error
Applies to: Restore all lost files and data after fixing GRUB loading error in Windows 10/8/7.
Applying the fix for a specific grub loading error in Windows may cause data loss. For example, some operations would format the disk partition or delete hard drive contents. So it’s necessary to learn how to recover data after getting rid of the grub loading error on your computer.
Reliable EaseUS Data Recovery Wizard — EaseUS Data Recovery Wizard specializes in file recovery on all Windows operating systems. It allows you to recover data lost due to the GRUB loading error effectively in only a few simple clicks.
See how to recover the accidentally deleted or formatted hard disk data while fixing GRUB loading error on your computer with ease:
Note: To guarantee a high data recovery chance, install EaseUS data recovery software on another disk instead of the original disk where you lost files.
Step 1. Launch EaseUS Data Recovery Wizard on your Windows 11, Windows 10, Windows 8, or Windows 7 computer. Select the disk partition or storage location where you lost data and click «Scan».
Step 2. This recovery software will start scanning the disk to find all lost and deleted files. When the scan process completes, click «Filter» > «Type» to specify lost file types.
Step 3. Preview and restore lost Windows files. You can double-click to preview the scanned files. Then, select the target data and click the «Recover» button to save them to another safe spot in the PC or an external storage device.
Besides, you can also apply this data recovery software to recover files and data lost on the desktop, laptop, internal hard drive, external hard drive, removable USB flash disk, pen drive, memory card, and many more storage devices.
The Bottom Line
GRUB loading errors always occur on computers with dual OS, and each error code is informative since it indicates what the possible cause is. Apply the solutions provided to cope with the issue and use EaseUS Data Recovery Wizard to retrieve the data when data loss happens.
What Is GRUB
GRUB or GNU GRUB is short for GRand Unified Bootloader. It is a boot loader used on multi-OS computers that provides users the choice to choose which operating system to boot from on the computer. Different operating systems may need varying boot loaders. For example, NTLDR is the boot loader for Windows NT operating systems, and LILO is the boot loader for Linux. As for GRUB, it is the boot loader for Windows and Linux and is generally used on computers that are with both Windows and Linux installations.
Here’s a quick view of common GRUB loading errors and corresponding solutions. Jump to the part you’re most interested:
Workable Solutions | Step-by-step Troubleshooting |
---|---|
Fix 1. GRUB Loading Error 15 | boot from the Live CD, and mount/boot depending on your partition…Full steps |
Fix 2. GRUB Loading Error 17 | use a distribution CD or Live CD to set up Grub as sudo grub > root (hd0,0) > setup (hd0) exit…Full steps |
Fix 3. GRUB Loading Error 21 | Boot the computer from the Ubuntu installation disc > Run Command Prompt as an administrator…Full steps |
Fix 4. GRUB Loading Error 22 | Restart the computer and press «F8» until you see the options, go back to the menu…Full steps |
Common GRUB Loading Errors
However, it’s not without a problem while using GRUB. Many users have the experience of encountering the GRUB loading error during the computer startup. There are two versions of GRUB, and if you’re using Stage 1.5 or Stage 2.0, you’ll probably encounter grub loading error 15, 17, 21, or 22.
GRUB loading error 15
File not found. This error is displayed when the specified file name cannot be found.
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.
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.
GRUB loading error 22
No such partition. This error is displayed if a requested partition isn’t on the selected disk.
What Causes GRUB Loading Error 15, 17, 21, 22
When you install Windows and Linux on a computer, you need to configure GRUB correctly to boot from one of the operating systems successfully. Or you may encounter GRUB loading errors, like error 15, 17, 21, and 22. The common GRUB loading errors might be caused by:
- Improper configuration of GRUB
- The wrong installation location of GRUB
- Accidental deletion of GRUB
- The corruption of MBR
How to Fix GRUB Loading Error 15, 17, 21, 22
The solutions differ based on the error you are faced with. Specify the error message you encounter and carry out the corresponding solution.
Fix GRUB Loading Error 15
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
Fix GRUB Loading Error 17
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 as shown below. (h0,0) means the first hard drive and the first partition on that drive.
sudo grub
root (hd0,0)
setup (hd0) exit
Fix GRUB Loading Error 21
Step 1. Boot the computer from the Ubuntu installation disc.
Step 2. Run Command Prompt as an administrator.
Step 3. Enter the following command:
$sudo -s
#grub
grub> find /boot/grub/stage1 (then cmd will return something like «hd0,0»)
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
Fix GRUB Loading Error 22
Step 1. Restart the computer and press «F8» until you see the options.
Step 2. Go back to the menu where you can choose the operating system.
Step 3. Choose «Microsoft Windows Recovery Console». (You may need your Windows installation disc to access the recovery console.)
Step 4. If you are asked to choose the system drive, enter the number in front of the system drive listed.
Step 5. Enter the account password as required. Run the command fixmbr and enter «y» to confirm the operation.
Step 6. Enter «exit» and restart the computer.
How to Recover Data Lost After Fixing GRUB Loading Error
Applies to: Restore all lost files and data after fixing GRUB loading error in Windows 10/8/7.
Applying the fix for a specific grub loading error in Windows may cause data loss. For example, some operations would format the disk partition or delete hard drive contents. So it’s necessary to learn how to recover data after getting rid of the grub loading error on your computer.
Reliable EaseUS Data Recovery Wizard — EaseUS Data Recovery Wizard specializes in file recovery on all Windows operating systems. It allows you to recover data lost due to the GRUB loading error effectively in only a few simple clicks.
See how to recover the accidentally deleted or formatted hard disk data while fixing GRUB loading error on your computer with ease:
Note: To guarantee a high data recovery chance, install EaseUS data recovery software on another disk instead of the original disk where you lost files.
Step 1. Launch EaseUS Data Recovery Wizard on your Windows 11, Windows 10, Windows 8, or Windows 7 computer. Select the disk partition or storage location where you lost data and click «Scan».
Step 2. This recovery software will start scanning the disk to find all lost and deleted files. When the scan process completes, click «Filter» > «Type» to specify lost file types.
Step 3. Preview and restore lost Windows files. You can double-click to preview the scanned files. Then, select the target data and click the «Recover» button to save them to another safe spot in the PC or an external storage device.
Besides, you can also apply this data recovery software to recover files and data lost on the desktop, laptop, internal hard drive, external hard drive, removable USB flash disk, pen drive, memory card, and many more storage devices.
The Bottom Line
GRUB loading errors always occur on computers with dual OS, and each error code is informative since it indicates what the possible cause is. Apply the solutions provided to cope with the issue and use EaseUS Data Recovery Wizard to retrieve the data when data loss happens.
- Печать
Страницы: [1] 2 Все Вниз
Тема: Восстановление grub (error 15) [РЕШЕНО] (Прочитано 6636 раз)
0 Пользователей и 1 Гость просматривают эту тему.

flipp
Доброго всем времени суток!
Предыстория следующая:
Стояли у меня на одном харде ubuntu 9.10 и винды. Недавно решил на место, отведенное под винды, поставить arch. Соответственно, при установке таблица разделов изменилась. Но, видимо, что-то делал криво: по ходу установки появлялись ошибки, а после окончания и перезагрузки grub начал ругаться Error 15. Переустановка arch (установщик уже ошибки не выдавал) ничего не дала. Решил восстановить убунтовский grub.
Непосредственно проблема:
Загрузился с ubuntu 9.10 LiveCD, примонтировал раздел с корнем в /mnt/ubuntu, сменил коренть на /mnt/ubuntu, запустил оболочку grub.
Здесь (http://ubuntologia.ru/grub-mbr-windows) сказано, что неплохо бы обратить внимание на вывод команды
find /boot/grub/stage2
но у меня в результате появилось следующее:
Error 15: File not found
При этом в папке /boot/grub есть файл stage2.
Попробовал указать корень исходя из того что у меня это раздел sda8:
root (hd0,7)
Результат следующий:
Error 21: Selected disk does not exist
Собственно вопрос:
Что я делаю не так? И если все так, то что посоветуете делать дальше?
« Последнее редактирование: 24 Декабря 2009, 10:30:11 от flipp »

ur5imw
если я не ошибаюсь, то выше указаные действия направлены на востановление grub1 в 910 вторая версия

Softwayer

flipp
Все верно, но у меня ubuntu обновлена с 9.04, а там — первый.

Alie Alexandross
примонтировал раздел с корнем в /mnt/ubuntu, сменил коренть на /mnt/ubuntu, запустил оболочку grub.
Сменили корень chroot -ом, или просто в директорию через cd перешли?
Если второе — запустите:
find /mnt/ubuntu/boot/grub/stage2
Подпись автора jillsmitt истинна…

flipp
sudo chroot /mnt/ubuntu/
=)

Alie Alexandross
Подло
А что ls /boot/grub выдаёт?
P.S. /boot часом не отдельным разделом идёт?
Подпись автора jillsmitt истинна…

flipp
А что ls /boot/grub выдаёт?
Папка не пустая, и stage2 там уж точно есть.
P.S. /boot часом не отдельным разделом идёт?
Не-не) на отдельном разделе только /home

Alie Alexandross
mount —bind на разделы /proc и /sys сделали перед chroot -ом?
Подпись автора jillsmitt истинна…

flipp
А вот здесь можно поподробней?=)
Что и к чему монтировать? Нигде про это не читал.

Alie Alexandross
mount --bind /proc /mnt/ubuntu/proc
mount --bind /sys /mnt/ubuntu/sys
Подпись автора jillsmitt истинна…

flipp
Сделал. Результат тот же…

ur5imw
Сделал. Результат тот же…
f а ты попробуй восстановить систему, загрузившись с 9.04…

Alie Alexandross
Как насчёт отказа от chroot? Ну и стоит, конечно, попробовать запустится с более ранней версии live-CD, если на 9.10 по умолчанию GRUB2.
Подпись автора jillsmitt истинна…

flipp
Дааа…с chroot’ом я намудрил. Достаточно было просто сделать все, как советует убунтология.
Спасибо большое, проблема решена. =)
- Печать
Страницы: [1] 2 Все Вверх
к виндовс это не имеет не малейшего отношения.
Ошибка Grub 15
Cитуация
Эта ошибка может возникать на двух различных этапах настройки GRUB: во время начальной настройки (при установке в главную загрузочную запись), и после загрузки системы при попытке запустить Linux (или любой другой раздел).
Листинг 4.1: Сообщения Grub при начальной настройке
grub> root (hd0,0)
Filesystem type is xfs, partition type 0x83
grub> setup (hd0)
Checking if «/boot/grub/stage1» exists… no
Checking if «/grub/stage1» exists… no
Error 15: File not found
Листинг 4.2: Сообщения Grub при загрузке раздела
Booting ‘gentoo Linux’
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel (hd0,0)/boot/kernel-2.4.20 root=/dev/hda3 vga=792
Error 15: File not found
Press any key to continue…
Решение: проблема при начальной настройке
Эта ошибка выдается, если невозможно найти указанный файл, при этом все остальное (диск, раздел) указано верно.
Довольно часто эта ошибка обозначает отсутствие файла образа ядра. Убедитесь, что необходимый файл находится на загрузочном разделе.
Чтобы выяснить точное имя вашего ядра, загрузитесь с установочного компакт-диска и смонтируйте свой корневой раздел (root), а при необходимости и загрузочный раздел (boot). Потом переключитесь (chroot) в свою систему Gentoo и выведите на экран список имеющихся файлов, чтобы увидеть доступные образы ядер:
Листинг 4.3: Проверка существования образа ядра
# cd /boot
# ls
# make
Это перечислит все ядра на вашем загрузочном разделе. Если ваше ядро отсутствует, обеспечьте, чтобы оно было скомпилировано (с помощью genkernel или вручную):
Листинг 4.4: Перекомпиляция ядра
# cd /usr/src/linux/
# make menuconfig
А так его скопировать в загрузочный раздел:
Листинг 4.5: Копирование ядра
# cp /usr/src/linux/arch/i386/boot/bzImage /boot
Проверьте, что имя ядра точно совпадает с указанным в файле grub.conf. Также, убедитесь, что строчка kernel в вашем файле grub.conf явно или неявно указывает на нужный раздел.
Еще замечена ошибка, когда BIOS игнорирует диск, на котором находится ядро или стадии grub. Кроме того, на разделе, на котором grub хранит свои стадии, не должна использоваться настройка программного RAID-5 (или другой технологии деления на полосы).
Решение: проблема загрузки раздела
Прежде всего, убедитесь в правильности используемых строк root и setup.
Если вы уверены, что они правильные, тогда возможно, вы используете дефектную версию GRUB (0.93.20031222). Обновите свое дерево портежей или замаскируйте эту версию grub:
Листинг 4.6: Маскировка Grub
(Выполните это из изолированной среды)
# echo «=sys-boot/grub-0.93.20031222» >> /etc/portage/package.mask
# emerge grub -p
Также можно попробовать сценарий grub-install, как рекомендовано авторами GRUB:
Листинг 4.7: Использование grub-install
(Параметр —root-directory необходим, если вы используете отдельный
загрузочный раздел. В других случаях его следует опустить)
# grub-install —root-directory=/boot /dev/hda
Если ничего из этого не помогает, возможно, ваш раздел поврежден. Проверьте раздел на наличие ошибок:
Листинг 4.8: Проверка раздела на ошибки
(Убедитесь, что загрузочный раздел, здесь /dev/hda1, не смонтирован)
# fsck -y /dev/hda1
Модератор: Модераторы разделов
-
Tix
- Сообщения: 2
GRUB Loading error 15
Установил я backtrack3
после перезагрузки комп выдал:
GRUB Loading stage1.5.
GRUB loading, please wait…
Error 15
_
Это очень срочно!
Чё делать?
У меня такое было, когда я bt2 ставил
пришлось винду переустанавливать
-
cdrw
- Сообщения: 249
Re: GRUB Loading error 15
Сообщение
cdrw » 24.12.2007 04:21
Tix писал(а): ↑
22.12.2007 07:11
Установил я backtrack3
после перезагрузки комп выдал:
GRUB Loading stage1.5.
GRUB loading, please wait…
Error 15
_
Это очень срочно!
Чё делать?
У меня такое было, когда я bt2 ставил
пришлось винду переустанавливать
GRUB loading, please wait…
Error 15«This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.
Что означает:
«Эта ошибка выдается, если указанный файл не найден, но все остальное (диск, раздел) указано верно.»
Не находит GRUB stage. Нужно брать CDLIVE и смотреть каталог /boot.
-
kinder
- Сообщения: 151
- ОС: Mandriva 2009 Spring
- Контактная информация:
Re: GRUB Loading error 15
Сообщение
kinder » 16.09.2009 05:35
Влип в аналогичную ошибку.
Первый раздел на винте виндовый (нтфс), брал 80% диска. Я лишнее с него убрал, документу перенёс в лиинуксовые разделы (ext3) и решил потеснить винду, отрезав от первого раздела кусочек. Сократил первый раздел до 40%, а в освободившемся месте создал новый ext3 раздел. Поменялась нумерация разделов. После перезагрузки GRUB не запускается, не могу загрузиться. Пишу с ноутбука.
Подскажите, как можно сделать загрузочной флешку. Чтобы с не загрузиться и исправить положение?
-
drBatty
- Сообщения: 8735
- Статус: GPG ID: 4DFBD1D6 дом горит, козёл не видит…
- ОС: Slackware-current
- Контактная информация:
Re: GRUB Loading error 15
Сообщение
drBatty » 16.09.2009 07:44
Juliette писал(а): ↑
22.12.2007 11:21
Криминальные подробности можно выложить? Навроде листинга разделов, конфига Гроба и прочих несущественных мелочей
kinder писал(а): ↑
16.09.2009 05:35
Влип в аналогичную ошибку.
а логи выложить западло?
-
kinder
- Сообщения: 151
- ОС: Mandriva 2009 Spring
-
Контактная информация:
Re: GRUB Loading error 15
Сообщение
kinder » 16.09.2009 08:08
Да как же я их выложу. Я ведь к файловой системе доступа теперь не имею. Делаю загрузочный диск вот. Загружусь буду думать.
Груб подыхает сразу при начале загрузки с винта. До меню дело не доходит.
-
stufer
- Сообщения: 50
- ОС: Slackware 12.0
Re: GRUB Loading error 15
Сообщение
stufer » 17.09.2009 14:43
kinder писал(а): ↑
16.09.2009 05:35
Влип в аналогичную ошибку.
Первый раздел на винте виндовый (нтфс), брал 80% диска. Я лишнее с него убрал, документу перенёс в лиинуксовые разделы (ext3) и решил потеснить винду, отрезав от первого раздела кусочек. Сократил первый раздел до 40%, а в освободившемся месте создал новый ext3 раздел. Поменялась нумерация разделов. После перезагрузки GRUB не запускается, не могу загрузиться. Пишу с ноутбука.
Подскажите, как можно сделать загрузочной флешку. Чтобы с не загрузиться и исправить положение?
Установить UnetBootin на ноут, и нанём сделать загрузочную флешку.
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.
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:
- Grub Loading Error 15: File not found. This GRUB Loading Error always appears when a specified file name cannot be found by the system.
- 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.
- 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.
- Grub Loading Error 22: No such partition. This GRUB Loading Error always appears when a required partition is not on the selected disk.
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 Errors?
- How to fix GRUB Loading Error 15?
- How to fix GRUB Loading Error 17?
- How to fix GRUB Loading Error 21/22?
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)
quit
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.
- Boot your computer from the live CD.
- Open a terminal and then run sudo grub. This can lead you to a GRUB command line.
- Run find /boot/grub/stage1.
- 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.
- Next, run setup (hd0).
- 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.
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.
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.
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 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?