Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to set my system up so when i plug it my usb hard disk, my camera, and my ipod they are always the same dev name so i can have them automounted. right now when i plug them in they always end up changing to something different than the last time i plugged them in so the fstab entry is useless. I've read some howtos on writing udev rules but i can't seem to get it going. can someone give me a hand?
So when I plug in my iPod, I get a '/dev/ipod' device, linked to the data-holding /dev/sdX2 partition.
The LaCie drive has two partitions (differentiated by sd?1 and sd?2).
To get all the udev info for a device, run the following:
Code:
udevinfo -a -p `udevinfo -q path -n /dev/DEVICE`
and pick something unique to differentiate the device/partition.
This is the output when the LaCie drive is plugged in and is at /dev/sda, as an example:
Code:
[root@cronus ~]# udevinfo -a -p `udevinfo -q path -n /dev/sda`
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
looking at device '/block/sda':
KERNEL=="sda"
SUBSYSTEM=="block"
SYSFS{stat}==" 107 824 1260 390 0 0 0 0 0 227 390"
SYSFS{size}=="488397168"
SYSFS{removable}=="0"
SYSFS{range}=="16"
SYSFS{dev}=="8:0"
looking at device '/devices/pci0000:00/0000:00:10.3/usb1/1-3/1-3:1.0/host0/target0:0:0/0:0:0:0':
ID=="0:0:0:0"
BUS=="scsi"
DRIVER=="sd"
SYSFS{ioerr_cnt}=="0x0"
SYSFS{iodone_cnt}=="0x72"
SYSFS{iorequest_cnt}=="0x72"
SYSFS{iocounterbits}=="32"
SYSFS{timeout}=="60"
SYSFS{state}=="running"
SYSFS{rev}=="15.0"
SYSFS{model}=="WD2500JB-00FUA0 "
SYSFS{vendor}=="WDC "
SYSFS{scsi_level}=="3"
SYSFS{type}=="0"
SYSFS{queue_type}=="none"
SYSFS{queue_depth}=="1"
SYSFS{device_blocked}=="0"
SYSFS{max_sectors}=="240"
looking at device '/devices/pci0000:00/0000:00:10.3/usb1/1-3/1-3:1.0/host0/target0:0:0':
ID=="target0:0:0"
BUS==""
DRIVER==""
looking at device '/devices/pci0000:00/0000:00:10.3/usb1/1-3/1-3:1.0/host0':
ID=="host0"
BUS==""
DRIVER==""
looking at device '/devices/pci0000:00/0000:00:10.3/usb1/1-3/1-3:1.0':
ID=="1-3:1.0"
BUS=="usb"
DRIVER=="usb-storage"
SYSFS{modalias}=="usb:v059Fp0351d0000dc00dsc00dp00ic08isc06ip50"
SYSFS{bInterfaceProtocol}=="50"
SYSFS{bInterfaceSubClass}=="06"
SYSFS{bInterfaceClass}=="08"
SYSFS{bNumEndpoints}=="02"
SYSFS{bAlternateSetting}==" 0"
SYSFS{bInterfaceNumber}=="00"
looking at device '/devices/pci0000:00/0000:00:10.3/usb1/1-3':
ID=="1-3"
BUS=="usb"
DRIVER=="usb"
SYSFS{configuration}==""
SYSFS{serial}=="10000E0008529A96"
SYSFS{product}=="LaCie Hard Drive USB"
SYSFS{manufacturer}=="LaCie"
SYSFS{maxchild}=="0"
SYSFS{version}==" 2.00"
SYSFS{devnum}=="4"
SYSFS{speed}=="480"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bNumConfigurations}=="1"
SYSFS{bDeviceProtocol}=="00"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bDeviceClass}=="00"
SYSFS{bcdDevice}=="0000"
SYSFS{idProduct}=="0351"
SYSFS{idVendor}=="059f"
SYSFS{bMaxPower}==" 2mA"
SYSFS{bmAttributes}=="c0"
SYSFS{bConfigurationValue}=="1"
SYSFS{bNumInterfaces}==" 1"
looking at device '/devices/pci0000:00/0000:00:10.3/usb1':
ID=="usb1"
BUS=="usb"
DRIVER=="usb"
SYSFS{configuration}==""
SYSFS{serial}=="0000:00:10.3"
SYSFS{product}=="EHCI Host Controller"
SYSFS{manufacturer}=="Linux 2.6.18.1cronus ehci_hcd"
SYSFS{maxchild}=="6"
SYSFS{version}==" 2.00"
SYSFS{devnum}=="1"
SYSFS{speed}=="480"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bNumConfigurations}=="1"
SYSFS{bDeviceProtocol}=="01"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bDeviceClass}=="09"
SYSFS{bcdDevice}=="0206"
SYSFS{idProduct}=="0000"
SYSFS{idVendor}=="0000"
SYSFS{bMaxPower}==" 0mA"
SYSFS{bmAttributes}=="e0"
SYSFS{bConfigurationValue}=="1"
SYSFS{bNumInterfaces}==" 1"
looking at device '/devices/pci0000:00/0000:00:10.3':
ID=="0000:00:10.3"
BUS=="pci"
DRIVER=="ehci_hcd"
SYSFS{broken_parity_status}=="0"
SYSFS{enable}=="1"
SYSFS{modalias}=="pci:v00001106d00003104sv00001458sd00005004bc0Csc03i20"
SYSFS{local_cpus}=="1"
SYSFS{irq}=="19"
SYSFS{class}=="0x0c0320"
SYSFS{subsystem_device}=="0x5004"
SYSFS{subsystem_vendor}=="0x1458"
SYSFS{device}=="0x3104"
SYSFS{vendor}=="0x1106"
looking at device '/devices/pci0000:00':
ID=="pci0000:00"
BUS==""
DRIVER==""
Hey that helped me a lot, the only thing i can't get working is my usb card reader. Do you know how to set one of these up, if it makes it easier i only have one kind of card i need read.
I'm also trying to install a cardreader. It's a Microtech CameraMate. My system is Debian 2.6.8. When I mount the CameraMate, the mounted filesystem gives me 4 directories (001, 002, 003, 004) as well as a file named devices. None of the directories has any actual card data in it. The devices file doesn't have anything really useful, either. IOW, I can mount the device, but I can't get at the picture my camera put on it. I checked the card again on the camera, and the picture is fine. I enabled the verbose usb debugging messages, and I get "Not Ready: Medium Not Present" on the console when I insert a card in the device.
If you have a several-in-one card reader, you'll probably have to also set Device Drivers --> SCSI device support -->[*] Probe all LUNs on each SCSI device (kernel 2.6). These readers are usually set up with one slot as the primary slot, so if this option isn't set, you won't be able to see the other slots.
I'm also trying to install a cardreader. It's a Microtech CameraMate. My system is Debian 2.6.8. When I mount the CameraMate, the mounted filesystem gives me 4 directories (001, 002, 003, 004) as well as a file named devices. None of the directories has any actual card data in it. The devices file doesn't have anything really useful, either. IOW, I can mount the device, but I can't get at the picture my camera put on it. I checked the card again on the camera, and the picture is fine. I enabled the verbose usb debugging messages, and I get "Not Ready: Medium Not Present" on the console when I insert a card in the device.
After banging on this with a largish hammer, I finally realised that my problem is not the Microtech device. The problem I have is that the camera, an old Fuji MX-1200 isn't putting data on the disk in any format that Linux can read. If I simply do mkdosfs on my cards in the CameraMate, I can use them just fine. Of course, then the Camera can't read them. The file system used by the camera seems to be almost but not quite, MSDOS. Oh well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.