> that is probably the script getting executed when you plug in the camera,
> what is it doing? trying to mount the device? to do things manually, you
> might try renaming that script for now.
> Then check "tail -f /var/log/messages" as you plug-in the camera to see
> if it is still getting setup.
> what do you get from "ls /proc/scsi" ?
> what about "fdisk -l /dev/sda" ? (should list the partitions)
> the only way I know to list scsi devices is "cdrecord -scanbus"
> if you see your camera listed there, show us what it says
> --Eric
I renamed the script to _usbcam. It doesn't appear to mount anything,
but I can post it if that would help. Here is what it says it does:-
# Sets up newly plugged in USB camera so that the user who owns
# the console according to pam_console can access it from user space
#
# Note that for this script to work, you'll need all of the following:
# a) a line in the file /etc/hotplug/usermap that corresponds to the
# camera you are using. You can get the correct lines for all
cameras
# supported by gphoto2 by running "gphoto2 --print-usb-usermap".
# b) a setup using pam_console creates the respective lock files
# containing the name of the respective user. You can check for
that
# by executing "echo `cat /var/{run,lock}/console.lock`" and
# verifying the appropriate user is mentioned somewhere there.
# c) a Linux kernel supporting hotplug and usbdevfs
# d) the hotplug package (http://linux-hotplug.sourceforge.net/)
#
# In the usermap file, the first field "usb module" should be named
# "usbcam" like this script.
Upon plugging in camera (tail -f /var/log/messages):-
Apr 10 17:21:02 localhost kernel: hub.c: USB new device connect on
bus2/2, assigned device number 7
Apr 10 17:21:05 localhost /etc/hotplug/usb.agent: Setup usb-storage
for USB product 4a5/3005/100
Although the first time I did it I got:-
Apr 10 17:09:24 localhost kernel: hub.c: USB new device connect on
bus2/2, assig
ned device number 3
Apr 10 17:09:24 localhost kernel: usb.c: USB device 3 (vend/prod
0x4a5/0x3005) i
s not claimed by any active driver.
Apr 10 17:09:27 localhost /etc/hotplug/usb.agent: Setup usb-storage
for USB prod
uct 4a5/3005/100
Apr 10 17:09:27 localhost kernel: Initializing USB Mass Storage
driver...
Apr 10 17:09:27 localhost kernel: usb.c: registered new driver
usb-storage
Apr 10 17:09:27 localhost kernel: scsi1 : SCSI emulation for USB Mass
Storage de
vices
Apr 10 17:09:27 localhost kernel: Vendor: BenQ Model: DC1500
R
ev: 1.00
Apr 10 17:09:27 localhost kernel: Type: Direct-Access
A
NSI SCSI revision: 02
Apr 10 17:09:27 localhost kernel: USB Mass Storage support registered.
Looks more encouraging.
I don't know how I managed that... Upon "ls /proc/scsi" I get:-
ide-scsi scsi usb-storage-0
"fdisk -l /dev/sda" returns nothing whatsoever.
"cdrecord -scanbus" returns:-
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'LITE-ON ' 'LTR-48246S ' 'SS0B' Removable
CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) 'BenQ ' 'DC1500 ' '1.00' Removable
Disk
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
--David