Note:These are rather my dirty notes on how I installed rEFIND in my workstation for future reference.
$ sudo pacman -S refind
Assuming you already install these packages os-prober
,ntfs-3g
to identity our windows partition and efibootmgr
The refind-install
script will identify out boot partition and install refind there.
$ sudo refind-install
This will make refind your default loader
The above script should make it default otherwise run the following one in case that did not happen.
$ sudo refind-mkdefault
Check the Partition UUIDs for your machine
$ sudo blkid
Sometimes you might need to delete a bootloader
First you have to run $ sudo efibootmgr
to check your bootloaders
$ sudo efibootmgr --delete-bootnum --bootnum 5
in this case 5 here you pick it up from B0005
.Last digit of the bootloader number
You can download and use a custom theme
$ sudo git clone https://github.com/Patricol/refind-material-theme.git
$ sudo echo -e 'include refind-material-theme/theme.conf' | sudo tee -a /boot/efi/EFI/refind/refind.conf
Copy these files from share directory to BOOT & refind directory so that they are located during boot
Tip: check the refind-install
command script above. Otherwise run the following commands just in case.Though not needed.
$ sudo mkdir -pv /boot/efi/EFI/refind/drivers_x64 /boot/efi/EFI/BOOT/drivers_x64
$ sudo cp -v /usr/share/refind/refind_x64 /boot/efi/EFI/refind/refind_x64.efi
$ sudo cp -v /usr/share/refind/refind_x64.efi /boot/efi/EFI/refind/refind_x64.efi
$ sudo cp -v /usr/share/refind/refind_x64.efi /boot/efi/EFI/BOOT/bootx64.efi
$ sudo cp -v /usr/share/refind/drivers_x64/ex4_x64.efi /boot/efi/EFI/refind/drivers_x64/ext_x64.efi
$ sudo cp -v /usr/share/refind/drivers_x64/ext4_x64.efi /boot/efi/EFI/BOOT/drivers_x64/ext4_x64.efi
$ sudo cp /usr/share/refind/refind.conf-sample /boot/efi/EFI/refind/refind.conf
$ sudo cp /usr/share/refind/refind.conf-sample /boot/efi/EFI/refind/BOOT/refind.conf
$ sudo cp -vr /usr/share/refind/icons /boot/efi/EFI/refind/
$ sudo cp -vr /usr/share/refind/icons /boot/efi/EFI/BOOT/
Check line dont_scan_volumes
You only need to scan the volumes where EFI Partitions are found i.e /boot/efi
as in my case for Arch and partition /dev/sda6
for Window(my windows EFI Partition is here) but installed in dev/sda8.lol
The rest disable so that the bootloader does not spend time scanning those. Otherwise if not you get a blank screen with only refind logo!
Note:
After you reboot your machine, you may see many other bootloader that were loaded and you may wish to have them hidden.
Select one after the other then hit Del
key, when prompted to remove them select yes.Technically they are not removed from your machine but rather hidden for rEFInd.
You should now be left with Windows & Arch only.