在安裝Arch Linux時上rEFInd引導

Last updated on 3 years ago

grub太難看了,rEFInd才好看,我這萌新寫的這些算是我的筆記了。
在這裏我用的是Arch Linux安裝脚本安裝系統,省了一堆麻煩,但我沒有用脚本安裝啓動引導,改爲手動安裝。

分區問題

掛載boot直接掛在EFI分區(辣雞windows才分配100MB,逼迫我擴容,最好擴容到500MB,要不內核裝不上)就好了

不要掛EFI分區在/boot/efi

上引導過程

在chroot裡面裝上refind然後refind-install之後,編輯/boot/refind-linux.conf

將第一項右邊改為“root=UUID=XXX rw quiet”

uuid的話輸入blkid找root分區的uuid不是partuuid

改完之後重啟

重啟完之後把refind-linux.conf刪掉,再來一次refind-install,這樣就算差不多了

之後的refind.conf啟動項隨便玩,我就在裡面寫了個arch啟動項,然後把之前的給屏蔽掉了,順便換個主題

接下來我就來放個我的refind.conf作爲配置例子。(2021更新,其實是防止我又忘了)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
hexomenuentry "Arch Linux" {
icon /EFI/refind/refind-theme-regular/icons/384-144/os_arch.png
#icon大小與主題自行設置
volume "Arch Linux"
loader /vmlinuz-linux
initrd /initramfs-linux.img
options "root=PARTUUID=114514-1919810-8888888 rw quiet add_efi_memmap"
#uuid用我上文提到的那個
submenuentry "Boot using fallback initramfs" {
initrd /boot/initramfs-linux-fallback.img
}
submenuentry "Boot to terminal" {
add_options "systemd.unit=multi-user.target"
}
}

在安裝Arch Linux時上rEFInd引導
https://blog.rin.moe/refind-arch/
Author
Rin
Posted on
April 25, 2020
Licensed under