public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* udev removable media
@ 2004-09-03 11:28 Roeland Moors
  2004-09-03 11:41 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Roeland Moors @ 2004-09-03 11:28 UTC (permalink / raw)
  To: linux-kernel

I have an USB zip drive in combination with udev.

When I connect the drive with a disk inserted, everything works
fine. Here is the udev rule:
BUS="usb", SYSFS{product}="USB Zip 750", KERNEL="sd?1",
NAME="%k", SYMLINK="zip"

When connecting the drive without a disk the symlink is not
created. This is ok, beceause there is no disk.

But if I now insert a disk, there is still no symlink?

I've search a bit on google and if I understand correctly the
main problem is the SCSI protocol.

Is there a solution to this problem?

I hope this is the right list to ask this.

-- 
Roeland

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

* Re: udev removable media
  2004-09-03 11:28 udev removable media Roeland Moors
@ 2004-09-03 11:41 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-09-03 11:41 UTC (permalink / raw)
  To: Roeland Moors; +Cc: linux-kernel

On Fri, Sep 03, 2004 at 01:28:33PM +0200, Roeland Moors wrote:
> I have an USB zip drive in combination with udev.
> 
> When I connect the drive with a disk inserted, everything works
> fine. Here is the udev rule:
> BUS="usb", SYSFS{product}="USB Zip 750", KERNEL="sd?1",
> NAME="%k", SYMLINK="zip"
> 
> When connecting the drive without a disk the symlink is not
> created. This is ok, beceause there is no disk.
> 
> But if I now insert a disk, there is still no symlink?

That's because we don't get a "media inserted" event, sorry.

> I've search a bit on google and if I understand correctly the
> main problem is the SCSI protocol.
> 
> Is there a solution to this problem?

You can use the "all_partitions" solution in udev to always create the
partition device nodes.  See the udev manpage for more information.

thanks,

greg k-h

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

end of thread, other threads:[~2004-09-03 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-03 11:28 udev removable media Roeland Moors
2004-09-03 11:41 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox