[parted-devel] "Error: Can't have a partition outside the disk!"
Phillip Susi
psusi at cfl.rr.com
Wed Sep 15 14:25:11 UTC 2010
How about just adding PED_EXCEPTION_IGNORE so you can choose to ignore
the problem and proceed with removing the bad partition?On 9/14/2010
10:33 AM, Richard W.M. Jones wrote:
>
> 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 ...
More information about the parted-devel
mailing list