Partitioning for UEFI with fdisk
g (gpt disk label)
n
1 (partition number [1/128])
2048 first sector
+300M last sector (boot sector size)
t
1 (EFI System)
n
2
default
+4G
t
2
swap
n
3
default (fill up partition)
default (fill up partition)
w (write)
For installing grub on uefi: grub-install –target=x86_64-efi –bootloader-id=grub_uefi –efi-directory=/boot –recheck
[ad_2]
source