[parted-devel] "Error: Can't have a partition outside the disk!"
Brian C. Lane
bcl at redhat.com
Mon Sep 27 16:59:22 UTC 2010
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 517 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20100927/329744c5/attachment.pgp>
More information about the parted-devel
mailing list