fuel-dev team mailing list archive
-
fuel-dev team
-
Mailing list archive
-
Message #00703
Re: cleaning partition table
Thank you.
It seems to be a better way to wipe out previous partitions.
Guys, should we create a blueprint or bug for that? Low-hanging-fruit?
As I understand, we will simply modify a couple of lines in a file
https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/cobbler/templates/scripts/pmanager.py
On Tue, Mar 25, 2014 at 3:10 AM, Aleksandr Dobdin <sanek.dobdin@xxxxxxxxx>wrote:
> Hi all,
>
> I have 2 cents to add in pre-script in a kickstart file.
> Instead of using dd if=/dev/zero of=/dev/sda bs=1M count=10
> we can use the following commands:
> # sgdisk --zap-all /dev/sda
> # parted -s /dev/sda mklabel gpt
>
> from man sgdisk: Zap (destroy) the GPT and MBR data structures and then
> exit. This option works much like -z, but as it wipes the MBR as well as
> the GPT, it's more suitable if you want to repartition a disk after using
> this option
>
> from man parted: mklabel Create a new disklabel (partition table) of
> label-type.
> Thank you.
>
> Best Regards,
> Aleksandr Dobdin.
>
> --
> Mailing list: https://launchpad.net/~fuel-dev
> Post to : fuel-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~fuel-dev
> More help : https://help.launchpad.net/ListHelp
>
>
--
Andrey Danin
adanin@xxxxxxxxxxxx
skype: gcon.monolake
Follow ups
References