Решаем проблему с Grub Rescue Unknown Filesystem
Grub представляет собой универсальный загрузчик для Linux и других ОС. Например, с его помощью пользователь может иметь несколько операционных систем на одном компьютере, выбирая при включении нужную систему для загрузки. Но в некоторых случаях пользователь сталкивается с ошибкой Grub Rescue Unknown Filesystem.
Почему возникает эта ошибка?
Причины разные: например, загрузочные файлы отсутствуют либо они были перемещены. Кроме того, метрики раздела /boot могли быть изменены либо этот раздел был отформатирован, то есть он больше не существует.
Прежде всего, надо понимать, что Grub инсталлируется в 2 места. Одно из них — таблица разделов MBR. Тут места немного, поэтому весь загрузчик сюда не помещается. Однако он обладает модульной структурой, то есть все основные модули, ресурсы и конфигурационные файлы размещаются на обычном разделе (монтируется после загрузки в /boot). При этом программа в MBR «помнит», в каком месте располагается раздел /boot, однако если с данным разделом что-либо произойдет, то программа не загрузит привычные модули, следовательно, появится ошибка unknown filesystem. Значит все это следующее: если раздел уже не существует, остается лишь брать LiveCD диск и выполнять переустановку загрузчика. Если же раздел просто изменен, то есть возможность исправить ситуацию.
Как исправить?
Прежде всего, воспользуйтесь командой ls, чтобы узнать список доступных разделов:
Далее просмотрите содержимое каждого раздела — это позволит понять, где именно располагаются файлы модулей, пример:
$ ls (hd0,1)/
Если увидели папку boot, то это нужный раздел. Далее инсталлируем данный раздел значением переменной root и посредством команды set:
set root=(hd0,1)set prefix=(hd0,1)/boot/grubПотом загружаем и запускаем модуль normal -- он загрузит все, что необходимо:
insmod normalnormal
Если раздел /boot поврежден не был, загрузчик корректно определит все файлы и запустит привычное меню. Конечно же, после загрузки надо будет восстановить загрузчик Grub для того, чтобы не вводить вышеописанные команды при каждой загрузке ОС. Если же вышерассмотренным способом проблему решить не удастся, придется пройти процедуру переустановки загрузчика с помощью LiveCD-диска.
How to Fix Error: Unknown Filesystem Grub Rescue in Windows 10?
Did you receive this error message: "error: unknown filesystem. grub rescue" when starting the computer? This article from MiniTool Partition Wizard shows you the possible cause of "error unknown filesystem grub rescue." Also, you can find some possible ways to fix grub rescue unknown filesystem in Windows 10.
My one is an uefi bios mode Dell laptop. I dual booted my laptop with kali linux and windows 10. The both operating systems runs smoothly. I can choose any operating from the grub. After going to windows, it says important updates install them. So, I restart my laptop to update. It says in the bottom your pc may restart several times. After 75% when it restarts it says error: file’/grub/x86_64-efi/ normal.mod ‘not found. https://answers.microsoft.com/en-us/windows/forum/all/dual-boot-laptop-entering-to-the-grub-rescue-error/301e095c-1faa-4358-84bd-a0999b2fad0c
Have you ever been stuck in the same situation as stated in the post “Error unknown filesystem grub rescue”? If you encounter this error now, this post is what you need.
Grub Rescue Unknown Filesystem: Meaning and Cause
In this error, GRUB is a boot loader that loads configuration information at boot time and allows modification at boot time which means the computer cannot boot when the error. So, when the error ” grub rescue unknown file system” appears, it means that there is a boot issue on the computer.
Well, what triggers the boot issue? After an investigation, we find the issue appears after people make adjustments to the two operating system partitions (delete the system partition, resize partition or reinstall Ubuntu OS, etc.) on the same hard disk. Any of these operations may cause the boot file missing or dislocating, and GRUB can’t find the original partition where the boot file is located.
You already know the reason, so how to fix the error: unknown filesystem grub rescue in Windows 10? Keep reading to know about it.
Solve: Conda Is Not Recognized as an Internal or External Command
Have you ever received the error message “conda is not recognized as an internal or external command, operable program or batch file”? Here is how to solve it.
How to Fix Error: Unknown Filesystem Grub Rescue in Windows 10?
When this “unknown filesystem grub rescue” error occurs, how should you fix it to ensure that the operating system can start normally? Here are three solutions, you can try them one by one.
Solution 1: Enter Grub Mode
For “unknown filesystem grub rescue” errors, one of the most common methods is to use the command line to fix grub.
Step 1: Find the partition where Linux installs and the grub directory.
- After entering rescue mode, type grub rescue > ls and press the Enter key on your keyboard to list all disks and partitions. For example, (hd0), (hd0, msdos1), (hd0, msdos2) …
- Type grub rescue > ls (hd0) and press Enter Repeat this step and try each partition one by one until the contents of the partition appear instead of appearing the message:” Filesystem is unknown “.
Assume that when it is (hd0, msdos8), the content appears successfully.
Step 2: Type grub rescue > set root= (hd0, msdos8) and press the Enter key.
Step 3: Type grub rescue > set prefix= (0,8)/boot/grub and press the Enter key.
Step 4: Type grub rescue > insmod normal and press the Enter key. Then you have now exited the grub rescue mode and entered the grub mod that you should be familiar with.
Step 5: Type grub > normal and press the Enter key.
Step 6: Fix grub.
After entering Linux system, you need to update the grub part of the MBR to adapt to the new partition situation, input sudo update-grub in the terminal and press Enter.
Step 7: Type sudo grub-install/dev/sda and press the Enter key. And sda is your boot disk.
In this way, the next time you boot up the computer, there will be a normal grub boot option.
Is Gears of War on PC? Here’s a Full Guide on Gears of War PC
Is Gears of War on PC? What’s the Gears of War 6 PC release date? Now, this post will analyze all information about the Gears of War PC.
Solution 2: Automatic Repair BCD Files Using Windows 10
When Windows 10 fails to start, you can restart the system multiple times and the system will enter WinRE mode. Sometimes the Windows 10 system will automatically enter the Automatic Repair interface. If not, you can use the Windows 10 installation tool to enter this recovery environment.
In WinRE mode, you can follow the step-by-step instructions to repair the system.
Step 1: Boot your PC from Windows 10 installation media.
Step 2: On the Install window, click the Repair your computer option. And then choose the Troubleshoot option.
Step 3: Under the Advanced options, click the Command Prompt option.
Step 4: Type the following commands one by one in the Command Prompt and hit the Enter key after each typing to rebuild the MBR:
bootrec / fixmbr
bootrec / fixboot
bootrec / scanos
bootrec / rebuildbcd
After finishing the commands above, you should be able to successfully boot into your computer.
However, if the problem still exists, you can refer to Solution 3 to rebuild MBR.
Xbox One X|S vs Xbox Series X|S: What’s the Difference
In this post, we will introduce you to the information about Xbox One vs Xbox Series X/S. Which one is better? Just keep reading to know the answer.
Solution 3: Rebuild MBR Using a Reliable Software
If you think it is too complicated to rebuild MBR by typing commands one by one, you can use an MBR repair tool — MiniTool Partition Wizard. Compared with the above method, using this software is much easier, with only 2 steps.
Note: Since Windows 10 cannot start, you can use the Bootable Media Builder feature to create a bootable USB drive on a normally running computer.
Step 2: Please wait for MiniTool Partition Wizard to launch itself.
Step 2: Right click the problematic system disk and select the Rebuild MBR option. Finally, click the Apply button.
Note: After repairing the MBR, it is recommended to back up the Windows operating system to avoid system damage.
In this way, you have known some ways to solve this problem “grub rescue filesystem is unknown”. Give it a try.
Miracast Not Supported by Graphics Driver on Windows 10/11
In this article, we will discuss what to do if the graphics driver computer does not support Miracast on your Windows 10/11.
Bottom Line
Now we have reached the end of this article. In this article, we have introduced to you what the “grub rescue unknown filesystem” error is, the cause of this error, and the detailed solutions to solve it.
After trying so many solutions, you may have successfully solved your problem. If you have any suggestions about this article, you can leave a comment below. If you have any problems about MiniTool Partition Wizard, you are welcome to send us an email at [email protected] . Thank you in advance.
About The Author
Vega joined MiniTool as an editor after graduation. She enjoys helping people with computer problems, including disk management, data recovery, and more. She is constantly expanding her knowledge in related fields. And she will continue to bring more easy-to-understand professional articles to help people solve various problems on the PC. In her daily life, Vega enjoys hanging out with friends, shopping online and listening to music. She is someone who knows how to enjoy life.
Linux — grub rescue
GRUB — GRand Unified Bootloader. Универсальный загрузчик, который устанавливается вместе с операционной системой Linux. В настоящее время большинство систем Linux используют GRUB2.
Если загрузчик GRUB не может найти папку grub или если файловая система диска повреждена, то вы можете при загрузке увидеть такую картину:
error: no such partition. Entering rescue mode. grub rescue > _
error: unknown filesystem. Entering rescue mode. grub rescue > _
grub rescue > _
Операционная система загрузиться не может. Что делать?
Посмотрим какие разделы на диске видит загрузчик с помощью команды ls:
grub rescue > ls (hd0) (hd0,msdos5) (hd0,msdos1)
В результате у нас отобразится:
- (hd0) — это диск
- (hd0,msdosX) — это найденные разделы диска
У меня найден один диск и два раздела на нём, первый и пятый. На название msdos не обращаем внимания, GRUB не определяет тип файловой системы.
Теперь нам нужно найти загрузочный раздел. По очереди перебираем разделы:
grub rescue > ls (hd0,msdos1)/ grub rescue > ls (hd0,msdos5)/
grub rescue > ls (hd0,1)/ grub rescue > ls (hd0,5)/
Можно получить ошибку:
Это означает, что раздел содержит неподходящую для загрузки файловую систему.
На каком-то из разделов отобразится список директорий:
grub rescue > ls (hd0,msdos1)/ ./ ../ lost+found/ boot/ vmlinuz-3.2.0-4-686-pae initrd.img-3.2.0-4-686-pae
Видим директорию boot, это нужный нам раздел. В зависимости от операционной системы путь к загрузчику может отличаться, вместо /boot/grub может быть /grub или ещё что-нибудь.
Устанавливаем переменные prefix и root:
grub rescue > set prefix=(hd0,msdos1)/boot/grub grub rescue > set root=(hd0,msdos1)
grub rescue > insmod ext2 grub rescue > insmod normal grub rescue > normal
После загрузки ОС нужно восстановить загрузчик GRUB на загрузочном разделе:
sudo grub-install /dev/sda sudo update-grub
unknown filesystem
Случается, что на всех разделах отображается ошибка:
Качаем boot-repair-disk и пытаемся восстановить файловую систему с помощью fsck в нужном разделе:
sudo fsck -y /dev/sda1
Теги
Похожие материалы
Установка VMware Tools на Ubuntu
Олег
- 9 февраля 2018
- Подробнее о Установка VMware Tools на Ubuntu
VMware Tools - бесплатный набор утилит для улучшения взаимодействия виртуальной машины и платформы VMware. В Интернете пишут про то, что от установки VMware Tools улучшается производительность виртуальной машины. В качестве примера указывают на то, что только в этом наборе утилит есть драйвера для сетевой карты vmxnet3. Не согласен, драйвера можно и отдельно поставить. В linux так и без этих драйверов сетевая карта работает нормально. А вот если у вас Windows Server - рекомендую vmxnet3, меньше глюков.
Исправляем ошибку Grub rescue в Linux
Ошибка Grub Rescue чаще всего встречается на компьютерах с двойной загрузкой, когда на компьютер установлен сначала Linux, а потом Windows.
Windows при установке может стереть загрузчик Linux и при загрузке вместо меню с выборов ОС для загрузки появляется ошибка:
Error: unknown filesystem Entering rescue mode
Error: no such partition
И перед вами открывается консоль Grub rescue.
Консоль загрузчика grub поддерживает ряд простейших команд. Их список можно вывести, набрав:
Выведите список разделов на диске:
В нашем примере есть один диск hd0 с разделом msdos1.
Проверьте есть ли файлы загрузчика grub на этом разделе:
Проверьте, что в указанном каталоге есть файл grub.cfg. Если у вас больше разделов и дисков, проверьте их все.
Создайте префикс для каталога загрузчика:
set prefix=(hd0, msdos1)/boot/grub
Сделайте раздел основным:
set root=(hd0, msdos1)/boot/grub
Загрузите дополнительные модули и загрузите Linux:
insmod ext2
insmod normal
normal
После загрузки Linux нужно переустановить загрузчик:
sudo grub-install /dev/sda
Используйте свою букву загрузочного диска вместо sda.
Обновите конфигурацию загрузчика grub2 в файле grub.cfg:
Grub должен автоматически обнаружить установленные операционные системы и добавить их в автозагрузку.
Если вы не смогли восстановить загрузчик описанным выше способом, можно исправить grub с помощью загрузочной флешки.
Я загрузил компьютер с LiveCD образа Ubuntu.
Откройте терминал и выполните команду:
Выведите список дисков и разделов:
Найдите раздел с установленной Linux (sda1 в моем случае).
Смонтируйте этот раздел в каталог /mnt:
mount /dev/sda1 /mnt
Проверьте, что на этом разделе есть каталог /boot/:
Если каталога boot нет, смонтируйте его отдельно:
mount /dev/sdaX /mnt/boot
Смонтируйте следующие разделы с Live образа:
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
Войдите в локальную систему на диске с помощью chroot:
Теперь можно переписать конфигурацию загрузчика на диске:
Отмонтируйте разделы и перезагрузите компьютер.
umount –R /mnt
reboot
Теперь ваш заручик grub исправен и должен вывести меню выбора загрузки операционных систем.