jlr1701 wrote:Hmm... well, Grub had an update that I installed and now rEFInd is gone!
I tried reinstalling it, but couldn't get it back. Here's the message I get:
Installing rEFInd on Linux....
ESP was found at /boot/efi using vfat
Copied rEFInd binary file refind_x64.efi
Notice: Backed up existing icons directory as icons-backup.
Copying sample configuration file as refind.conf; edit this file to configure
rEFInd.
An existing EFI boot manager entry for rEFInd seems to exist:
Boot0005* rEFInd HD(1,22,5f5e2,590d6523-3d37-4443-8c00-090ef894b254)File(\EFI\refind\refind_x64.efi)
This entry is NOT being modified, and no new entry is being created.
Installation has completed successfully.
I deleted refind.conf and refind_x64.efi from the /boot/efi/EFI directory and tried again, but got the same result.
Any help would be greatly appreciated. Thanks!!
What a PITA !!! My experiences with grub2 have also been everything but good. My opinion is that it shouldn't have been packaged as standard with Linux (most distributions, not only LM).
You may try the following:
Boot your live USB stick.
Mount ALL your /, /boot, and /boot/efi partitions, for example (change where needed):
Code: Select all
mkdir /mnt/boot /mnt/boot/efi /mnt/home
mount /dev/sda3 /mnt
mount /dev/sda2 /mnt/boot
mount -t vfat /dev/sda1 /mnt/boot/efi
mount /dev/sda4 /mnt/home
The above example assumes you have 4 partitions on sda: sda1 for /boot/efi formatted as vfat, sda2 formatted as ext2/3/4 for /boot, sda3 holds /, and sda4 for /home.
Now bind /dev to /mnt/dev, chroot to /mnt (your / partition on your hard drive), and mount the sysfs, etc. filesystems:
Code: Select all
mount --bind /dev /mnt/dev
chroot /mnt
mount -t sysfs none /sys
mount -t proc none /proc
mount -t devpts none /dev/pts
After your chroot to /mnt the / will refer to your root partition on the hard drive.
Now update or reinstall grub:
Code: Select all
apt-get update
apt-get install grub-efi #to install it in case it wasn't installed
update-grub
grub-install /dev/sda # I think you may not even need the /dev/sda
Look at the /boot/efi and /boot folders and see if they were updated.
You may have to run (I never did that, and it should work without):
Code: Select all
update-initramfs -u # to create a new initramfs, just in case
Now lets unmount and sync the file systems to write the changes to disk:
Code: Select all
umount /dev/pts
umount /proc
umount /sys
exit
umount /mnt/dev
umount /mnt/boot/efi
umount /mnt/boot
umount /mnt/home
umount /mnt
sync
At this point you can reboot and cross your fingers. When the PC boots press F8 repeatedly to enter the Asus boot manager. There should be an entry "UEFI: ...." referring to your boot drive (SSD...). Select it and boot.
Let me know if this works. If not, you may have to try again with the live USB and install grub-efi in the live system. After installation you can check in synaptic and look under properties for the grub-efi package to see which files and scripts are installed. I'm not sure if grub-efi replaces the update-grub and grub-install scripts and you may have to see if there is a conflict with grub2. As far as I can recall, the efi boot loader should have been installed with it.