Files
2023-07-16 23:31:34 +02:00

13 lines
332 B
Bash
Executable File

#!/bin/bash
# First install parted
# After + rezise of the ext4 HD use this script
# Change the resizepart 1 or to the other part
# apt install parted
# parted -l for the current disk
PART=1 # 1 for debian12 (cloudimage) 3 for ubuntu (cloudimage)
parted /dev/sda resizepart ${PART} 100%
resize2fs /dev/sda1
parted -l
fstrim -av