[RFC] setup-storage: generate scripts for partition table (re)creation

Michael Prokop mika at grml.org
Wed Sep 22 11:43:34 CEST 2010


* Julien BLACHE <jblache at debian.org> [Tue Sep 21, 2010 at 10:01:44PM +0200]:

> I have an idea for a small new feature in setup-storage, and I'm
> looking for some feedback to gauge interest. The idea is to generate a
> script for each device that can be used to recreate the partition table
> after the initial installation, should the need arise.

> The use case is pretty simple: being able to replace a failed disk in a
> RAID setup.

> With an msdos disk label, I just use sfdisk to do this, but I'm not
> aware of an equivalent tool for GPT disk labels. Parted unfortunately
> doesn't have an option to generate a parted script from an existing
> partition table (that I know of, at least).

> Now, I can either write a tool that parses parted output to generate a
> script using parted commands, or I can add this feature to
> setup-storage.

> Any thoughts?

Lovely idea, I'd appreciate such a feature! Would be nice to have
this script available outside of setup-storage as well so it could
be used like sfdisk nowadays, though if setup-storage would support
the feature as well this would be awesome. :)

regards,
-mika-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai-devel/attachments/20100922/7a79d864/attachment.bin 


More information about the linux-fai-devel mailing list