SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.