From: Kay Sievers Date: Tue, 05 Sep 2006 12:45:21 +0000 Subject: Re: Nodes briefly disappear on close? Message-Id: <1157460321.10555.7.camel@pim.off.vrfy.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Tue, 2006-09-05 at 07:59 -0400, Michael Hordijk wrote: > So I've run into the following problem: >=20 > """ > dhcp0-a0-98-5-2e-a0 ~ # ls /dev/hda1 ; ls /dev/hda1 > /dev/hda1 > /dev/hda1 > dhcp0-a0-98-5-2e-a0 ~ # ls /dev/hda1 ; touch /dev/hda1 ; ls /dev/hda1 > /dev/hda1 > ls: /dev/hda1: No such file or directory > dhcp0-a0-98-5-2e-a0 ~ # ls /dev/hda1 ; touch /dev/hda1 ; sleep 1 ; ls /de= v/hda1 > /dev/hda1 > /dev/hda1 > """ >=20 > Now I'm sure I'm not the first to notice this. But between the FAQ and t= he > mailing list, I couldn't find a solution. I'm running Gentoo, udev 087, = kernel > 2.6.15. >=20 > It is probably important to mention that /dev/hda1 is actually on a compa= ct > flash, which may be slow to return from whatever udev is doing to it to f= ind out > the partition info? >=20 > The reason this is a problem: I can't format said device. An strace of = tools > such as mkfs.msdos show that it opens, then closes the partition, then tr= ies to > immediately open again, leading to an error that the device is not access= ible. >=20 > Any ideas how to get around this? IDE is totally broken for removable devices. Upgrade your kernel to get this: http://kernel.org/git/?p=3Dlinux/kernel/git/torvalds/linux-2.6.git;a=3Dco= mmitdiff;h=9810933701a09f9c4dd0ad963d5ec2efb7df07b7 Or let udev ignore the "remove" events, so the IDE device nodes will never = go away. Kay ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=121642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel