[parted-devel] "Error: Can't have a partition outside the disk!"

Richard W.M. Jones rjones at redhat.com
Tue Sep 14 14:33:12 UTC 2010


If you take a virtual disk and truncate it, then likely some
partitions in the partition table will be off the end of the disk.

However parted refuses to start up in this case.  It says:

  Error: Can't have a partition outside the disk!

even if you are trying to do something sensible such as deleting a
partition which is outside the disk.

I can't really see a "good" way to solve this, since it happens in the
depths of the constraints/geometry code.  The attached patch just
deletes the error check, on the basis that parted should confine
itself to partition tables and not worry about the size of the disk.
Discuss ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw


More information about the parted-devel mailing list