public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Automatically mounting USB mass storage devices (camera)
@ 2005-11-12 19:45 Alexander Skwar
  2005-11-12 20:26 ` Christoph Eckert
  2005-11-21 18:45 ` Stefan Frank
  0 siblings, 2 replies; 14+ messages in thread
From: Alexander Skwar @ 2005-11-12 19:45 UTC (permalink / raw
  To: gentoo-user

Hi!

Since "recently" (I "of course" don't know since when exactly *G*),
I cannot get KDE or Gnome or ivman to automatically mount my
digicam, when I plug it in. The camera appears as a "USB
Mass Storage devices". In the kern.log, I get the following entries:

Nov 12 20:28:14 blatt usb 1-1: new full speed USB device using uhci_hcd and address 5
Nov 12 20:28:14 blatt scsi3 : SCSI emulation for USB Mass Storage devices
Nov 12 20:28:14 blatt usb-storage: device found at 5
Nov 12 20:28:14 blatt usb-storage: waiting for device to settle before scanning
[...]
Nov 12 20:28:19 blatt Vendor: NIKON     Model: NIKON DSC E4300   Rev: 1.00
Nov 12 20:28:19 blatt Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 12 20:28:19 blatt SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
Nov 12 20:28:19 blatt sda: Write Protect is off
Nov 12 20:28:19 blatt sda: Mode Sense: 18 00 00 08
Nov 12 20:28:19 blatt sda: assuming drive cache: write through
Nov 12 20:28:19 blatt SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
Nov 12 20:28:19 blatt sda: Write Protect is off
Nov 12 20:28:19 blatt sda: Mode Sense: 18 00 00 08
Nov 12 20:28:19 blatt sda: assuming drive cache: write through
Nov 12 20:28:19 blatt sda: sda1
Nov 12 20:28:19 blatt Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Nov 12 20:28:19 blatt usb-storage: device scan complete

As you can see, the system made the device available as "sda1".
When I "mount /dev/sda1 /mnt", I can get to the pictures and
what-not on the disk.

I just noticed another strange thing - lsusb isn't finding the
device. Or rather, it's only able to find it when ran with root
rights.

alexander@blatt ~ $ lsusb
Bus 002 Device 002: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

alexander@blatt ~ $ sudo lsusb
Bus 002 Device 002: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 04b0:010e Nikon Corp. Coolpix 4300 (storage)
Bus 001 Device 001: ID 0000:0000

Strange.

How can I get the system to automatically mount my USB device when I
attach it?

alexander@blatt ~ $ lsmod
Module                  Size  Used by
autofs4                19844  4
rt2500                169572  1
sd_mod                 16144  0
usb_storage            33412  0
scsi_mod               92772  2 sd_mod,usb_storage
snd_pcm_oss            50720  0
snd_mixer_oss          18176  1 snd_pcm_oss
snd_seq_oss            32896  0
snd_seq_midi_event      7168  1 snd_seq_oss
snd_seq                50192  4 snd_seq_oss,snd_seq_midi_event
snd_via82xx            26656  1
snd_ac97_codec         88316  1 snd_via82xx
snd_ac97_bus            2304  1 snd_ac97_codec
snd_pcm                88584  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              24708  2 snd_seq,snd_pcm
snd_page_alloc         10504  2 snd_via82xx,snd_pcm
snd_mpu401_uart         7424  1 snd_via82xx
snd_rawmidi            25120  1 snd_mpu401_uart
snd_seq_device          8460  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    52452  13
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
soundcore              10080  1 snd
ext3                  121736  2
jbd                    58260  1 ext3
reiserfs              238448  3
af_packet              22024  2
usbhid                 37088  0
rtc                     9236  0
pcspkr                  3808  0
drm                    69652  0
via_agp                 9600  1
agpgart                33608  2 drm,via_agp
ide_cd                 39940  0
cdrom                  38176  1 ide_cd
cpufreq_conservative     7204  0
cpufreq_ondemand        6300  0
cpufreq_powersave       1920  0
p4_clockmod             4872  0
speedstep_lib           3968  1 p4_clockmod
freq_table              4612  1 p4_clockmod
evdev                   9344  1
psmouse                35204  0
ac                      4868  0
button                  6672  0
video                  15492  0
thermal                13064  0
processor              22844  1 thermal
battery                 9348  0
fan                     4612  0
uhci_hcd               32016  0
usbcore               120064  4 usb_storage,usbhid,uhci_hcd
alexander@blatt ~ $ uname -a
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

Thanks,

Alexander
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-12 19:45 [gentoo-user] Automatically mounting USB mass storage devices (camera) Alexander Skwar
@ 2005-11-12 20:26 ` Christoph Eckert
  2005-11-12 20:39   ` Alexander Skwar
  2005-11-21 18:45 ` Stefan Frank
  1 sibling, 1 reply; 14+ messages in thread
From: Christoph Eckert @ 2005-11-12 20:26 UTC (permalink / raw
  To: gentoo-user


> How can I get the system to automatically mount my USB device when I
> attach it?

Most cameras can be switched from USB to PTP mode in the setup.

I recommend to do so and instead of automounting it to access it via PTP 
(see gphoto2/digikam etc.). It's much more convenient because you can 
plug it in out pull it out at any time without the need to mount it.


Best regards


    ce
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-12 20:26 ` Christoph Eckert
@ 2005-11-12 20:39   ` Alexander Skwar
  2005-11-12 21:03     ` Christoph Eckert
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Skwar @ 2005-11-12 20:39 UTC (permalink / raw
  To: gentoo-user

Christoph Eckert schrieb:
>> How can I get the system to automatically mount my USB device when I
>> attach it?
> 
> Most cameras can be switched from USB to PTP mode in the setup.

Yeah, I know. When Mass Storage worked, it was much more convenient
than having to start some program to import hte files from PTP
to the system.

> I recommend to do so and instead of automounting it to access it via PTP 
> (see gphoto2/digikam etc.). It's much more convenient because you can 
> plug it in out pull it out at any time without the need to mount it.

Yep. That's the way it used to be :) But with PTP I had
other kinds of problems.

Well, instead of using PTP, I rather mount the camera by
hand. Much more convient, IMO.

Thanks for the tip, though. But instead of the PTP
workaround, I'll use the manual-mount workaround. Or
maybe autofs.

Alexander Skwar
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-12 20:39   ` Alexander Skwar
@ 2005-11-12 21:03     ` Christoph Eckert
  2005-11-13  9:12       ` Alexander Skwar
  0 siblings, 1 reply; 14+ messages in thread
From: Christoph Eckert @ 2005-11-12 21:03 UTC (permalink / raw
  To: gentoo-user


> Thanks for the tip, though. But instead of the PTP
> workaround, I'll use the manual-mount workaround. Or
> maybe autofs.

PTP is slow, *very* slow on my machine. This is a big minus.

Regardless of mass storage or PTP you can write a small shell script 
which automates the process and copies the pics to disk, maybe by 
creating a folder with the current date.


Best regards


    ce
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-12 21:03     ` Christoph Eckert
@ 2005-11-13  9:12       ` Alexander Skwar
  2005-11-14  3:02         ` Norberto Bensa
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Skwar @ 2005-11-13  9:12 UTC (permalink / raw
  To: gentoo-user

Christoph Eckert wrote:
>> Thanks for the tip, though. But instead of the PTP
>> workaround, I'll use the manual-mount workaround. Or
>> maybe autofs.
> 
> PTP is slow, *very* slow on my machine. This is a big minus.
> 
> Regardless of mass storage or PTP you can write a small shell script 
> which automates the process and copies the pics to disk, maybe by 
> creating a folder with the current date.

Now, THAT is a very good idea! Thanks! I'll do that - at least
*some* convenience :)

In the meantime I remembered, that during the emerge of pmount,
a message has been shown, that users have to be added to the
plugdev group:

 * This package has been installed setuid.  The permissions are as such that
 * only users that belong to the plugdev group are allowed to run this.
 *
 * Please add your user to the plugdev group to be able to mount USB drives

Did that. Logged out. Logged in again. Same result - still no
automount :(

Alexander Skwar
-- 
Men of quality are not afraid of women for equality.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-13  9:12       ` Alexander Skwar
@ 2005-11-14  3:02         ` Norberto Bensa
  2005-11-14  5:20           ` Alexander Skwar
  0 siblings, 1 reply; 14+ messages in thread
From: Norberto Bensa @ 2005-11-14  3:02 UTC (permalink / raw
  To: gentoo-user; +Cc: Alexander Skwar

Alexander Skwar wrote:
> still no
> automount :(
>

In my boxes, I need these versions...

sys-apps/dbus-0.36.2
sys-fs/udev-072
sys-apps/hal-0.5.4
sys-apps/ivman-0.6.4
sys-apps/pmount-0.9.6 

...for automount to work properly.


> Alexander Skwar


HTH,

-- 
Norberto Bensa
4544-9692
Ciudad de Buenos Aires, Argentina
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-14  3:02         ` Norberto Bensa
@ 2005-11-14  5:20           ` Alexander Skwar
  2005-11-14 23:12             ` Norberto Bensa
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Skwar @ 2005-11-14  5:20 UTC (permalink / raw
  To: gentoo-user

Norberto Bensa schrieb:
> Alexander Skwar wrote:
>> still no
>> automount :(
>>
> 
> In my boxes, I need these versions...
> 
> sys-apps/dbus-0.36.2
> sys-fs/udev-072
> sys-apps/hal-0.5.4
> sys-apps/ivman-0.6.4
> sys-apps/pmount-0.9.6 

alexander@blatt ~ $ epm -q dbus udev hal ivman pmount
dbus-0.50-r1
udev-073
hal-0.5.4
ivman-0.6.5
pmount-0.9.6

:(

Alexander Skwar
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-14  5:20           ` Alexander Skwar
@ 2005-11-14 23:12             ` Norberto Bensa
  2005-11-15  6:09               ` Alexander Skwar
  0 siblings, 1 reply; 14+ messages in thread
From: Norberto Bensa @ 2005-11-14 23:12 UTC (permalink / raw
  To: gentoo-user; +Cc: Alexander Skwar

Alexander Skwar wrote:
> alexander@blatt ~ $ epm -q dbus udev hal ivman pmount
> dbus-0.50-r1

downgrade to 0.36.2

> udev-073
> hal-0.5.4
> ivman-0.6.5

downgrade to 0.6.4

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-14 23:12             ` Norberto Bensa
@ 2005-11-15  6:09               ` Alexander Skwar
  2005-11-19  1:24                 ` Norberto Bensa
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Skwar @ 2005-11-15  6:09 UTC (permalink / raw
  Cc: gentoo-user

Norberto Bensa schrieb:
> Alexander Skwar wrote:
>> alexander@blatt ~ $ epm -q dbus udev hal ivman pmount
>> dbus-0.50-r1
> 
> downgrade to 0.36.2
> 
>> udev-073
>> hal-0.5.4
>> ivman-0.6.5
> 
> downgrade to 0.6.4

Done. Still no automount.

Alexander Skwar
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-15  6:09               ` Alexander Skwar
@ 2005-11-19  1:24                 ` Norberto Bensa
  2005-11-19  7:40                   ` Alexander Skwar
  0 siblings, 1 reply; 14+ messages in thread
From: Norberto Bensa @ 2005-11-19  1:24 UTC (permalink / raw
  To: gentoo-user; +Cc: Alexander Skwar

Alexander Skwar wrote:
> Norberto Bensa schrieb:
> > Alexander Skwar wrote:
> >> dbus-0.50-r1
> >
> > downgrade to 0.36.2
> >
> >> ivman-0.6.5
> >
> > downgrade to 0.6.4
>
> Done. Still no automount.

Have you restarted dbus?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-19  1:24                 ` Norberto Bensa
@ 2005-11-19  7:40                   ` Alexander Skwar
  2005-11-19 11:57                     ` Jose Maria Alvarez Fernandez
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Skwar @ 2005-11-19  7:40 UTC (permalink / raw
  To: gentoo-user

Norberto Bensa schrieb:
> Alexander Skwar wrote:
>> Norberto Bensa schrieb:
>> > Alexander Skwar wrote:
>> >> dbus-0.50-r1
>> >
>> > downgrade to 0.36.2
>> >
>> >> ivman-0.6.5
>> >
>> > downgrade to 0.6.4
>>
>> Done. Still no automount.
> 
> Have you restarted dbus?

Yes :(

How's that automounting supposed to work? When does pmount
kick in? How do I make dbus/hald/whatever start pmount (or
whatever...) to do the actual mount?

Alexander Skwar
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-19  7:40                   ` Alexander Skwar
@ 2005-11-19 11:57                     ` Jose Maria Alvarez Fernandez
  2005-11-20  6:49                       ` Alexander Skwar
  0 siblings, 1 reply; 14+ messages in thread
From: Jose Maria Alvarez Fernandez @ 2005-11-19 11:57 UTC (permalink / raw
  To: gentoo-user

I'm having a similar problem with ivman, and i've discovered that the 
reason is that the camera has an id label that has a "space", ie: LEXAR 
MEDIA. That's not right for pmount, and when ivman tries to mount it, 
fails. But it works for other usb devices. Does it work for you?
Also, i had to upgrade to a CVS version of hal in order to get 
everything to work again with 2.6.14 (you can find one ebuild in 
fluidportage).

Hope it helps!

Alexander Skwar wrote:
> Norberto Bensa schrieb:
> 
>>Alexander Skwar wrote:
>>
>>>Norberto Bensa schrieb:
>>>
>>>>Alexander Skwar wrote:
>>>>
>>>>>dbus-0.50-r1
>>>>
>>>>downgrade to 0.36.2
>>>>
>>>>
>>>>>ivman-0.6.5
>>>>
>>>>downgrade to 0.6.4
>>>
>>>Done. Still no automount.
>>
>>Have you restarted dbus?
> 
> 
> Yes :(
> 
> How's that automounting supposed to work? When does pmount
> kick in? How do I make dbus/hald/whatever start pmount (or
> whatever...) to do the actual mount?
> 
> Alexander Skwar
-- 
Blog: http://tanis.sl-form.com
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-19 11:57                     ` Jose Maria Alvarez Fernandez
@ 2005-11-20  6:49                       ` Alexander Skwar
  0 siblings, 0 replies; 14+ messages in thread
From: Alexander Skwar @ 2005-11-20  6:49 UTC (permalink / raw
  To: gentoo-user

Jose Maria Alvarez Fernandez schrieb:
> I'm having a similar problem with ivman, and i've discovered that the 
> reason is that the camera has an id label that has a "space", ie: LEXAR 
> MEDIA. That's not right for pmount, and when ivman tries to mount it, 
> fails. But it works for other usb devices. Does it work for you?
> Also, i had to upgrade to a CVS version of hal in order to get 
> everything to work again with 2.6.14 (you can find one ebuild in 
> fluidportage).

How did you read the "id label"?

ivman used to work for me - on a different PC but with the
same USB camera and also some time ago, thus with different
versions of everything.

On my notebook, I used to be able to plugin USB devices
(namely this USB camera) and it got mounted - without
ivman and without pmount.

Alexander Skwar
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] Automatically mounting USB mass storage devices (camera)
  2005-11-12 19:45 [gentoo-user] Automatically mounting USB mass storage devices (camera) Alexander Skwar
  2005-11-12 20:26 ` Christoph Eckert
@ 2005-11-21 18:45 ` Stefan Frank
  1 sibling, 0 replies; 14+ messages in thread
From: Stefan Frank @ 2005-11-21 18:45 UTC (permalink / raw
  To: gentoo-user; +Cc: Alexander Skwar

Hi

I just posted the same on the german gentoo user list:

HAL is no longer compiled with the --enable-fstab-sync option. Therefore 
hotpluggable devices wont be automounted. To get around this, you can create 
a overlay with the current hal-0.5.4.ebuild and add the following:

src_compile() {
    econf \
        $(use_enable debug verbose-mode) \
        $(use_enable pcmcia pcmcia-support) \
        --enable-sysfs-carrier \
        --enable-hotplug-map \
+     --enable-fstab-sync \
        $(use_enable doc docbook-docs) \
        $(use_enable doc doxygen-docs) \
        --with-pid-file=/var/run/hald.pid \
        || die "configure failed"

    emake || die "make failed"
}

Maybe you've to change the permissions on /etc/fstab to haldaemon:haldaemon, 
as it needs the permission to change the file.

If you need informations on how to make an overlay, please ask!

Stefan

BTW: I don't know why --enable-fstab-sync isn't used anymore - maybe it's for 
some good reason, I don't know. Do this on your own risk ;).
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-11-21 20:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-12 19:45 [gentoo-user] Automatically mounting USB mass storage devices (camera) Alexander Skwar
2005-11-12 20:26 ` Christoph Eckert
2005-11-12 20:39   ` Alexander Skwar
2005-11-12 21:03     ` Christoph Eckert
2005-11-13  9:12       ` Alexander Skwar
2005-11-14  3:02         ` Norberto Bensa
2005-11-14  5:20           ` Alexander Skwar
2005-11-14 23:12             ` Norberto Bensa
2005-11-15  6:09               ` Alexander Skwar
2005-11-19  1:24                 ` Norberto Bensa
2005-11-19  7:40                   ` Alexander Skwar
2005-11-19 11:57                     ` Jose Maria Alvarez Fernandez
2005-11-20  6:49                       ` Alexander Skwar
2005-11-21 18:45 ` Stefan Frank

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox