[Bug 196102] "gpart: device busy" even though it's not in use

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 14 14:23:35 UTC 2016


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

Andrey V. Elsukov <ae at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ae at FreeBSD.org

--- Comment #3 from Andrey V. Elsukov <ae at FreeBSD.org> ---
(In reply to Stefan from comment #2)
> 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".

It is busy, because before destroying a partition table you must to delete all
its partitions or use -F flag. 

> 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.

This isn't bug. It works as expected.

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


More information about the freebsd-bugs mailing list