On Sun, Sep 26, 2010 at 05:42:21PM +0100, Richard W.M. Jones wrote: > On Wed, Sep 22, 2010 at 01:37:50PM -0700, Brian C. Lane wrote: > > As an alternative can you resize the partitions before you truncate the > > disk image? > > We're not touching the original disk image: > > http://libguestfs.org/virt-resize.1.html > > We _could_ snapshot the original image however which would allow us to > "modify" it without actually modifying it.
Thanks for the additional info. It looks to me like that process should be modified for shrinking to: 1. Resize filesystems 2. copy to outdisk (w/o size change) 3. Edit partition to match resized filesystems 4. Truncate outdisk This should work for msdos labeled disks. For GPT, I am not sure what parted would do when you truncate it (which will chop off the duplicate GPT table). -- Brian C. Lane / Anaconda Team Port Orchard, WA (PST8PDT)
pgpgxPaWeLD83.pgp
Description: PGP signature
_______________________________________________ parted-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/parted-devel

