Skip to content

Instantly share code, notes, and snippets.

@deomorxsy
Created September 3, 2020 02:39
Show Gist options
  • Save deomorxsy/68802eadcc12b15e5b63a1ca3ca4afea to your computer and use it in GitHub Desktop.
Save deomorxsy/68802eadcc12b15e5b63a1ca3ca4afea to your computer and use it in GitHub Desktop.
EFI partition basic configuration with Parted and mkfs.fat

Creating partition

mkpart "EFI system partition" fat32 33MiB 512MiB

Setting partition flag for boot

set 1 esp on

Formatting partition in FAT32 with mkfs.fat. sdxY stands for the letter and the partition, respectively.

mkfs.fat -F32 /dev/sdxY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment