[Bug 1270203] Re: no way to use resizepart non-interactively on busy partition

2020-09-20 Thread Jure Sah
The `---pretend-input-tty` parameter doesn't work for me on parted 3.3-4 in Ubuntu 20. I ended up having to use fdisk to delete and then re-create the partition: ``` printf "d\nn\np\n1\n\n\nn\np\nw\n" | fdisk -B /dev/sda ``` -- You received this bug notification because you are a member of Ubunt

[Bug 1270203] Re: no way to use resizepart non-interactively on busy partition

2020-03-12 Thread walterav
It still affects me on Ubuntu Focal Fossa 20.04 using parted 3.3, using @Sunil Mohan Adapa (f-su7il-g)#6 workaround does work however the upstream bug report seems to suggest its intentional? https://lists.gnu.org/archive/html/bug-parted/2020-01/msg5.html In Ubuntu 19.10 using parted 3.2 this

[Bug 1270203] Re: no way to use resizepart non-interactively on busy partition

2020-01-01 Thread Sunil Mohan Adapa
With the release of parted 3.3 the above listed workarounds no longer work. The work around that worked for me was something like this: echo -e "yes\n100%" | parted /dev/mmcblk0 ---pretend-input-tty unit % resizepart 2 -- You received this bug notification because you are a member of Ubuntu Bugs

[Bug 1270203] Re: no way to use resizepart non-interactively on busy partition

2016-10-15 Thread David Lechner
My workaround is: parted --script /dev/mmcblk0 unit % resizepart 2 100% || parted /dev/mmcblk0 unit % resizepart 2 Yes 100% This tries tries the "correct" version first and if it fails (because the partition is mounted) then uses the workaround. -- You received this bug notification because you

[Bug 1270203] Re: no way to use resizepart non-interactively on busy partition

2015-04-14 Thread Phillip Susi
"100%" is "as big as possible" ;) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1270203 Title: no way to use resizepart non-interactively on busy partition To manage notifications about this bug go

[Bug 1270203] Re: no way to use resizepart non-interactively on busy partition

2015-04-14 Thread Scott Moser
ok. i gave Jesse's suggestion a try. It does seem to work, but some things are a bit annoying a.) if the partition is not mounted, then passing 'yes' as shown results in error. | $ sudo mount /dev/vdb1 /mnt | $ sudo parted /dev/vdb resizepart 1 yes 1024 | Warning: Partition /dev/vdb1 is being u

[Bug 1270203] Re: no way to use resizepart non-interactively on busy partition

2015-04-02 Thread Jesse Szwedko
Looks like it actually expects the 'yes' before the partition end. i.e.: sudo parted /dev/vdb 1 yes 1000 appears to work. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1270203 Title: no way to use

[Bug 1270203] Re: no way to use resizepart non-interactively on busy partition

2014-01-17 Thread Phillip Susi
echo "Yes" | sudo parted ---pretend-input-tty /dev/vdb resizepart 1 1000 fails because of another bug I had noticed recently but not gotten around to fixing yet... when looking for an answer to the exception question, like regular input, parted first looks for the next word given on the command lin