I consistently have trouble unmounting some partitions. Lsof shows
nothing open on the file system in question, yet the kernel keeps
saying resource busy.

(There are two machines involved in what's next. Machine names are in
the prompts)

On one machine that is exporting stuff by AFP and SMB:

Kleiman-ibook:~ michael$
Kleiman-ibook:~ michael$ mount
/dev/disk0s3 on / (hfs, local, journaled)
devfs on /dev (devfs, local)
fdesc on /dev (fdesc, union)
map -hosts on /net (autofs, automounted)
map auto_home on /home (autofs, automounted)
/dev/disk1s5 on /Volumes/stbmac mini backups (hfs, local, nodev,
nosuid, journaled, noowners)
Kleiman-ibook:~ michael$ lsof | grep Volumes
Activity    323 michael    5r     DIR      14,2       170    11068 /Volumes
Kleiman-ibook:~ michael$

Note that the only thing that lsof records as using that disk1s5 is
Activity Monitor. (No, I don't know why). It's actually mounted as an
AFP mount point elsewhere.

stbmac:~ Michael$ mount
/dev/disk0s3 on / (hfs, local, journaled)
devfs on /dev (devfs, local)
fdesc on /dev (fdesc, union)
map -hosts on /net (autofs, automounted)
map auto_home on /home (autofs, automounted)
afp_004Ifg2PnlTy001Eic06SdO0-1.2d000012 on /Volumes/stbmac mini backups (afpfs)
/dev/disk1s2 on /Volumes/Backup of stbmac (hfs, local, nodev, nosuid, journaled)
stbmac:~ Michael$ lsof | grep Volumes
Activity   1140 Michael    6r     DIR      14,2       272     8029 /Volumes
stbmac:~ Michael$

On this machine, Time Machine is doing a network backup. Sometimes TM
will unmount and eject the network drive without any problems;
sometimes it will stick.

stbmac:~ Michael$ disktool -r
Refreshing Disk Arbitration ...
stbmac:~ Michael$ disktool -u disk1
disk1 device will be unmounted ...
***Notifications Complete for type 1
***Responding yes to unmount - disk1s2
***Disk NOT Unmounted('disk1s2'), errorCode(16), dissenter(-1)
***Disk NOT Unmounted('disk1'), errorCode(16), dissenter(-1)
stbmac:~ Michael$ hdiutil info
framework       : 202
driver          : 10.5v199
================================================
image-path      : /Volumes/stbmac mini backups/stbmac_0011247e857e.sparsebundle
image-alias     :
shadow-path     : <none>
icon-path       :
/System/Library/PrivateFrameworks/DiskImages.framework/Resources/CDiskImage.icns
image-type      : sparse bundle disk image
system-image    : false
blockcount      : 377225032
blocksize       : 512
writeable       : TRUE
autodiskmount   : TRUE
removable       : TRUE
image-encrypted : false
mounting user   : root
mounting mode   : <unknown>
process ID      : 14775
/dev/disk1      Apple_partition_scheme  
/dev/disk1s1    Apple_partition_map     
/dev/disk1s2    Apple_HFSX      /Volumes/Backup of stbmac
stbmac:~ Michael$

So disk arbitration is unable to eject it. Hdiutil confirms that it is
"as it should be". Backupd is not running.

Yet for some reason, it (a sparse bundle) is locked open on the remote
machine. So I can't unmount either the sparsebundle, nor the AFP mount
point.

Any ideas?
-- 
Political and economic blog of a strict constitutionalist
http://StrictConstitution.BlogSpot.com
_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to