Skip to contentSkip to conversation

Nodes briefly disappear on close?

DISCUSSION Michael Hordijk 2 participants 3 messages Sep 5, 2006

lore
Share & tools
lore
#0 lore raw

So I've run into the following problem:

"""
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 /dev/hda1 /dev/hda1
/dev/hda1
"""

Now I'm sure I'm not the first to notice this. But between the FAQ and the mailing list, I couldn't find a solution. I'm running Gentoo, udev 087, kernel 2.6.15.

It is probably important to mention that /dev/hda1 is actually on a compact flash, which may be slow to return from whatever udev is doing to it to find out the partition info?

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 tries to immediately open again, leading to an error that the device is not accessible.

Any ideas how to get around this?

- michael

-------------------------------------------------------------------------
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 easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 22 lines · Michael Hordijk

So I've run into the following problem:

"""
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 /dev/hda1 /dev/hda1
/dev/hda1
"""

Now I'm sure I'm not the first to notice this. But between the FAQ and the mailing list, I couldn't find a solution. I'm running Gentoo, udev 087, kernel 2.6.15.

It is probably important to mention that /dev/hda1 is actually on a compact flash, which may be slow to return from whatever udev is doing to it to find out the partition info?

Quoted 5 lines

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 tries to immediately open again, leading to an error that the device is not accessible.

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=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h˜10933701a09f9c4dd0ad963d5ec2efb7df07b7

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 easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Michael Hordijk
Quoted 3 lines · Kay Sievers

IDE is totally broken for removable devices. Upgrade your kernel to get this:
http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h˜10933701a09f9c4dd0ad963d5ec2efb7df07b7

Excellent. Upgraded to 2.6.17, and after muddling through the latest unionfs build to get my systems going, this problem is gone. Thanks!

- michael

-------------------------------------------------------------------------
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 easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel