parted-auto-resize icon indicating copy to clipboard operation
parted-auto-resize copied to clipboard

Not working on Debian parted 3.2

Open ToroNZ opened this issue 6 years ago • 2 comments

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>.

ToroNZ avatar Apr 03 '18 23:04 ToroNZ

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 ~ #

ToroNZ avatar Apr 03 '18 23:04 ToroNZ

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

EugenMayer avatar Apr 04 '18 05:04 EugenMayer