Date: Tue, 16 Jul 2013 13:57:06 -0700 From: aurfalien <aurfalien@gmail.com> To: Michael Sierchio <kudzu@tenebras.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: gpart: table 'da0' is corrupt; operation not permitted Message-ID: <CB03CFAC-6F82-46B0-B456-E81E45A4F4AB@gmail.com> In-Reply-To: <CAHu1Y70gF4T=4F3wUy9Q5wT2EmJ5sOfwsedkrsFEoLUZfq6e%2BA@mail.gmail.com> References: <AE78EABA-CB23-4B04-BE55-37627B8C6A83@gmail.com> <CAHu1Y70gF4T=4F3wUy9Q5wT2EmJ5sOfwsedkrsFEoLUZfq6e%2BA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 16, 2013, at 1:50 PM, Michael Sierchio wrote:
> On Tue, Jul 16, 2013 at 1:44 PM, aurfalien <aurfalien@gmail.com> =
wrote:
>=20
>> Upon doing;
>>=20
>> gpart destroy da0
>>=20
>> I get;
>>=20
>> gpart: Device busy
>=20
> crude but effective:
>=20
>=20
> DISK=3Dda0
>=20
> offset=3D`diskinfo $DISK | awk '{ print $4 - 131072 }'`
> dd if=3D/dev/zero of=3D/dev/$DISK bs=3D64k count=3D1
> dd if=3D/dev/zero of=3D/dev/$DISK bs=3D64k seek=3D$offset
>=20
> gpart create -s gpt ${DISK}
This is what I ended up doing.
I unplugged it, waited a few, re plugged and then I was able to =
delete/destroy.
I will keep your method on hand though as I prefer not doing a hot plug.
- aurf=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CB03CFAC-6F82-46B0-B456-E81E45A4F4AB>
