diff --git a/pages/linux/parted-interactive.md b/pages/linux/parted-interactive.md index 867b3a5e00..763994af94 100644 --- a/pages/linux/parted-interactive.md +++ b/pages/linux/parted-interactive.md @@ -16,7 +16,11 @@ `select {{/dev/sdX}}` -- Create a 16 GB partition with the specified filesystem in interactive mode: +- Create a 16 GB partition with the specified filesystem in interactive mode (`GPT` partition table): + +`mkpart {{partition_name}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}` + +- Create a 16 GB partition with the specified filesystem in interactive mode (`MBR` partition table): `mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}` diff --git a/pages/linux/parted.md b/pages/linux/parted.md index 71e8ec7fce..059867cd35 100644 --- a/pages/linux/parted.md +++ b/pages/linux/parted.md @@ -10,11 +10,15 @@ - Create a new partition table of the specified label-type: -`sudo parted {{/dev/sdX}} {{[-s|--script]}} mklabel {{aix|amiga|bsd|dvh|gpt|loop|mac|msdos|pc98|sun}}` +`sudo parted {{/dev/sdX}} mklabel {{aix|amiga|bsd|dvh|gpt|loop|mac|msdos|pc98|sun}}` -- Create a new `gpt` partition table with a 500MiB boot partition and give the rest for the system partition: +- Create a new `gpt` partition table with a 500MiB boot partition and give the rest for the system partition (`--script` skips user intervention prompts): -`sudo parted {{/dev/sdX}} {{[-s|--script]}} mklabel gpt mkpart primary 0% 500MiB mkpart primary 500MiB 100%` +`sudo parted {{/dev/sdX}} {{[-s|--script]}} mklabel gpt mkpart "{{boot_partition_name}}" 0% 500MiB mkpart "{{system_partition_name}}" 500MiB 100%` + +- Set a partition to have its boot flag turned on: + +`sudo parted {{/dev/sdX}} set {{1}} boot on` - Start interactive mode with the specified disk selected: