Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem mounting a digital camera
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
kpitty
n00b
n00b


Joined: 10 Mar 2004
Posts: 9

PostPosted: Tue Apr 20, 2004 11:39 pm    Post subject: Problem mounting a digital camera Reply with quote

I'm trying to connect my Sony Cybershot DSC-P8 camera to my ThinkPad 390E laptop via the USB port.

In many places I've read that I need to execute the following command:
Code:

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

But when I try this the system tells me that the device does not exist.
Code:

cockatoo root # mount -t vfat /dev/sda1 /mnt/camera
mount: special device /dev/sda1 does not exist


Can someone please explain the what the /dev/sda1 device is and how I can create it?
Back to top
View user's profile Send private message
Kraymer
Guru
Guru


Joined: 27 Aug 2003
Posts: 349
Location: Germany

PostPosted: Wed Apr 21, 2004 12:18 am    Post subject: Reply with quote

Quote:
Can someone please explain the what the /dev/sda1 device is and how I can create it?

Please search the forum! (Please realize that just that mount command isn't enought) :twisted:
A hint: /dev/sda is a virtual scsi disc representing your camera's memory. It's automatically created (-> devfs) when you connect your camera via usb. You need scsi general and scsi disc support for that (besides, USB mass storage support as well).
That should be info enough, I'm sure you'll be able to find the solution here. Hopefully your cam does support the usb mass storage standard..
Good luck,
Sebastian
Back to top
View user's profile Send private message
kpitty
n00b
n00b


Joined: 10 Mar 2004
Posts: 9

PostPosted: Wed Apr 21, 2004 5:12 am    Post subject: Reply with quote

Thanks for your reply Sebastian. I have searched the forums but I'm obviously still trying to understand what's important in order to get this working. I'm a newbie when it comes to USB and Gentoo.

I have actually tried to follow this HOWTO: https://forums.gentoo.org/viewtopic.php?t=53537 and found some other threads which have improved my understanding. However I'm still a frustrated user who has been enjoying using and learning about Gentoo but has pictures to download from his new camera and no way (yet) of doing it! :cry:

Whilst following the above HOWTO instructions the first point at which something doesn't work is the modprobe for usb-uhci. This is what I get.

Code:

cockatoo root # modprobe usb-uhci
/lib/modules/2.4.20-gentoo-r6/kernel/drivers/usb/usb-uhci.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-gentoo-r6/kernel/drivers/usb/usb-uhci.o: insmod /lib/modules/2.4.20-gentoo-r6/kernel/drivers/usb/usb-uhci.o failed
/lib/modules/2.4.20-gentoo-r6/kernel/drivers/usb/usb-uhci.o: insmod usb-uhci failed


And this is what I get from running lsusb -v:
Code:

cockatoo linux # lsusb -v

Bus 001 Device 001: ID 0000:0000
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0000
  idProduct          0x0000
  bcdDevice            0.00
  iManufacturer           0
  iProduct                2 USB UHCI-alt Root Hub
  iSerial                 1 fca0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          8
        bInterval             255
  Language IDs: (length=4)
     0000 (null)((null))


And when I run dmesg the relevant snippets are:
Code:

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
uhci.c: USB UHCI at I/O 0xfca0, IRQ 11
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.

and
Code:

usb-uhci.c: $Revision: 1.275 $ time 05:51:41 Mar  4 2004
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver


I've tried recompling the kernel after adjusting the USB options. Here are the relevant options in my config:
Code:

cockatoo linux # cat .config | grep USB
CONFIG_USB_IRDA=m
# CONFIG_INPUT_IFORCE_USB is not set
# USB support
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_LONG_TIMEOUT is not set
# CONFIG_USB_EHCI_HCD is not set
CONFIG_USB_UHCI=m
# CONFIG_USB_UHCI_ALT is not set
# CONFIG_USB_OHCI is not set
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_MIDI is not set
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_HP8200e=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_ACM=m
# CONFIG_USB_PRINTER is not set
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_DC2XX is not set
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set
CONFIG_USB_PEGASUS=m
CONFIG_USB_RTL8150=m
CONFIG_USB_KAWETH=m
CONFIG_USB_CATC=m
CONFIG_USB_CDCETHER=m
CONFIG_USB_USBNET=m
# CONFIG_USB_USBDNET is not set
CONFIG_USB_USS720=m
# USB Serial Converter support
# CONFIG_USB_SERIAL is not set
# CONFIG_USB_RIO500 is not set
CONFIG_USB_AUERSWALD=m
CONFIG_USB_TIGL=m
CONFIG_USB_BRLVGER=m
CONFIG_USB_LCD=m
CONFIG_BLUEZ_HCIUSB=m
# CONFIG_BLUEZ_USB_SCO is not set
# CONFIG_BLUEZ_USB_ZERO_PACKET is not set


I would love to understand this stuff better and, what's more, download my pictures! And I would prefer not to have to resort to Windows XP.

Any ideas as to what I should be checking or trying next? :?
Back to top
View user's profile Send private message
WannaBe
n00b
n00b


Joined: 29 Jan 2004
Posts: 22

PostPosted: Wed Apr 21, 2004 7:39 pm    Post subject: Reply with quote

How are you re-compiling your kernel? Are you certain you have correctly put your new recompiled kernel into the right place? Are you certain that you have booted into your newly recompiled kernel?

It looks to me like when you run "modprobe usb-uhci" it is rejecting the module because it was compiled as part of a different kernel than the one that is currently running.

So, if you arent already, I would recomend using "genkernel --config" to compile your kernels as this automatically takes care of putting the kernel onto your boot partition (it does all the steps of a kernel recompilation for you!)

Also, you can see what kernels are currently on your boot partition by running:

Code:

mount /dev/hda1 /boot
ls -l /boot


Check the timestamps on the kernel* files and make sure the one that is the newest is the one you are booting into (as configured in /boot/grub/grub.conf).

There could be a lot of reasons things are not working for you, but hopefully this info helps you get on the right path to getting them to work... then tutorial you are using is pretty thorough, so you should be able to follow it and have your camera mount.

Also, after you get your camera to mount, be sure to check out the "gphoto2" ebuild, lots of cool things are possible with it!
_________________
Dirnk good, eat good, hack good.
Back to top
View user's profile Send private message
al
Guru
Guru


Joined: 26 Dec 2002
Posts: 304
Location: Scotland

PostPosted: Wed Apr 21, 2004 8:14 pm    Post subject: Reply with quote

Have you tried /dev/sdb1 instead of /dev/sda1?

My camera shows up as either depending on which usb port i plug it into.

:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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