Re: Stale mount on disconnected device: how to delete it?

看板FB_hackers作者時間18年前 (2007/12/18 08:15), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/16 (看更多)
--Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 17, 2007 at 10:32:48AM -0800, Yuri wrote : > In case of USB device (which device in question in this problem > happens to be) usbd can be used to mount it. >=20 > If attach/detach events trigger mount/unmount commands this problem > shouldn't exist. I didn't try though. The problem is that the detach event can be caught only too late to unmount the device properly. How may it be possible to sync a disk ``as soon as it is detached'' (that is when it is not physically connected to the computer anymore)? Mounting the disk read-only may be a workaround, just as not caching writes (default behaviour of some versions of Windows) and syncing the disk all the time, but this is not as reliable as the mount system provided by Unix and Unix like operating systems. AFAICR, this is the sole weakness of the FreeBSD operating system I know :) And since it is, according to me, an operator error, the best we can do is to use the system as it was designed for ;) Regards, Romain --=20 Romain Tarti=E8re <romain@blogreen.org> http://romain.blogreen.org/ pgp: 8DAB A124 0DA4 7024 F82A E748 D8E9 A33F FF56 FF43 (ID: 0xFF56FF43) (plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciated) --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHZxDD2OmjP/9W/0MRAlwzAJ0Yj6cpBPrY86/bYVcNbwo7HJhI9gCgmdEK /hW7fX2atEgzK6mcsfDqz6M= =f/wW -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z--
文章代碼(AID): #17Pn4e00 (FB_hackers)
討論串 (同標題文章)
完整討論串 (本文為第 9 之 16 篇):
文章代碼(AID): #17Pn4e00 (FB_hackers)