Advertisement
woohoo

grub repair

Jul 6th, 2023 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. https://www.fosslinux.com/115031/troubleshoot-boot-problems-by-reinstalling-grub-on-linux.htm
  2.  
  3. boot with live media
  4.  
  5. sudo -i
  6.  
  7. mount /dev/sda3 /mnt
  8. mount --bind /dev /mnt/dev
  9. mount --bind /proc /mnt/proc
  10. mount --bind /sys /mnt/sys
  11.  
  12. chroot /mnt
  13. grub-install /dev/sda
  14. update-grub
  15.  
  16. exit # ctrl+d
  17. umount /mnt/dev
  18. umount /mnt/proc
  19. umount /mnt/sys
  20. umount /mnt
  21.  
  22.  
  23. Reboot without live media.
  24.  
  25. check the GRUB version by opening a terminal and running the following command:
  26.  
  27. grub-install --version
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement