Boot to any [Manjaro] live GUI disk.
Use manjaro-chroot
1. Start by identifying the partition where your Manjaro installation controlling the active Grub menu resides and needs repairing. If you are in Graphical mode you can use an application called GPartEd, which should be in Menu > System > GPartEd. This will provide a simple visual illustration of the partitions on your hard drive(s).
To do the same thing from terminal or TTY you can use this command
lsblk -f
2. manjaro-chroot is a tool to easily setup a functional chroot
into an installed Linux installation from a live boot of a Manjaro
Installation Media.
To setup the chroot use the command
sudo manjaro-chroot -a
You will be presented with a terminal. Wait until it shows a list with the available system partitions on your computer and choose the one you want to repair.
1.) First of all check the partition for the ESP (EFI System Partition). An ESP is a fat32 partition and contains .efi files for booting.
It can be checked using Gparted or from the terminal using fdisk -l
(Note:
If you do not have a EFI partition, you will need to create it.
Use Gparted for that.
Type- fat32
Size- 512 mb to 1 gb)
2.) Create the /boot/efi directory
sudo mkdir /boot/efi
3.) Mount the EFI partition as /boot/efi
sudo mount /dev/sdXY /boot/efi
X = Alphabet of the drive = a,b,c ... Y = Partition number of the EFI partition = 1,2,3,4...
Example - /dev/sda4
4.) Re-install Grub.
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
5.) Update Grub configuration file.
sudo update-grub
Reference Link: https://archived-wiki.manjaro.org/index.php?title=GRUB/Restore_the_GRUB_Bootloader
Comments
Post a Comment