2024年1月20日 星期六

在Aspire Switch 10中設定grub的方法

 在嘗試安裝grub很多次後

依照正常的部分先做

grub-install --target=i386-efi --efi-directory=/boot/efi \
--removable --boot-directory=/boot/efi/EFI \
--bootloader-id=grub /dev/sdX

我這邊利用外接的隨身碟來當ELF的開機

執行完成後要將/boot/EFI下的目錄複製到隨身碟中

這樣就能正常開機

一般用

32位元版EFI 命令

grub-install --target=i386-efi --efi-directory=/boot/efi --removable

64位元版EFI 命令

grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable


進入bios 把Security EFI的部份作設定

加入在開機區的部份 \HD\EFI\Slackware15.0\grubia32.efi
這樣就能夠用本身的硬碟開機
最近有看到方法, 進入BIOS後
1. 進Secutity
2. 把Ease all Secure Boot Settint:
3. Select an UEFI file as trustedfor executing: 選擇開機的檔案grubia32 然後到Boot Secure Boot 改成Disabled

沒有留言: