Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jun 2011 04:25:29 -0400
From:      Robert Simmons <rsimmons0@gmail.com>
To:        questions@freebsd.org
Subject:   Re: Partitioning with gpart or old style slices?
Message-ID:  <BANLkTimwzwXpqmNE7w-CEkvpL7OY9Q-g3Q@mail.gmail.com>
In-Reply-To: <4deb31db.HAlrICd12fNR9NoX%perryh@pluto.rain.com>
References:  <4DEAAE54.1050508@locolomo.org> <alpine.BSF.2.00.1106042039240.34792@wonkity.com> <20110605044021.GA2213@tinyCurrent> <201106050103.47416.rsimmons0@gmail.com> <BANLkTimgfejSW-BjmT-XUFJc-EaKOzAYMg@mail.gmail.com> <BANLkTi=_CfrmosNBD=qoxiKdSCXQagNY5w@mail.gmail.com> <4deb31db.HAlrICd12fNR9NoX%perryh@pluto.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 5, 2011 at 3:35 AM,  <perryh@pluto.rain.com> wrote:
> Robert Simmons <rsimmons0@gmail.com> wrote:>
>> > How do I wipe the whole thing in one go so that I can start
>> > afresh?
>> >
>> > gpart destroy ad4 ??
>>
>> Yes, but first you must delete all of the slices/partitions.
>> Think of it this way: you must go backwards down the path you
>> just came with a delete for each add, then a destroy for each
>> create.
>
> So there is no way to just say "clean up this whole disk" in a
> single operation? =A0That seems a considerable step backwards,
> given that the old tools have "fdisk -i" and "bsdlabel -w".

I've never had to use it, but I think "gpart destroy -F ad4" is what
you are looking for, so I guess it is not necessary to step backwards
after all.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimwzwXpqmNE7w-CEkvpL7OY9Q-g3Q>