Fix grub: Difference between revisions

From www.ReeltoReel.nl Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
* Boot from live dvd (graphical desktop is ok)
* Boot from live dvd OR choose RESCUE from boot USB (graphical desktop is ok)
* use gparted to find boot partition  
* use gparted to find boot partition  
* mount /dev/sdX /mnt
* mount /dev/sdX /mnt
:::#mount /dev/sda5 /mnt
#mount /dev/sda5 /mnt
 
 
* mount –-bind /dev /mnt/dev
* mount –-bind /dev /mnt/dev
* mount –-bind /proc /mnt/proc
* mount –-bind /proc /mnt/proc
* mount –-bind /sys /mnt/sys
* mount –-bind /sys /mnt/sys
* chroot /mnt
* chroot /mnt
* grub2-mkconfig -o /boot/grub2/grub.cfg
* grub2-mkconfig -o /boot/grub2/grub.cfg
* grub2-install /dev/sda
* grub2-install /dev/sda
* chtrl-d 'exit'  
* chtrl-d 'exit'  
* reboot
* reboot



Revision as of 14:17, 30 August 2023

  • Boot from live dvd OR choose RESCUE from boot USB (graphical desktop is ok)
  • use gparted to find boot partition
  • mount /dev/sdX /mnt
  1. mount /dev/sda5 /mnt
  • mount –-bind /dev /mnt/dev
  • mount –-bind /proc /mnt/proc
  • mount –-bind /sys /mnt/sys
  • chroot /mnt
  • grub2-mkconfig -o /boot/grub2/grub.cfg
  • grub2-install /dev/sda
  • chtrl-d 'exit'
  • reboot


grub edit

F2 into grub CLI

insmod ntldr

insmod ntfs

insmod chain

set root=(hd0,msdos1)

chainloader +1

boot