Today in the Windows 10 system received the System update notification, did not see clearly personal overdraft the point of the update immediately. Thought just like those regular updates restart the update is over, never thought that this is an overwrite update, that is, this is a new system update instead of the system patches. In the process of installation I was in the heart of meditation "finished, this installation completed Linux system boot must be manually repaired." ", and sure enough, the default is to start booting with Windows, and the F2 setting switches to Deepin Linux boot and still fails to boot Linux normally. To fix this problem is not complicated, the following article records the whole process of repairing the boot.
Error message
file ' /boot/grub/x86_64-efi/normal.mod ' Not found. Entering Rescue Mode...grub Rescue> _
Enter the system
As can be seen from the error message, the problem occurs when grub cannot find the file Normal.mod, what we do now is to set the boot partition and grub file path of Linux through Grub's rescue terminal and reboot the system.
- Find the partition where the system boot is located:
List all partitions with the LS command
ls ( hd0) (HD1) (Hd1,gpt8) ....
Depending on your own memory, it is possible to locate the partition where the system is booting (if you do not remember that you can only try each one) and use LS to locate the boot partition (output contains boot/)
As you can see (HD1,GPT7) is the partition we are looking for:
ls (HD1,GPT6)/. / .. /lost+found/Grub Rescuels (hd1,gpt7)/. / .. /lost+found/bin/boot/dev/...
Grub Rescue> Set root=(HD1,GPT7) grub Rescue> Set prefix= (hd1,gpt7)/boot/Grub
Insmod Normalgrub Rescue> Normal
If the above settings are correct, you can enter the Grub menu of the system normally.
Reinstall Grub
After normal entry into the system, if you do not first repair grub boot, after restarting the computer will still enter just that rescue mode.
- Find your EFI partition mount point
Run the DF command:
Df
As you can see, the EFI mount point is:/dev/sdb2
To install grub with the Grub-install command:
If you are not prompted to find a command, try adding your/usr/sbin to the environment variable path:
Open: Vim/etc/profile
Add: Export path= $PATH:/usr/sbin
Application configuration: Source/etc/profile
sudo grub-install /dev/sdb2
If you get the following output, congratulations on the successful installation of GRUB!
Repair Linux Boot in rescue mode of GRUB