LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting usb camera memory card (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-usb-camera-memory-card-184694/)

colabus 05-23-2004 12:22 AM

Mounting usb camera memory card
 
Code:

# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>              <dump>  <pass>
/dev/hda2      /              ext2    errors=remount-ro      0      1
/dev/hda1      none            swap    sw                      0      0
proc            /proc          proc    defaults                0      0
/dev/fd0        /floppy        auto    user,noauto            0      0
/dev/cdrom      /cdrom          iso9660 ro,user,noauto          0      0

My problem is that I don't know how to mount it. I just installed a fresh Debian (bf24), and i'm not sure. Something else to note is that this machine has 4 USB ports.

I've tried: mount /dev/usb/ -t vfat /mount/

but I get the feeling that I don't have a module loaded, or I should add something to fstab. Help! :)

Thanks

jschiwal 05-23-2004 09:24 AM

You will want to list the loaded kernel modules: lsmod
do you have the following modules loaded (or compiled) in the kernel:
vfat, fat, usb-uhci, usbcore, sd_mod, sbp2, scsi_mod, sr_mod

My /etc/modules.conf contains the line:
probeall usb-interface usb-uhci

hegobald 05-23-2004 09:57 AM

try
mount /dev/sdaX /mountpoint

My camera shows up as a scsi disk.
Check dmesg when you have it connected, it should show
up there, then you know the correct sda.
Hope this helps.

colabus 05-23-2004 04:38 PM

OK jschiwal,

I did a lsmod and only "usb-uhci" and "usbcore" are loaded, I tried modprobing the others but I get errors:

Code:

xionous:~# modprobe scsi_mod
modprobe: Can't locate module scsi_mod
xionous:~# modprobe scsi_sr
modprobe: Can't locate module scsi_sr

and "modprobe -l *fat*" returns nothing, and I don't see them listed anywhere in "modconf".

jschiwal 05-24-2004 02:39 AM

Here is my /etc/modules and /etc/modules.conf files. Does anything look familiar?
[root@matrix etc]# cat modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.

scsi_hostadapter
[root@matrix etc]# cat modules.conf

probeall scsi_hostadapter sbp2 usb-storage
probeall usb-interface usb-uhci ehci-hcd
alias eth1 eepro100
alias ieee1394-controller ohci1394
alias eth0 r8169
above snd-intel8x0 snd-pcm-oss
alias sound-slot-0 snd-intel8x0
[root@matrix etc]#

The first two lines of modules.conf pertain to usb storage.

Now my distro is different, and debian systems do some things differently such as starting services. Anyway, here is an entry from my /etc/fstab file.
Code:

 
none /mnt/win_c4 supermount dev=/dev/sdb1,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-1,uid=501,codepage=850,nosuid,gid=jschiwal,uid=jschiwal,nodev 0 0

Note that the drive is /dev/sdb1 for usb-devices. So they are mounted as scsi devices, and you need scsi support either built-in to the kernel, or loaded as modules. The references to scsi_hostadapter in the modules and modules.conf
This is for a usb hard drive formatted in fat32.

A closer look at the lsmod listing reveals some of the module dependencies.
Code:

[root@matrix etc]# lsmod | grep usb
usbmouse                5536  0
usb-storage            78596  1
usblp                  12736  0
usbcore              104604  8 usbmouse,hid,usb-storage,usblp,ehci-hcd,uhci-hcd
scsi_mod              118424  5 sg,sr_mod,usb-storage,sd_mod,sbp2
[root@matrix etc]# lsmod | grep scsi
scsi_mod              118424  5 sg,sr_mod,usb-storage,sd_mod,sbp2

I am hoping that you will be able to get it working without having to compile support for your kernel.

You can check if the module library files exist like this:
[root@matrix etc]# locate sbp2 | grep 'lib/modules'
/lib/modules/2.6.3-7mdk/kernel/drivers/ieee1394/sbp2.ko.gz
/lib/modules/2.6.3-7mdk-i686-up-4GB/kernel/drivers/ieee1394/sbp2.ko.gz

The second subdirectory is the kernel version. Type uname -r to check which kernel version you are currently running. Its possible that you have different kernel versions you can boot up to, and one of them has the support you need.

Good luck poking around.


All times are GMT -5. The time now is 01:48 PM.