Skip to contentSkip to conversation

UDEV and USB Mass Storage

DISCUSSION Thomas Gufler 2 participants 2 messages Jan 24, 2004 – Jan 26, 2004

lore
Share & tools
lore
#0 lore raw

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

Signature · 40 lines
-----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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 5 lines · Thomas Gufler

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?

Quoted 3 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel