From 9006f4462f7230b25b196de4d6e59da3de572f94 Mon Sep 17 00:00:00 2001 From: beech Date: Fri, 20 Jun 2025 00:41:56 -0500 Subject: [PATCH] Fix sgdisk --- install1.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install1.sh b/install1.sh index 5ccc44f..8197492 100644 --- a/install1.sh +++ b/install1.sh @@ -13,7 +13,7 @@ echo "Specify drive name for install (ex. /dev/sda, /dev/nvme0n1). THIS WILL FOR read -r DISK if [[ ! -b $DISK ]]; then - echo "Error: Disk $DISK does not exist." + echo "Disk $DISK does not exist." exit 1 fi @@ -27,7 +27,7 @@ sgdisk -a 2048 -o $DISK # new gpt disk 2048 alignment read -r -p "Enter the root partition size (e.g., 35G): " ROOT_SIZE sgdisk -n 1:0:1024M $DISK # partition 1 (boot) sgdisk -n 2:0:4G $DISK # partition 2 (SWAP - change to desired size) -sgdisk -n 3:0:$ROOT_SIZE $DISK # partition 3 (root) +sgdisk -n 3:0:$ROOT_SIZE ${DISK} # partition 3 (root) sgdisk -n 4:0:0 $DISK # partition 4 (home, remaining space) # set partition types