From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Mhlyy-0003R4-DV for garchives@archives.gentoo.org; Sun, 30 Aug 2009 15:06:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F71EE0729; Sun, 30 Aug 2009 20:15:12 +0000 (UTC) Received: from IMPaqm1.telefonica.net (impaqm1.telefonica.net [213.4.129.16]) by pigeon.gentoo.org (Postfix) with ESMTP id AF29AE0729 for ; Sun, 30 Aug 2009 20:15:11 +0000 (UTC) Received: from IMPmailhost5.adm.correo ([10.20.102.126]) by IMPaqm1.telefonica.net with bizsmtp id ah5B1c00q2jdgqJ01kFBi4; Sun, 30 Aug 2009 22:15:11 +0200 Received: from jesgue.homelinux.org ([78.136.66.163]) by IMPmailhost5.adm.correo with BIZ IMP id akFA1c0033XLmEe1lkFADP; Sun, 30 Aug 2009 22:15:11 +0200 X-TE-authinfo: authemail="i92guboj.terra.es" |auth_email="i92guboj@terra.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitera01" Received: from 192.168.0.10 (SquirrelMail authenticated user i92guboj) by jesgue.homelinux.org with HTTP; Sun, 30 Aug 2009 22:15:09 +0200 Message-ID: <98e072813338e844438b47ec9e95c0fd.squirrel@jesgue.homelinux.org> In-Reply-To: <200908302138.14457.dirk.heinrichs@online.de> References: <20090827233339.72529ea6@osage.osagesoftware.com> <200908301929.39692.wonko@wonkology.org> <200908302138.14457.dirk.heinrichs@online.de> Date: Sun, 30 Aug 2009 22:15:09 +0200 Subject: Re: [gentoo-user] How to set udev rule? From: =?iso-8859-1?Q?Jes=FAs_Guerrero?= To: gentoo-user@lists.gentoo.org User-Agent: SquirrelMail/1.5.2 [SVN] Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 90e1c8f9-f383-4639-a9a1-b533407f49c9 X-Archives-Hash: f2a78cf21798a9f6cf2acea533c962b7 On Sun, August 30, 2009 21:38, Dirk Heinrichs wrote: > Am Sonntag 30 August 2009 19:29:39 schrieb Alex Schuster: > > >> I have to change the bus from usb to scsi, then it works. But what >> about unmounting? Is is possible to have it unmounted after I pull the >> memory stick? > > How do want to umount something that's not there anymore? You have to > umount _before_ you pull it. You can force the umount using -l (no, it's not documented in the man page). You can use this to umount a volume *after* it has been physically removed. And some people use this crap on udev rules to remove the volume when they unplug the pendrive. Then they wonder why the heck the file is not where it should be. I guess they never heard of cached writes. The correct thing to do is of course to umount it before, and then unplug it or whatever. If you truly want to umount after, you should at least do a sync before removing the device. In any case, if you don't follow the logical order of the things don't complain if then you find that the files that should be there are not there when you need them. If you truly love risk, just use umount -l, but you have to promise not to cry if the fs breaks or your files are not writen when you sudenly unplug the device. --=20 Jes=FAs Guerrero