[Bug 196102] New: "gpart: device busy" even though it's not in use
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Dec 18 17:59:54 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196102
Bug ID: 196102
Summary: "gpart: device busy" even though it's not in use
Product: Base System
Version: 11.0-CURRENT
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: david at bitmail.cc
i bought a new hard drive, and am trying to setup geli with ZFS on it.
geli refuses to write the metadata, when the first partition is too big.
so i am trying to delete the first partition, to recreate a smaller one.
yet gpart claims my drive is "busy". here's the relevant output:
root at mango:/etc/ > gpart delete -i0 da0
gpart: index '0': No such file or directory
root at mango:/etc/ > gpart delete -i1 da0
gpart: Device busy
root at mango:/etc/ > gpart destroy -F da0
gpart: Device busy
root at mango:/etc/ > sysctl kern.geom.debugflags=16
kern.geom.debugflags: 16 -> 16
root at mango:/etc/ > gpart show da0
=> 40 7814037088 da0 GPT (3.6T)
40 7814037080 1 freebsd-zfs (3.6T)
7814037120 8 - free - (4.0K)
root at mango:/etc/ > dd if=/dev/zero of=/dev/da0 bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 2.630170 secs (39867229 bytes/sec)
root at mango:/etc/ > gpart show da0
=> 40 7814037088 da0 GPT (3.6T)
40 7814037080 1 freebsd-zfs (3.6T)
7814037120 8 - free - (4.0K)
root at mango:/etc/ > gpart destroy -F da0
gpart: Device busy
root at mango:/etc/ > mount
sys/ROOT/default on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
data on /data (zfs, local, noatime, nfsv4acls)
backup/default on /mnt (zfs, local, noatime, nfsv4acls)
sys/ports on /usr/ports (zfs, local, noatime, nfsv4acls)
sys/src on /usr/src (zfs, local, noatime, nfsv4acls)
root at mango:/etc/ > umount /dev/da0
umount: /dev/da0: unknown file system
root at mango:/etc/ > fuser /dev/da0
/dev/da0:
root at mango:/etc/ > uname -a
FreeBSD mango 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r275830: Wed Dec 17 13:33:45
CET 2014 root at mango:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list