Steps to fix Grub under Ubuntu system

  
                

If the Ubuntu system Grub fails, the first thing many people think of is to reinstall Grub, which wastes a lot of time. In fact, it can completely repair Grub to solve the fault on Grub, and can retain the original settings to minimize the impact.

how

Ubuntu system repair Grub

1. find a way into the Ubuntu Live CD system, or other newer versions of the Live CD system.

2. Open the terminal, type sudo fdisk -l, view the partition with ID=83, and record sd[NUM], such as sda8.

3. If there are multiple partitions with ID=83 in the previous step, I will try to determine the partition number where the partition is located, and /boot is also mounted on the same partition as the /partition, for example, sda8 .

4. Enter sudo -i and get root privileges.

5.mkdir /media/tmp.

6. Mount the /partition to the newly created directory mount /dev/sda8 /media/tmp.

7. If the previous system /boot is mounted separately, you need to find the /boot partition such as sda7, then mount /dev/sda7 /media/tmp/boot. Otherwise this step jumps directly.

8. Next, prepare to install grub, terminal input: grub-install --root-directory=/media/tmp /dev/sda.

9. If you see information such as Installation finished, no error occured, it indicates that it has been successful.

10. At this point, restart the system, you should be able to see the original grub2 boot interface back, and if there are other systems, it will also display the list of startup items

PS: If step10 If you don't see your Windows 8 startup item, after the Ubuntu is started normally, the terminal enters sudo update-grub2. After that, you should wait for a moment and you can see that the Windows 8 startup items are also added to the list.

Follow the steps above to fix Grub on Ubuntu system. You will find it easier and faster than reinstalling Grub. Of course, if you want to fix Grub boot, you can also refer to: How to fix Grub boot under Ubuntu.

Copyright © Windows knowledge All Rights Reserved