Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#3581 - sd_mod not found
Attached to Project:
Arch Linux
Opened by Frank Ickstadt (frigg) - Monday, 05 December 2005, 08:30 GMT
Opened by Frank Ickstadt (frigg) - Monday, 05 December 2005, 08:30 GMT
|
DetailsHi there,
I've followed the instructions from http://wiki.archlinux.org/index.php/USB_Storage_Devices to enable the scsi devices for a non scsi kernel: modprobe usb-storage -> that's OK modprobe sd_mod -> FATAL: sd_mod not found Because I've attached a USB Card Reader which has an entry in /proc/bus/usb/devices (T: Bus=05 ... S: Product=Mass Storage Device ... Driver=usb-storage ...) I guess the basics are OK but I want to read from my CF-Cards from my digicam. My system is a archlinux 0.7 patched to the 2.6.13 kernel (= "Noodle") regards, Frank |
This task depends upon
# grep CONFIG_BLK_DEV_SD /boot/kconfig26
CONFIG_BLK_DEV_SD=y
my machine is at home and I've made some investigations before reading your notification.
To make it short: I'm able to mount and write to the compact flash card in the 19 in 1 card reader but this was done by my own. The corresponding wiki pages are complete (or nearly complete) outdated for the current kernel. http://wiki.archlinux.org/index.php/Using_udev_to_map_multiple_entries_to_a_device says to run the sequence "udevinfo -a -p `udevinfo -q path -n /dev/sda`" using the appropriate device (in my case /dev/sdd1) but I never get a useful result.
I aim at just to put the compact flash card into my card reader, starting cinepaint and open the digital raw files from /mnt/cf-card (or /media/cf-card). If I use a Sony memory stick (ms) as media it have to be monted to /mnt/ms-card or /media/ms-card. That's all.
Do you know a way to realize that?
I attached some files including the relevant information
best regards,
Frank
I've checked the kernel parameter:
[ickstadf@image1 ~]$ grep CONFIG_BLK_DEV_SD /boot/kconfig26
CONFIG_BLK_DEV_SD=y
After reading "Writing udev rules" by Daniel Drake (http://www.reactivated.net/udevrules.php) I was able to use udevinfo with following syntax:
udevinfo -a -p /sys/block/sda
where I used sda, sdb, sdc and sdd for my usb card reader.
udevinfo -a -p $(udevinfo -q path -n /dev/sda) doesn't run correct !!
The output is included as an attachement.
regards,
Frank
just to bring this task to an end. I found a solution:
Just follow http://wiki.archlinux.org/index.php/AutoFS_HowTo with some modifications (just for me):
I made a comment out of the line
usbstick -fstype=auto,sync,nodev,nosuid,umask=000 :/dev/sda1
in /etc/autofs/auto.media and added the entries:
sd-card -fstype=vfat,sync,nodev,nosuid,umask=000 :/dev/sd_reader1
cf-card -fstype=vfat,sync,nodev,nosuid,umask=000 :/dev/cf_reader1
sm-card -fstype=vfat,sync,nodev,nosuid,umask=000 :/dev/sm_reader1
ms-card -fstype=vfat,sync,nodev,nosuid,umask=000 :/dev/ms_reader1
At last I added/created the entry
/media /etc/autofs/auto.media --timeout=2
to /etc/autofs/auto.master There has to be just one single line beginning with /media
Remember that there must be a blank line at the end of /etc/autofs/auto.master
I created a custom udev rule /etc/udev/rules.d/00.rules. This rule is specific for my hardware but based on the info out of udevinfo -a -p /sys/block/sd? (see comment no 3):
BUS=="scsi", SYSFS{model}=="USB SD Reader ", NAME{all_partitions}="sd_reader", GROUP="storage"
BUS=="scsi", SYSFS{model}=="USB CF Reader ", NAME{all_partitions}="cf_reader", GROUP="storage"
BUS=="scsi", SYSFS{model}=="USB SM Reader ", NAME{all_partitions}="sm_reader", GROUP="storage"
BUS=="scsi", SYSFS{model}=="USB MS Reader ", NAME{all_partitions}="ms_reader", GROUP="storage"
Now have a look if there is an existing group called storage in /etc/group If not create the group and add the appropriate user to this group. In my archlinux installation the group still exists but without any users.
Now I performed an reboot, The result was that there are no longer the devices /dev/sd* in /dev but the devices /dev/sd_reader, /dev/sd_reader1 to /dev/sdreader_15 similiar /dev/cf_reader, /dev/sm_reader and /dev/ms_reader
At last step I inserted a cf-card into the usb-multiple-card-reader cf-slot and walked to the directory /media/cf-card and voila I saw all the files on the compact flash card.
Regards,
Frank
the right syntax is:
BUS=="scsi", SYSFS{model}=="USB SD Reader<blank><blank><blank><blank>", NAME{all_partitions}="sd_reader", GROUP="storage"
In your case use exact the entries you've got from udevinfo!!
Good to hear you've solved the problem! I will close this bug then.