bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dump and restore disk label


From: Jim Meyering
Subject: Re: dump and restore disk label
Date: Fri, 31 Dec 2010 16:42:24 +0100

Harald Dunkel wrote:
> I would like to dump and restore a disk label, independent
> from the label type. Looking at the documentation it seems that
> parted doesn't support this yet. Do you think it could be
> added?

It would be a useful new feature.
Others have requested it, too.

> dd does take ages on todays disks, so this is not an option.
>
> Any helpful comment would be highly appreciated

You can dump most of the required information with this command:

    parted -m -s /dev/... u s print free

That prints the partition table type, sector numbers
and most other bits of information, like DOS partition types
GPT partition names.  However, parted does not print disk
and partition UUIDs.

As far as I know, there is no tool to parse that output and
recreate the corresponding partition table -- assuming the
target disk is the same size.

I would welcome a patch that adds this feature,
one way or another (it needn't use the -m output format,
which may be inadequate).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]