Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Automatically mounting USB mass storage devices (camera)
Date: Sat, 12 Nov 2005 19:52:35
Message-Id: 43764676.8000603@mid.email-server.info
1 Hi!
2
3 Since "recently" (I "of course" don't know since when exactly *G*),
4 I cannot get KDE or Gnome or ivman to automatically mount my
5 digicam, when I plug it in. The camera appears as a "USB
6 Mass Storage devices". In the kern.log, I get the following entries:
7
8 Nov 12 20:28:14 blatt usb 1-1: new full speed USB device using uhci_hcd and address 5
9 Nov 12 20:28:14 blatt scsi3 : SCSI emulation for USB Mass Storage devices
10 Nov 12 20:28:14 blatt usb-storage: device found at 5
11 Nov 12 20:28:14 blatt usb-storage: waiting for device to settle before scanning
12 [...]
13 Nov 12 20:28:19 blatt Vendor: NIKON Model: NIKON DSC E4300 Rev: 1.00
14 Nov 12 20:28:19 blatt Type: Direct-Access ANSI SCSI revision: 02
15 Nov 12 20:28:19 blatt SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
16 Nov 12 20:28:19 blatt sda: Write Protect is off
17 Nov 12 20:28:19 blatt sda: Mode Sense: 18 00 00 08
18 Nov 12 20:28:19 blatt sda: assuming drive cache: write through
19 Nov 12 20:28:19 blatt SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
20 Nov 12 20:28:19 blatt sda: Write Protect is off
21 Nov 12 20:28:19 blatt sda: Mode Sense: 18 00 00 08
22 Nov 12 20:28:19 blatt sda: assuming drive cache: write through
23 Nov 12 20:28:19 blatt sda: sda1
24 Nov 12 20:28:19 blatt Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
25 Nov 12 20:28:19 blatt usb-storage: device scan complete
26
27 As you can see, the system made the device available as "sda1".
28 When I "mount /dev/sda1 /mnt", I can get to the pictures and
29 what-not on the disk.
30
31 I just noticed another strange thing - lsusb isn't finding the
32 device. Or rather, it's only able to find it when ran with root
33 rights.
34
35 alexander@blatt ~ $ lsusb
36 Bus 002 Device 002: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
37 Bus 002 Device 001: ID 0000:0000
38 Bus 001 Device 001: ID 0000:0000
39
40 alexander@blatt ~ $ sudo lsusb
41 Bus 002 Device 002: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
42 Bus 002 Device 001: ID 0000:0000
43 Bus 001 Device 005: ID 04b0:010e Nikon Corp. Coolpix 4300 (storage)
44 Bus 001 Device 001: ID 0000:0000
45
46 Strange.
47
48 How can I get the system to automatically mount my USB device when I
49 attach it?
50
51 alexander@blatt ~ $ lsmod
52 Module Size Used by
53 autofs4 19844 4
54 rt2500 169572 1
55 sd_mod 16144 0
56 usb_storage 33412 0
57 scsi_mod 92772 2 sd_mod,usb_storage
58 snd_pcm_oss 50720 0
59 snd_mixer_oss 18176 1 snd_pcm_oss
60 snd_seq_oss 32896 0
61 snd_seq_midi_event 7168 1 snd_seq_oss
62 snd_seq 50192 4 snd_seq_oss,snd_seq_midi_event
63 snd_via82xx 26656 1
64 snd_ac97_codec 88316 1 snd_via82xx
65 snd_ac97_bus 2304 1 snd_ac97_codec
66 snd_pcm 88584 3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
67 snd_timer 24708 2 snd_seq,snd_pcm
68 snd_page_alloc 10504 2 snd_via82xx,snd_pcm
69 snd_mpu401_uart 7424 1 snd_via82xx
70 snd_rawmidi 25120 1 snd_mpu401_uart
71 snd_seq_device 8460 3 snd_seq_oss,snd_seq,snd_rawmidi
72 snd 52452 13
73 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
74 soundcore 10080 1 snd
75 ext3 121736 2
76 jbd 58260 1 ext3
77 reiserfs 238448 3
78 af_packet 22024 2
79 usbhid 37088 0
80 rtc 9236 0
81 pcspkr 3808 0
82 drm 69652 0
83 via_agp 9600 1
84 agpgart 33608 2 drm,via_agp
85 ide_cd 39940 0
86 cdrom 38176 1 ide_cd
87 cpufreq_conservative 7204 0
88 cpufreq_ondemand 6300 0
89 cpufreq_powersave 1920 0
90 p4_clockmod 4872 0
91 speedstep_lib 3968 1 p4_clockmod
92 freq_table 4612 1 p4_clockmod
93 evdev 9344 1
94 psmouse 35204 0
95 ac 4868 0
96 button 6672 0
97 video 15492 0
98 thermal 13064 0
99 processor 22844 1 thermal
100 battery 9348 0
101 fan 4612 0
102 uhci_hcd 32016 0
103 usbcore 120064 4 usb_storage,usbhid,uhci_hcd
104 alexander@blatt ~ $ uname -a
105 Linux blatt 2.6.14-suspend2.037 #1 PREEMPT Tue Nov 8 20:57:32 CET 2005 i686 Intel(R) Celeron(R) M processor 1.50GHz GenuineIntel GNU/Linux
106
107 Thanks,
108
109 Alexander
110 --
111 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Automatically mounting USB mass storage devices (camera) Christoph Eckert <ce@×××××××××.de>
Re: [gentoo-user] Automatically mounting USB mass storage devices (camera) Stefan Frank <s_frank@××××××××.ch>