[parted-devel] "Error: Can't have a partition outside the disk!"
Richard W.M. Jones
rjones at redhat.com
Wed Sep 29 16:06:04 UTC 2010
On Wed, Sep 29, 2010 at 05:28:33PM +0200, Karel Zak wrote:
> On Wed, Sep 29, 2010 at 02:55:59PM +0100, Richard W.M. Jones wrote:
> > On Wed, Sep 29, 2010 at 11:11:48AM +0200, Karel Zak wrote:
> > > On Sun, Sep 26, 2010 at 05:42:21PM +0100, Richard W.M. Jones wrote:
> > > > In any case I'll probably write a small utility which just zaps the
> > > > partition table without touching the rest of the bootloader.
> > >
> > > Maybe we can add this functionality to wipefs(8), libblkid is already
> > > able to detect and parse almost all partition table formats.
> >
> > Coincidentally I tried using wipefs within libguestfs (but not
> > successfully yet). It really only wipes filesystems, which I guess
> > should be obvious from the name. I think it should be extended to
> > wipe other stuff to: LVM, partition tables, RAID metadata being three
> > obvious ones.
>
> The latest version (F-14) also supports RAIDs and LVM.
>
> Karel
>
>
>
> $ wipefs /home/images/filesystems/mdraid.img
>
> offset type
> ----------------------------------------------------------------
> 0x9f0000 linux_raid_member [raid]
> UUID: 37c76b91-011a-05c5-d30c-1fd4c5c3dbbc
>
>
> $ wipefs /home/images/filesystems/lvm2.img
> offset type
> ----------------------------------------------------------------
> 0x218 LVM2_member [raid]
> UUID: Vynv4k-APH8-xQER-HSBb-8VJ3-SvFF-PB5O1U
OK, that's good to know. I'll add a wipefs wrapper to libguestfs at
some point. It seems a more reliable way to do it than our current
method:
http://libguestfs.org/guestfs.3.html#guestfs_zero
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