Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB filesystem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Papapishu
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 129
Location: ((void*)NULL)

PostPosted: Sun Sep 07, 2003 6:49 pm    Post subject: USB filesystem Reply with quote

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
View user's profile Send private message
cvk
Guru
Guru


Joined: 06 Jan 2003
Posts: 314
Location: Our house, in the middle of our street

PostPosted: Sun Sep 07, 2003 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Papapishu
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 129
Location: ((void*)NULL)

PostPosted: Sun Sep 07, 2003 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
cvk
Guru
Guru


Joined: 06 Jan 2003
Posts: 314
Location: Our house, in the middle of our street

PostPosted: Sun Sep 07, 2003 7:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Papapishu
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 129
Location: ((void*)NULL)

PostPosted: Mon Sep 08, 2003 2:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
cvk
Guru
Guru


Joined: 06 Jan 2003
Posts: 314
Location: Our house, in the middle of our street

PostPosted: Mon Sep 15, 2003 8:59 am    Post subject: Reply with quote

Is the camera recognized when you plug it it and type
Code:
dmesg
?

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
View user's profile Send private message
Papapishu
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 129
Location: ((void*)NULL)

PostPosted: Tue Sep 16, 2003 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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