Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on Debian parted 3.2 #1

Open
ToroNZ opened this issue Apr 3, 2018 · 2 comments
Open

Not working on Debian parted 3.2 #1

ToroNZ opened this issue Apr 3, 2018 · 2 comments

Comments

@ToroNZ
Copy link

ToroNZ commented Apr 3, 2018

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
Copy link
Author

ToroNZ commented Apr 3, 2018

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

@EugenMayer
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants