linux :: slackware 14.2 with grub and uefi
CAMSCAPE SERVICES David G. |
Title | Slackware 14.2 with GRUB and UEFI |
Tags | slackware,uefi,grub | |
Desc. | Slackware 14.2 with GRUB and UEFI | |
Code | KBLN0047 v1.0 | |
Date | 21 iunie 2021 |
Set BIOS as UEFI, but set Secure Boot as Disabled.
1. Boot Slackware disk. Use cfdisk, choose GPT and create at least (in order):
1 partition, 500M, EFI System type
1 partition, 4G, Linux Swap
1 partition, whole disk, Linux filesystem
Of course, you can continue adding /usr, /var a.s.o. as different partitions.
Now, start setup.
2. Format Swap, Format / in 3rd partition above as EXT4.
When finish, Slack will ask to format the EFI partition. Agree, it will mount it as /boot/efi.
3. Install as usual
4. LILO/ELILO
When setup reaches the LILO install on MBR, will asks to start ELILO instead. Choose YES
On next screen, choose Don''t install ELILO
5. Continue install as usual
6. When setup is done, choose not to reboot but to open a shell
7. Run
chroot /mnt /bin/bash source /etc/profile grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub grub-mkconfig -o /boot/grub/grub.cfg mkdir -p /boot/efi/EFI/boot cp /boot/efi/EFI/grub/grubx64.efi /boot/efi/EFI/boot/bootx64.efi
Restart