Commit 8316144c authored by Helen Koike's avatar Helen Koike

wip: decrease disk size

parent 12ee32cf
......@@ -95,7 +95,7 @@ create_crypt()
echo "creating $DISK"
fi
dd if=/dev/zero of=$DISK bs=512M count=2
dd if=/dev/zero of=$DISK bs=256M count=2
LOOP_DEV=$(sudo losetup -fP --show $DISK)
sectors=$(sudo blockdev --getsz "${LOOP_DEV}")
key=babebabebabebabebabebabebabebabebabebabebabebabebabebabebabebabe
......@@ -137,15 +137,15 @@ create_striped()
echo "creating $DISK"
fi
dd if=/dev/zero of=$DISK bs=512M count=4
dd if=/dev/zero of=$DISK bs=256M count=4
# Partition 1
sudo sgdisk -n 1:0:+500M -t 1:7f01 "$DISK"
sudo sgdisk -n 1:0:+200M -t 1:7f01 "$DISK"
# Partition 2
sudo sgdisk -n 2:0:+500M -t 2:7f01 "$DISK"
sudo sgdisk -n 2:0:+200M -t 2:7f01 "$DISK"
# Partition 3
sudo sgdisk -n 3:0:+500M -t 3:7f01 "$DISK"
sudo sgdisk -n 3:0:+200M -t 3:7f01 "$DISK"
# Partition 4
sudo sgdisk -n 4:0:+500M -t 4:7f01 "$DISK"
sudo sgdisk -n 4:0:+200M -t 4:7f01 "$DISK"
LOOP_DEV=$(sudo losetup -fP --show $DISK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment