LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 05-23-2004, 12:22 AM   #1
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Rep: Reputation: 15
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
 
Old 05-23-2004, 09:24 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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
 
Old 05-23-2004, 09:57 AM   #3
hegobald
LQ Newbie
 
Registered: Aug 2002
Location: Skåne
Distribution: *Bsd,Slackware
Posts: 20

Rep: Reputation: 0
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.
 
Old 05-23-2004, 04:38 PM   #4
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
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".
 
Old 05-24-2004, 02:39 AM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.

Last edited by jschiwal; 05-24-2004 at 02:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting USB camera with 2.6.1 kernel Azmeen Linux - Hardware 18 03-09-2005 03:54 PM
Sony USB Camera (w/ Memory Stick) How to Mount tcv Linux - Hardware 5 01-07-2005 09:22 AM
lost settings for usb camera (memory stick) Slack 10 tireseas Linux - Hardware 2 12-03-2004 11:42 AM
problem with mounting flash memory card from digital camera jogurt666 Linux - Hardware 3 12-07-2003 11:54 AM
Mounting USB Camera Arkas Linux - Hardware 1 08-20-2003 08:27 AM


All times are GMT -5. The time now is 06:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration