Automatically mounting USB flash disks/ USB thumb drives
Andy Green
fedora at warmcat.com
Wed Aug 11 10:16:18 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 11 August 2004 10:20, Didier Casse wrote:
> On 11/08/04, at 16:53 +0800, Didier Casse <didierbe at sps.nus.edu.sg> wrote:
> > > Also worth testing, when the USB stick is plugged in, you should be
> > > able to see the memory stick contents automounted at
> > > /mnt/usbaudioplayer while it is plugged in: have a look by hand. If
> > > that is there, the automount action is working fine, there is no need
> > > to umount the flash drive, just wait 3 seconds after the last access
> > > and pull it out.
> >
> > No automount action! Will try updating stuff. Thanks for the reply.
>
> I updated my hotplug and kernel... Well it correctly guesses that there is
> something around but when I plus my usb stick in, nothing happens and my
> /mnt/usb is not mounted.
/mnt/usb is a red herring I think, this is only used with the Camera type
devices as the destination to copy the content to on connect. I saw that you
gave it but it should be ignored.
What you should be seeing is a Konqueror window opening on /mnt/usbaudioplayer
on connect.
Nothing will happen though unless automount is functional.
Automount is provided in a package 'autofs'. Can you check your version and
update it?
#rpm -q autofs
autofs-4.1.3-8
here. Then check again what can be seen at /mnt/usbaudioplayer when the
device is inserted.
By chance I also have an Ours Technology USB 256MB stick and it's working
great with usbautocam here. Here is what I see in /var/log/messages (selinux
noise deleted)
Aug 11 11:12:36 fastcat kernel: usb 1-1.1: new full speed USB device using
address 9
Aug 11 11:12:36 fastcat kernel: ehci_hcd 0000:00:1d.7: qh 411e0480 (#0) state
1
Aug 11 11:12:36 fastcat kernel: scsi2 : SCSI emulation for USB Mass Storage
devices
Aug 11 11:12:36 fastcat kernel: Vendor: TwinMOS Model: MOBILE DISK
Rev: 1.11
Aug 11 11:12:36 fastcat kernel: Type: Direct-Access
ANSI SCSI revision: 02
Aug 11 11:12:36 fastcat kernel: SCSI device sda: 516096 512-byte hdwr sectors
(264 MB)
Aug 11 11:12:36 fastcat kernel: sda: Write Protect is off
Aug 11 11:12:36 fastcat kernel: sda: assuming drive cache: write through
Aug 11 11:12:36 fastcat kernel: sda: sda1
Aug 11 11:12:36 fastcat kernel: Attached scsi removable disk sda at scsi2,
channel 0, id 0, lun 0
Aug 11 11:12:36 fastcat kernel: Attached scsi generic sg0 at scsi2, channel 0,
id 0, lun 0, type 0
Aug 11 11:12:37 fastcat scsi.agent[17664]: disk
at /devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1.1/1-1.1:1.0/host2/2:0:0:0
Aug 11 11:12:37 fastcat su(pam_unix)[17720]: session opened for user agreen by
(uid=0)
Aug 11 11:12:38 fastcat su(pam_unix)[17720]: session closed for user agreen
And a nice Konq window pops up immediately with my USB stick contents.
- -Andy
- --
Automatic actions for USB cameras, cardreaders, memory sticks, MP3 players
http://warmcat.com/usbautocam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBGfHyjKeDCxMJCTIRAptWAJwLIUNr/jbiyQFHuy9A7XBCt1g+3wCeLzTm
IZWpHQel2o+Hky18YdJ1Um8=
=mAQk
-----END PGP SIGNATURE-----
More information about the fedora-list
mailing list