diff --git a/VM_Partitioning_and_Formatting.sh b/VM_Partitioning_and_Formatting.sh index 112ecef..fac6fc9 100644 --- a/VM_Partitioning_and_Formatting.sh +++ b/VM_Partitioning_and_Formatting.sh @@ -1,14 +1,14 @@ ### Partitioning: Stage Start. -## Creating a GPT partition table for our reproducible dev environment. +## Creates a GPT partition table for our reproducible dev environment. sudo parted /dev/vda -- mklabel gpt -## Configuring a boot partition of size 525 MiB with a 1MiB offset. +## Configures a boot partition of size 525 MiB with a 1MiB offset. sudo parted /dev/vda -- mkpart ESP fat32 1MiB 526MiB -## Setting the first partition as our boot location. +## Sets the first partition as our boot location. sudo parted /dev/vda -- set 1 esp on -## Creating a primary partition that allocates/uses the remaining space (starting from our boot to leaving 16GiB for swap partition). +## Creates a primary partition that allocates/uses the remaining space (starting from our boot to leaving 16GiB for swap partition). sudo parted /dev/vda -- mkpart primary 526MiB -16GiB -## Allocating the remaining 16GiB of disk space for a swap partition. +## Allocates the remaining 16GiB of disk space for a swap partition. sudo parted /dev/vda -- mkpart linux-swap -16GiB 100% ### Partitioning: Stage End. @@ -16,13 +16,13 @@ sudo parted /dev/vda -- mkpart linux-swap -16GiB 100% ### Format Stage 1. -## Formatting the boot partition with the FAT32 file system. +## Formats the boot partition with the FAT32 file system. sudo mkfs.fat -F 32 -n BOOT /dev/vda1 -## Initializing the swap partition. +## Initializes the swap partition. sudo mkswap /dev/vda3 -## Activating swap. +## Activates swap. sudo swapon /dev/vda3