linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* UDEV and USB Mass Storage
@ 2004-01-24 18:09 Thomas Gufler
  2004-01-26 23:58 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Gufler @ 2004-01-24 18:09 UTC (permalink / raw)
  To: linux-hotplug

Hello,

I use udev-013 on an gentoo 1.4 system. When I connect my USB mass storage 
camera (Sony DSC-P1) for the first time I get a /dev/sda1 device, however 
when I connect the camera for the second time I get /dev/sdb1. 
What is needed to get always the same device for a mass storage device? Can 
someone show me how an entry in udev.rules should look like for this 
behavior?

Best regards,

Tom Gufler


-- 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.1 (GNU/Linux)

mQGiBD3o/yoRBADGJMxc5YZDChemG/0kkPDKu4OszU5sKLEub1HQur4tNdZebpRs
s9qPG7TOdzJPv5S1iFAZK5xfgAyImReesLyKUpOB5K0YbhUgDdSVexif+50t1Zjx
+NKB07S7ND0BZZFZOyW03LFvI/mG1pKGifKmXLG0KevP5xi2iGgt9bz8VwCgj/qL
liT2auAaO4MX2lvbm28MF2kD/0KlNT29o8ZFlpfntePkGnTS3M9Ce9jC0hhTvUYi
cmBmHRK235qtOhXFhRWYBuo5jlTCI9a2UY0dZLNk579c7X+wWQLIHWpNRau70Ruz
zrbAFSHWJxpn1T8vxofVeBud2SHVUrBojM+ugfhdCtnDBekVHw7RnALsqvixMC1v
ZWxqBACvJ9FSgi1MS9bupH39bHGeYP7mWU9HFYJxXDUgEKqhe4i1jsFthNdscOe0
47yOEKtdMvEmQltpOzmla7nQDpKzmyT0xigOVciG4+6zM0E8kapon79mRkrNy4+h
MGqpYjfnaio7ydp2+hw3kL2i2ZwCGVSVDTF6ouDuKc95Sgvo2bQkVGhvbWFzIEd1
ZmxlciA8dG9tLmd1ZmxlckB0aXJvbC5jb20+iFkEExECABkFAj3o/yoECwcDAgMV
AgMDFgIBAh4BAheAAAoJEO6kI6p5NFncOCIAnRe3BNE5O845ws9ZZqwCukCuMoZ1
AJsGCaddzlv7DNHnzrsbgW78sUOSnbkCDQQ96P84EAgAt4zuNTxwOw5ajZHo0iia
VBMRJRMDqOcODmavbxHOxjPnCJFkdeBl+BPhFpSKWXJ+oRPmSxGxuFuh2YI2w01E
MQBSgpelnrUOIiOfjTSiOPDwuMpsW2eG9GmYi6/zYqN0yPgl4zQ7PzPrjupoSZ+M
JXR2Q8EJ74VwLzP25G4l8a1mmRT3/mg96bhE80R1pq7cd2pAth2xul2WAB+9QAeO
rbT0uEe3kmYfihts7tPeIcUWSyY0D11Hvmaobvb4EYry215WcauVQRLtq002Nn7O
oeq2IrLF5vRDfgccAAArVdovIXpTmeDAmYzS4rTkzXZDEtNi4DgQroeDzsTdoWyx
AwADBQf/QdGWNeKnRZMKzVWWmwK0Dxdtq9+iwzxd3nXhhVl1MtYcLLth886w2WOf
bKgrSK2suSs/EcS5NS+RiR/UGipDV4/QYMYSEBAZE/tSMMthUeHd9eB/yiFAxlTV
w+IgR7uhZNcbb8kNibqNwjjYmK11NnAYGrrkp0ORT/9apy/Astw7abVxhxYEPJz8
GEp6UQw/7imv6/g7pNMhSqInUNiOVlmlaoRnckUw083ZvpOhD02x7vyLrUchO8i9
P7VpxNgS3Loda+o/5wtIMPn8m5uzVceaB76hWdGKNpxB536Kwu5/bRzO4t0PjhaL
4yJ7RrHJGXxLSJLT7PXq4gsK2H7VT4hGBBgRAgAGBQI96P84AAoJEO6kI6p5NFnc
hPMAmgJU3cdKHnRP8/n2sRlgTJLn/sxpAKCFaOwu4QAvI5ygKZSQ3y/2rqSadw=
=7wFH
-----END PGP PUBLIC KEY BLOCK-----


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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] 2+ messages in thread

* Re: UDEV and USB Mass Storage
  2004-01-24 18:09 UDEV and USB Mass Storage Thomas Gufler
@ 2004-01-26 23:58 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-01-26 23:58 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Jan 24, 2004 at 07:09:29PM +0100, Thomas Gufler wrote:
> Hello,
> 
> I use udev-013 on an gentoo 1.4 system. When I connect my USB mass storage 
> camera (Sony DSC-P1) for the first time I get a /dev/sda1 device, however 
> when I connect the camera for the second time I get /dev/sdb1. 

Did you run 'eject' and unmount the device after you were done with it,
before (or after) you removed it?

> What is needed to get always the same device for a mass storage device? Can 
> someone show me how an entry in udev.rules should look like for this 
> behavior?

I use:
BUS="usb", SYSFS_vendor="FUJIFILM", SYSFS_model="M100", NAME="camera%n"

to name my camera.

Hope this helps,

greg k-h


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2004-01-26 23:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-24 18:09 UDEV and USB Mass Storage Thomas Gufler
2004-01-26 23:58 ` Greg KH

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).