Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2016 14:16:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 196102] "gpart: device busy" even though it's not in use
Message-ID:  <bug-196102-8-2YSD8Thrgl@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-196102-8@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196102

Stefan <blachste@b-tu.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blachste@b-tu.de

--- Comment #2 from Stefan <blachste@b-tu.de> ---
Just installed FreeBSD 11 RC1 on da1, da2, da3 (mirrored zpool) without swap,
intending to add swap space on da0 after installation.
At the end of the installer I went to the console to add swap space, starting
with "gpart destroy da0" (it contained an NTFS partition). gpart says "Device
busy".
So I rebooted and after the first bootup I retried. Still "Device busy".
Rebooted a third time. Device still "busy".
Then I zeroed the first gigabyte of da0 using dd. After this, "gpart show" did
not list da0 anymore.
Now "gpart destroy da0" resulted in "gpart: arg0 'da0': Invalid argument".
However, "gpart create -s GPT da0" now succeeded "da0 created".

I guess this bug only occurs if the system is being installed not on da0 but on
da1 or higher. So it could probably be reproduced by installing FreeBSD onto
da1+ and then attempting to manually repartition da0.

Hope this helps.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196102-8-2YSD8Thrgl>