Installer GRUB en UEFI

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB

/boot/efi est la partition EF00 formaté en vfat. Slackware est le nom donné à l'entrée EFI.

Installer GRUB en Legacy-BIOS avec partitions GPT

Avec gdisk, il faut créer une partition sans système de fichiers (avant 2To) de type “EF02” avec le GUID 21686148-6449-6E6F-744E-656564454649 Puis lancer la commande :

# grub-install --target=i386-pc /dev/sdX

Configurer GRUB

# grub-mkconfig -o /boot/grub/grub.cfg

Personnellement je désactive les fichiers suivants :

# cd /etc/grub.d  
# chmod -x 10* 20* 30* 4*    
# cp 40_custom 10_slackware  
# chmod +x 10_slackware

Puis j'adapte /etc/grub.d/10_slackware grâce à /boot/grub/grub.cfg puis on relance à nouveau la commande :

# grub-mkconfig -o /boot/grub/grub.cfg

Merci à la documentation archlinux.

tuto/grub.txt · Dernière modification : 2023/03/05 17:25 de Thomas
CC Attribution 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0