From PCLinuxOSHelp Knowledge Base
Jump to: navigation, search

To fix or restore the GRUB2 bootloader on your PCLinuxOS system:

Boot a recent PCLinuxOS LiveOS and open a root terminal to execute the commands given below:

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