[parted-devel] "Error: Can't have a partition outside the disk!"
Karel Zak
kzak at redhat.com
Wed Sep 29 15:28:33 UTC 2010
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
--
Karel Zak <kzak at redhat.com>
http://karelzak.blogspot.com
More information about the parted-devel
mailing list