LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-15-2004, 04:40 AM   #1
Schrambo
Member
 
Registered: Mar 2004
Location: Western Australia
Distribution: Debian Slackware CentOS
Posts: 102

Rep: Reputation: 15
Digi cam mounting issues.


Afternoon.

For a while now i've been trying to mount my Sony DSC-P8 digital camera under Slackware with not much sucess. It has been reported that you just mount it under /dev/sda and it works fine just like any other USB mass storage device. but for me sda is designated for my buner.

so heres some print outs to help you help me. thanks

dmesg
Code:
hub.c: new USB device 00:02.0-2.1, assigned address 4
hub.c: USB hub found
hub.c: 1 port detected
hub.c: new USB device 00:02.0-2.1.1, assigned address 5
usb.c: USB device 5 (vend/prod 0x54c/0x8b) is not claimed by any active driver.
cdrom: This disc doesn't have any tracks I recognize!
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Sony      Model: Storage Media     Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
sda: Write Protect is off
 sda: sda1 sda2 sda4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 5
USB Mass Storage support registered.
SCSI error: host 1 id 0 lun 0 return code = 8000002
        Sense class 7, sense error 0, extended sense 0
usb.c: USB disconnect on device 00:02.0-2.1 address 4
usb.c: USB disconnect on device 00:02.0-2.1.1 address 5
SCSI disk error : host 1 channel 0 id 0 lun 0 return code = 70000
 I/O error: dev 08:00, sector 34554
Device 08:00 not ready.
fstab
Code:
/dev/sr0         /mnt/cdrom       iso9660     auto,user,owner,ro    0   0
/dev/hdd         /mnt/dvd         iso9660     auto,user,owner,ro    0   0
/dev/fd0         /mnt/floppy      auto        auto,user,            0   0
devpts           /dev/pts         devpts      gid=5,mode=620        0   0
proc             /proc            proc        defaults              0   0
/dev/sda         /mnt/usb         vfat        user,owner            0   0
I have a Sony USB thumbdrive and that works fine. Just though that should be mentoned.
but when I try to mount my camera it reports the following

Code:
bash-2.05b$ mount /mnt/usb
mount: wrong fs type, bad option, bad superblock on /dev/sda,
or too many mounted file systems
oh and I use the default 2.4.22 kernel.

thanks

Last edited by Schrambo; 05-15-2004 at 04:45 AM.
 
Old 05-15-2004, 08:05 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Your dmesg mentions sda1, sda2 and sda4 so try them.

mount /dev/sda1 /some/folder
mount /dev/sda2 /some/other/folder
mount /dev/sda4 /another/folder

I usually use /home/andy/tmp. If you do it as root you don't need to have an entry in fstab. You don't need to specify a filesystem. At least, I don't think you do. Works for me anyway (with a different camera).
 
Old 05-15-2004, 10:35 PM   #3
Schrambo
Member
 
Registered: Mar 2004
Location: Western Australia
Distribution: Debian Slackware CentOS
Posts: 102

Original Poster
Rep: Reputation: 15
I've tried that before and just gave it another shot just to make sure but it just reports that its not a valid block device.
 
Old 05-15-2004, 11:37 PM   #4
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Striaght from the DigiKam website:

Manual Setup
If you're running a Linux distribution that doesn't set up USB Mass Storage devices automatically, here are the steps you need to follow:

* Most users using a recent Linux Distribution can skip this step.
Configure the Linux Kernel:
o Add SCSI Support
+ SCSI Support (CONFIG_SCSI)
+ SCSI IDE Support (CONFIG_BLK_DEV_IDESCSI)
+ SCSI disk support (CONFIG_BLK_DEV_SD)
+ SCSI generic support (CONFIG_CHR_DEV_SG)
o Add USB Support
+ Support for USB (CONFIG_USB)
+ USB drivers. One or more of: ECHI HCD (CONFIG_USB_EHCI_HCD), UHCI (CONFIG_USB_UHCI), OHCI (CONFIG_USB_OHCI)
+ Preliminary USB device file system (CONFIG_USB_DEVICEFS)
+ USB Mass Storage support (CONFIG_USB_STORAGE)
* Load the required kernel modules:
modprobe ide-scsi sd_mod sg vfat
modprobe usb-ohci (or usb-uhci depending on your usb bus)
modprobe usb-storage (or usb-uhci depending on your usb bus)
* Plug in your USB device. You should see your device listed in /proc/bus/usb/devices. If not, you need to fix the kernel or check your cabling.
* Use the sg3-utils package to determine the device name of your USB Mass Storage Device:
o Install the sg3-utils package (e.g. on Debian, Lindows: apt-get install sg3-utils)
o Connect the camera and turn it onto the picture display mode
o List your raw SCSI devices by running sg_scan -i. The output will look something like this:
/dev/sg0: scsi0 channel=0 id=0 lun=0 [em] type=5
_NEC CD-ROM CD-3002A C000 [wide=0 sync=0 cmdq=0 sftre=0 pq=0x0]
/dev/sg1: scsi1 channel=0 id=0 lun=0 [em] type=0
OLYMPUS C-120/D-380 1.00 [wide=0 sync=0 cmdq=0 sftre=0 pq=0x0]
o This tells me that I have 2 SCSI devices on my system: My CD drive on /dev/sg0, and a OLYMPUS D-380 Camera on /dev/sg1
o Determine the real SCSI device associated with your USB Mass Storage Device with sg_map. The output looks like:
/dev/sg0 /dev/sr0
/dev/sg1 /dev/sda
o Now we can match the results of these last two steps. For example the Olympus camera is on the /dev/sda device.
o In most cases, USB Mass Storage Devices will only have one partition on them, so we can safely assume that the final, mountable device is /dev/sda1 (the first partition on /dev/sda).
o Make a directory where you can mount the camera:
mkdir /mnt/camera; chmod 666 /mnt/camera
o Try mounting the camera now:
mount -t vfat /dev/sda1 /mnt/camera
o If no errors show up, then you have performed all the steps correctly. To verify everything is right, point you file manager to /mnt/camera and you should be able to see the folder/pictures on the camera
* Add an entry to /etc/fstab for the mount point:
/dev/sda1 /mnt/camera auto defaults,user,noauto 0 0
* Now it's ready to go. Any user can mount the device: mount /mnt/camera
* Make sure you unmount it before taking the card out or unplugging it: umount /mnt/camera
* Run digikam setup and add a USB MassStorage Camera. Set the path to the above path, where the camera is mounted.



I would do everything but the chmod part, I would use gid in fstab to access it.
 
Old 05-17-2004, 10:50 PM   #5
Schrambo
Member
 
Registered: Mar 2004
Location: Western Australia
Distribution: Debian Slackware CentOS
Posts: 102

Original Poster
Rep: Reputation: 15
progress report.

Gave a check run though that guide of yours ProtoformX but still nothing good has come out of it.

It defnetly seems to be on /dev/sda cause thats the only block device that reports wrong fs type, bad option, bad superblock on /dev/sda, or too many mounted file systems

I've gone though my dmesg outputs and its clear that its having a real hard time trying to read the FAT, usially failing and alot of I/O errors. I might have to present this issue to the Sony tech help. Hopefuly they'll know something.

I'll also borrow my bro's camera which is exactly the same and give that a shot.
 
Old 05-24-2004, 08:41 AM   #6
st00
Member
 
Registered: Apr 2003
Posts: 50

Rep: Reputation: 15
I got the same problem when trying to mount my camera without any pictures on! Make sure there's a picture and then I had to do

mount -t vfat /dev/sda1 /mnt/camera

even though the device showed up as /dev/sda in some stuff
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Polaroid Digi Cam On Mepis dj9928 Linux - Hardware 0 04-17-2005 07:37 AM
how can i install my digi cam in red hat linux 7.3 amolgupta Linux - Hardware 4 02-04-2005 03:23 PM
2.4 to 2.6.9, was able to mount digi-cam with 2.4 mipia Slackware 1 11-03-2004 07:22 PM
digi cam millionknives Linux - Software 9 07-30-2004 12:20 AM
USB and Digi Still Cam ramon Linux - General 0 08-07-2001 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration