linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Nodes briefly disappear on close?
@ 2006-09-05 11:59 Michael Hordijk
  2006-09-05 12:45 ` Kay Sievers
  2006-09-05 15:40 ` Michael Hordijk
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Hordijk @ 2006-09-05 11:59 UTC (permalink / raw)
  To: linux-hotplug

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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Nodes briefly disappear on close?
  2006-09-05 11:59 Nodes briefly disappear on close? Michael Hordijk
@ 2006-09-05 12:45 ` Kay Sievers
  2006-09-05 15:40 ` Michael Hordijk
  1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2006-09-05 12:45 UTC (permalink / raw)
  To: linux-hotplug

On Tue, 2006-09-05 at 07:59 -0400, Michael Hordijk wrote:
> 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?

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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Nodes briefly disappear on close?
  2006-09-05 11:59 Nodes briefly disappear on close? Michael Hordijk
  2006-09-05 12:45 ` Kay Sievers
@ 2006-09-05 15:40 ` Michael Hordijk
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Hordijk @ 2006-09-05 15:40 UTC (permalink / raw)
  To: linux-hotplug

Kay Sievers wrote:
> 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-05 15:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-05 11:59 Nodes briefly disappear on close? Michael Hordijk
2006-09-05 12:45 ` Kay Sievers
2006-09-05 15:40 ` Michael Hordijk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).