parted-auto-resize
parted-auto-resize copied to clipboard
Not working on Debian parted 3.2
Tried it but had no luck unfortunately:
root@ClearLinuxWLG ~ # ./resize.sh /dev/sda 3
will resize to 64425MB
WARNING!: Sandbox mode, i did not size!. Use 'apply' as third parameter to apply
root@ClearLinuxWLG ~ # ./resize.sh /dev/sda 3 apply
will resize to 64425MB
applying resize operation..
Warning: Partition /dev/sda3 is being used. Are you sure you want to continue?
parted: invalid token: 64425
Yes/No? ^C
root@ClearLinuxWLG ~ # yes | ./resize.sh /dev/sda 3 apply
will resize to 64425MB
applying resize operation..
Warning: Partition /dev/sda3 is being used. Are you sure you want to continue?
root@ClearLinuxWLG ~ # parted -l
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 569MB 568MB fat16 primary boot, esp
3 570MB 42.9GB 42.4GB ext4 primary
root@ClearLinuxWLG ~ # parted -v
parted (GNU parted) 3.2
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.
Success, this is what I was able to do:
root@ClearLinuxWLG ~ # parted -a none /dev/sda ---pretend-input-tty resizepart 3 Yes 64420MB
Warning: Partition /dev/sda3 is being used. Are you sure you want to continue?
Information: You may need to update /etc/fstab.
root@ClearLinuxWLG ~ # parted -l
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 569MB 568MB fat16 primary boot, esp
3 570MB 64.4GB 63.8GB ext4 primary
root@ClearLinuxWLG ~ #
thank you for reporting your let's dig down to this. I guess the seed acrobatics to get the max size are broken for this case