View previous topic :: View next topic |
Author |
Message |
Papapishu Tux's lil' helper
Joined: 18 Mar 2003 Posts: 129 Location: ((void*)NULL)
|
Posted: Sun Sep 07, 2003 6:49 pm Post subject: USB filesystem |
|
|
I can't find anything about USB filesystems in the documentation, and nothing useful when searching the forum.
I have a digital camera that connects to the USB port.
It's nothing fancy, in fact I don't think it costed more than $10 or something.
It's only click-button-take-picture-save-picture-in-memory kind of camera.
Anyway, so I would like to use it, or at least be able to ise it's memory as a temporary file storage.
USB support if built into my kernel, and I have a /proc/bus/usb folder with subfolders and drivers/devices files.
When I plug it in, dmesg sees that something has happened.
Now I wonder, how can I mount it's filesystem on mine to access the files on it? _________________ #359074 |
|
Back to top |
|
|
cvk Guru
Joined: 06 Jan 2003 Posts: 314 Location: Our house, in the middle of our street
|
Posted: Sun Sep 07, 2003 7:07 pm Post subject: |
|
|
Make sure the correct modules are loaded:
Code: | modprobe usb-storage
modprobe sd_mod |
check with
Code: |
# cat /proc/scsi/scsi
[...]
Host: scsiW Channel: X Id: Y Lun: Z
Vendor: I'm a cheap digital camera Rev: 1234
Type: Direct-Access ANSI SCSI revision: 02
|
then mount with
Code: | mount /dev/scsi/hostW/busX/targetY/lunZ/part? /mnt/usb/ |
Chris _________________ Adopt an unanswered post now. |
|
Back to top |
|
|
Papapishu Tux's lil' helper
Joined: 18 Mar 2003 Posts: 129 Location: ((void*)NULL)
|
Posted: Sun Sep 07, 2003 7:30 pm Post subject: |
|
|
It finds usbstorage, but not sd_mod.
What should I enable in the kernel for sd_mod?
What other modules do you reccomend I enable?
Can I compile them into the kernel rather than use modules? |
|
Back to top |
|
|
cvk Guru
Joined: 06 Jan 2003 Posts: 314 Location: Our house, in the middle of our street
|
Posted: Sun Sep 07, 2003 7:57 pm Post subject: |
|
|
sd_mod is SCSI/SCSI Disk Support. You'll also need the following modules: usb-uhci/usb-ohci, usb-storage, usbcore, scsi_mod, sd_mod and of course vfat. It doesn't really matter if you compile all modules into your kernel or as modules, although I recommend the latter.
Chris _________________ Adopt an unanswered post now. |
|
Back to top |
|
|
Papapishu Tux's lil' helper
Joined: 18 Mar 2003 Posts: 129 Location: ((void*)NULL)
|
Posted: Mon Sep 08, 2003 2:13 pm Post subject: |
|
|
When I cat /proc/scsi/scsi all I get is my CD Burner, which is IDE emulating SCSI with the kernel parameter hdc=ide-scsi in grub.
There's two files in /dev/scsi/host0/bus0/target0/lun0/
cd and generic.
I have all the modules you suggested compiled in the kernel.
You said it wouldn't make a difference.
Why do you reccomend modules though?
How comes the USB device is used as a SCSI device? |
|
Back to top |
|
|
cvk Guru
Joined: 06 Jan 2003 Posts: 314 Location: Our house, in the middle of our street
|
Posted: Mon Sep 15, 2003 8:59 am Post subject: |
|
|
Is the camera recognized when you plug it it and type
?
I recommend modules, because they can be loaded on demand - it keeps the kernel size small and new functionality can be added without compiling a new kernel, shutting down and rebooting.
cvk _________________ Adopt an unanswered post now. |
|
Back to top |
|
|
Papapishu Tux's lil' helper
Joined: 18 Mar 2003 Posts: 129 Location: ((void*)NULL)
|
Posted: Tue Sep 16, 2003 12:59 pm Post subject: |
|
|
dmesg recognises it:
Code: | usb.c: USB disconnect on device 00:11.2-2 address 3
hub.c: new USB device 00:11.2-2, assigned address 4
usb.c: USB device 4 (vend/prod 0x2770/0x9120) is not claimed by any active driver.
|
I could recompile the USB parts as modules, but I don't know if anything'll happen to my setup if I use modules for scsi.
Probably not.
I use the ide-scsi approach to use my CD burner, so I load the ide-scsi module to access the scsi functions in the kernel.
Do I have to add the scsi modules to modules.autoload or does ide-scsi take care of that itself? |
|
Back to top |
|
|
|