Stale mount on disconnected device: how to delete it?

Romain Tartière romain at blogreen.org
Mon Dec 17 06:47:07 PST 2007


Hi

On Mon, Dec 17, 2007 at 03:07:02AM -0800, Yuri wrote :
> I had USB camera connected and recognized as umass0 and mounted as /mnt/camera
> on /dev/da0s1.
> 
> Camera was disconnected while it was still mounted.

Personal recipe when this kind of things happens (generally caused by a
camera switching to power-save mode or that runs out of battery):

 - switch to single user mode
 - unmount everything that can be unmounted
 - remount ro everything that can't be unmounted
 - reboot (and generally enjoy a kernel panic ;-) )

Not suited for critical production servers, but you won't connect a
camera on such a system, would you?

BTW, their are already a couple PR around there:
http://www.freebsd.org/cgi/query-pr-summary.cgi?text=umount

Regards,
Romain

-- 
Romain Tartière <romain at blogreen.org>        http://romain.blogreen.org/
pgp: 8DAB A124 0DA4 7024 F82A  E748 D8E9 A33F FF56 FF43 (ID: 0xFF56FF43)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20071217/2572430b/attachment.pgp


More information about the freebsd-hackers mailing list