12 lines
278 B
Bash
Executable File
12 lines
278 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
|
|
#
|
|
PART=1 # 1 for debian12 (cloudimage) 3 for ubuntu (cloudimage)
|
|
parted /dev/sda resizepart ${PART} 100%
|
|
resize2fs /dev/sda1
|
|
parted -l
|
|
fstrim -av
|
|
|