Difference between revisions of "Growpart"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
``` | ``` | ||
echo 1 > /sys/block/sdc/device/rescan | echo 1 > /sys/block/sdc/device/rescan | ||
− | parted -s -a opt /dev/sdc "resizepart 1 100%" | + | sudo parted -s -a opt /dev/sda "print free" |
+ | sudo parted -s -a opt /dev/sdc "resizepart 1 100%" | ||
+ | sudo parted -s -a opt /dev/sda "print free" | ||
+ | |||
sudo growpart /dev/sdc 1 | sudo growpart /dev/sdc 1 | ||
sudo resize2fs /dev/sdc1 | sudo resize2fs /dev/sdc1 |
Latest revision as of 21:01, 14 September 2022
lsblk df -h sudo growpart /dev/sdc 1 sudo resize2fs /dev/sdc1 lsblk df -h
Maybe works
Increase disk then
echo 1 > /sys/block/sdc/device/rescan sudo parted -s -a opt /dev/sda "print free" sudo parted -s -a opt /dev/sdc "resizepart 1 100%" sudo parted -s -a opt /dev/sda "print free" sudo growpart /dev/sdc 1 sudo resize2fs /dev/sdc1
parted --script /device \ mklabel gpt \ mkpart primary 1MiB 100MiB \ mkpart primary 100MiB 200MiB \