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 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 to: https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1270203/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs