Linux: GPT partitioning

From ReceptiveIT
Jump to: navigation, search
sudo parted /dev/sda
mklabel gpt #(new blank gpt table)
unit MiB #(change the display units to MiB)
mkpart GRUB 1 2 #(make small 1MiB partition between 1 and 2 with label GRUB)
set 1 bios_grub on #(set the bios_grub flag to ON on that partition)
mkpart ROOT 2 20482 #(make partition for / with size 20480MiB=20GiB)
mkpart HOME 20482 xxxxx #(make partition for /home between 20482 and the total number of MiB on the disk minus few)
quit #(quit parted)