From PCLinuxOSHelp Knowledge Base
Revision as of 11:49, 2 March 2020 by Terryn (talk | contribs) (First attempt)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To fix grub2 on your PCLinuxOS system:

Boot a recent PCLinuxOS LiveOS

Mount your PCLinuxOS root partition

 mkdir -p /mnt
 mount /dev/sdaX /mnt

(replace sdaX with whatever your root partition is)

If this is a UEFI system mount the EFI System Partition (ignore this step for a BIOS/legacy system)

 mount /dev/sdaY /mnt/boot/EFI

(replace sdaY with whatever your ESP is)

Run the following commands to re-install the grub bootloader code

 mount -B /dev /mnt/dev
 mount -B /proc /mnt/proc
 mount -B /sys /mnt/sys
 chroot /mnt

If all goes well you will see:

 Installation finished. No error reported.

Exit the chroot environment with CTRL-D

Undo the mounts and then reboot.

 umount /mnt/sys
 umount /mnt/proc
 umount /mnt/dev
 umount /mnt/boot/EFI   #if necessary
 umount /mnt