Comment 3 for bug 1270203

Revision history for this message
Scott Moser (smoser) wrote :

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 used. Are you sure you want to continue?
 | Information: You may need to update /etc/fstab.
 |
 | $ echo $?
 | 0

 However:
 | $ sudo umount /mnt
 | $ sudo parted /dev/vdb resizepart 1 yes 1024
 | Error: Invalid number.
 | $ echo $?
 | 1

b.) I have to know the target size. I'd like to just say "make it as big as possible".

I could work around both, but both are annoying.