Fix grub: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
* 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 –-bind /dev /mnt/dev | * mount –-bind /dev /mnt/dev | ||
* mount –-bind /proc /mnt/proc | * mount –-bind /proc /mnt/proc |
Latest revision as of 14:18, 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
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