View previous topic :: View next topic |
Author |
Message |
DingoStick n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/4589274833e6cd8e657192.gif)
Joined: 05 Mar 2003 Posts: 63 Location: The Keweenaw
|
Posted: Fri Sep 12, 2003 10:17 pm Post subject: Can't mount USB CF reader - sd_mod nonexistant? |
|
|
After reading through this post, and creating /dev/sda1, I still can't get my USB CF reader to work. I found no option in the kernel configuration for enabling sd_mod. I grepped "find /" and "lsmod" for "sd_mod", but found nothing. /etc/kernel/settings has, in its first line:
Code: | STORAGE_MODULES="sd_mod sg sr_mod \ |
I assume it at least attempts to use sd_mod, but I can't figure out why it's not running. So I grepped dmesg:
Code: | # dmesg | grep scsi -i
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
scsi: <fdomain> Detection failed (no card)
Failed initialization of WD-7000 SCSI card! |
And I also tried to just go ahead and mount the SCSI device I created with mknod:
Code: | # mount -t vfat /dev/sda1 /mnt/flash/
mount: /dev/sda1 is not a valid block device |
I've tried "rmmod usb-storage", putting in a CF card, and "modprobe usb-storage", tried enabling more things in the kernel and recompiling (I use genkernel since I've never been lucky rolling my own by hand, though I have used genkernel --config to change things around). Nothing works.
I am at a loss here. What should I be doing in order to get my system to recognize my CF card? It appears as though SCSI is available in the kernel, but for some reason doesn't run. Does anyone have a suggestion to help a guy out? :-/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ronmon Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/13591982763f6f0b3bbbe64.png)
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Sat Sep 13, 2003 2:50 am Post subject: |
|
|
sd_mod is SCSI Disk support, so you need to make a module for it. It's just above SCSI CDROM support (sr_mod) and SCSI generic (sg). You will need those two for a CD burner, but not for the CF reader. If you do not have an actual SCSI adapter make sure that there are no low-Level drivers selected in that section.
To automate the detection of the reader, emerge hotplug and set it to start at boot:
Code: |
rc-update add hotplug default
|
Start it now. If the reader is plugged in with a card inserted, usb-storage and sd_mod should load automagically:
Code: |
/etc/init.d/hotplug start
|
Check with 'ls -l /dev/discs/' to see if one of them points to your new scsi device. Hopefully you'll see something like this:
Code: |
disc2 -> ../scsi/host0/bus0/target0/lun0
|
In my fstab I like to force ownership by my regular user on vfat partitions:
Code: |
/dev/sda1 /mnt/cf vfat rw,noauto,users,uid=1000,gid=100 0 0
|
Then it mounts simply with 'mount /mnt/cf'. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DingoStick n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/4589274833e6cd8e657192.gif)
Joined: 05 Mar 2003 Posts: 63 Location: The Keweenaw
|
Posted: Sat Sep 13, 2003 3:22 am Post subject: Doesn't do it... |
|
|
Thanks for the reply. I was with you all the way up until "mount /mnt/{mountpoint}". I got
Code: | # ls -l /dev/discs/
total 0
lr-xr-xr-x 1 root root 30 Dec 31 1969 disc0 -> ../ide/host0/bus0/target0/lun0
lr-xr-xr-x 1 root root 30 Dec 31 1969 disc1 -> ../ide/host0/bus0/target1/lun0 |
In "lun0" are two devices:
Code: | root@wallaby lun0 # pwd
/dev/ide/host0/bus0/target1/lun0
root@wallaby lun0 # file *
disc: block special (3/64)
part1: block special (3/65) |
I tried mounting "disc" to /mnt/flash', but it gave me the "wrong fs type, bad option, etc." error. Mounting "part1" worked, but it mounted to my hdb1.
My /etc/fstab contains, among other lines:
Code: | /dev/sda1 /mnt/flash vfat rw,noauto,users,uid=1000,gid=100 0 0 |
Hotplug has already been set to auto-start at boot, and it was already started. Mounting with "mount /mnt/flash" gave me:
Code: | # mount /mnt/flash/
mount: /dev/sda1 is not a valid block device |
I created /dev/sda1 using:
Code: | mknod /dev/sda1 b 8 1 |
I don't know if I should have created it some other way, but that's what I used. No luck. Yet. :-/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ronmon Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/13591982763f6f0b3bbbe64.png)
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Sat Sep 13, 2003 5:01 am Post subject: |
|
|
/dev/discs/ should show all your hard drives, including the pseudo ones like a cf card or thumb drive. These will show up as SCSI drives, so something is still wrong somewhere in your setup. It looks like you have two IDE drives.
Don't 'mknod' the device. Let devfs take care of that, it will be a symlink to the partition. I'd get rid of the one that you made.
You might want to unplug the reader, unload the modules (I like 'modprobe -r'), restart hotplug, and then plug the reader back in with a CF card already in it. If you run 'tail -f /var/log/syslog' while you do this you can see what's happening.
That's all I can think of at the moment. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rsk Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_human_drone.gif)
Joined: 18 Apr 2002 Posts: 220 Location: Tucson, AZ
|
Posted: Sat Sep 13, 2003 9:49 pm Post subject: |
|
|
Hey guys, I wanted to post here because I'm having a bit of aproblem with what seems to be mount being happy with what I'm mounting.
I got all the modules compiled in, and when I insert the CF card, the /dev/sda1 device is created (however it requires me to rmmod usb-storage and then modprobe it back in... any suggestions on how to "supermount" this media?)
Anyway, here's the details below:
Gentoo Sources r7
Transcend USB 2.0 CF Reader
usbview/KDE Info Util both show it by name
fstab entry
Code: | /dev/sda1 /mnt/flash vfat user,noauto,ro 0 0 |
mounting
Code: |
rkalla@rsk-home mnt $ ls
total 3
drwxr-xr-x 7 root root 184 Sep 13 09:35 ./
drwxr-xr-x 18 root root 408 Sep 9 05:59 ../
drwxrwxrwx 1 root root 0 Sep 13 13:19 cd-pioneer/
drwxrwxrwx 1 root root 0 Sep 13 13:19 cd-plextor/
drwxr-xr-x 2 root root 48 Sep 9 13:20 cdrom/
drwxr-xr-x 2 root root 48 Sep 13 09:35 flash/
drwx------ 2 root root 72 Sep 8 18:07 floppy/
rkalla@rsk-home mnt $ mount flash
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
|
sda1 info
Code: |
rkalla@rsk-home mnt $ cd /dev
rkalla@rsk-home dev $ ls -lFa sda1
lr-xr-xr-x 1 root root 34 Sep 13 14:36 sda1 -> scsi/host0/bus0/target0/lun0/part1
|
lsmod info
Code: |
rsk-home root # lsmod
Module Size Used by Tainted: PF
usb-storage 46448 0
sd_mod 11148 0
msdos 5964 0 (autoclean)
vfat 10572 0 (autoclean)
fat 32984 0 (autoclean) [msdos vfat]
isofs 18532 1 (autoclean)
visor 11624 0
usbserial 18108 0 [visor]
snd-pcm-oss 40196 0 (autoclean)
snd-mixer-oss 13848 0 (autoclean) [snd-pcm-oss]
nvidia 1538176 10 (autoclean)
floppy 49724 0 (autoclean)
scsi_mod 57876 2 [usb-storage sd_mod]
usb-uhci 23596 0 (unused)
parport_pc 27400 1 (autoclean)
lp 6720 0 (autoclean)
parport 27136 1 (autoclean) [parport_pc lp]
ide-cd 29832 1 (autoclean)
cdrom 29248 0 (autoclean) [ide-cd]
snd-emu10k1 73364 5
snd-pcm 64640 3 [snd-pcm-oss snd-emu10k1]
snd-timer 15688 0 [snd-pcm]
snd-page-alloc 5228 0 [snd-emu10k1 snd-pcm]
snd-util-mem 1408 0 [snd-emu10k1]
snd-rawmidi 14720 0 [snd-emu10k1]
snd-seq-device 4416 0 [snd-emu10k1 snd-rawmidi]
snd-hwdep 5280 0 [snd-emu10k1]
snd-ac97-codec 37888 0 [snd-emu10k1]
snd 31524 2 [snd-pcm-oss snd-mixer-oss snd-emu10k1 snd-pcm snd-timer snd-util-mem snd-rawmidi snd-seq-device snd-hwdep snd-ac97-codec]
soundcore 4196 8 [snd]
supermount 13312 2 (autoclean)
hid 13428 0 (unused)
usbcore 63456 1 [usb-storage visor usbserial usb-uhci hid]
|
Any thoughts guys? I'm kind of at a standstill with this.. _________________ Best,
Riyad |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|