Arch Linux

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!
Tasklist

FS#3581 - sd_mod not found

Attached to Project: Arch Linux
Opened by Frank Ickstadt (frigg) - Monday, 05 December 2005, 08:30 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi 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

Closed by  Judd Vinet (judd)
Thursday, 08 December 2005, 19:51 GMT
Reason for closing:  Fixed
Comment by Judd Vinet (judd) - Monday, 05 December 2005, 19:51 GMT
Check if it's already built-in to the kernel.

# grep CONFIG_BLK_DEV_SD /boot/kconfig26
CONFIG_BLK_DEV_SD=y

Comment by Frank Ickstadt (frigg) - Tuesday, 06 December 2005, 08:04 GMT
Hi Judd,

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
Comment by Frank Ickstadt (frigg) - Wednesday, 07 December 2005, 06:58 GMT
Hi,

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
Comment by Frank Ickstadt (frigg) - Thursday, 08 December 2005, 07:34 GMT
Hi there,

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
Comment by Frank Ickstadt (frigg) - Thursday, 08 December 2005, 07:40 GMT
I just saw that the wiki is just to intelligent for my 00.rules file :-(
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!!
Comment by Judd Vinet (judd) - Thursday, 08 December 2005, 19:50 GMT
Hi Frank,

Good to hear you've solved the problem! I will close this bug then.

Loading...