Re: Automatically mounting USB flash disks/ USB thumb drives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




You might want to add some options to it so that it sets permissions to it properly.
These are just the same as you would set in fstab and are added as a comma separated list with
the
-fstype=ext3,...,...,...
etcetera.


Daniel

On Tue, 10 Aug 2004 22:35:12 +1000, Daniel Stonier <snorri_dj@xxxxxxxxxxxxx> wrote:


Another way to do it is use the automounter. For example, to automount at /mnt/usb/flash


- Create a mount point (directory): /mnt/usb
- Edit auto.master to include the line
/mnt/usb /etc/auto.usb --timeout 5
- Copy auto.misc to auto.usb
- Comment/delete everything out in auto.usb and include the line
flash -fstype=ext3 :/dev/sda1
(Change fstype to whatever you have, I typically format my usb drives as soon as I get them)
- Then run, service autofs start (might want to start this up at bootup, easy to run redhat-config-services)


To use it, all you need do is enter the directory /mnt/usb/flash, it will mount it upon entering it, and unmount it
5 seconds after you leave it.


Might not be exactly what you need, but its an idea that suits my purposes fine.

Cheers,
Daniel Stonier.

On Tue, 10 Aug 2004 17:20:10 +0800 (SGT), Didier Casse <didierbe@xxxxxxxxxxxxxx> wrote:

On 10/08/04, at 08:51 +0100, Andy Green <fedora@xxxxxxxxxxx> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 10 August 2004 08:40, Didier Casse wrote:

> I just got tired of mounting and unmounting USB flash disks.
> What's the fastest way of having them automatically mounted. Right now
> Can anybody point a simpler way, script or neat rpm to me? Thanks.


Try the RPM available at the link in my sig.

- -Andy

- --
Automatic actions for USB cameras, cardreaders, memory sticks, MP3 players
http://warmcat.com/usbautocam

Hmm I think I correctly installed and configured the stuff (see below). But it doesn't work. When I plug in my usb one more time, well nothing pops up! Please advise. :-(


---------------------------------------------------------------------------- (root@microtronyx:root)# usbautocam add /mnt/usb

usbautocam setup script, v0.2 2004-04-13 (c)2004 andy@xxxxxxxxxxx,
licensed under the GPL


Make sure the device you want to add is DISCONNECTED or powered off and hit enter


Now power up and plug in the device to add and hit enter

Device is found at /dev/sda1
Device manufacturer 0x0ea0, product 0x6803
Device type is Ours Technology, Inc.

Guessing device is a CAMERA/Card Reader and wants files moving on connect

Hit Enter, or 'C' to force Camera, 'A' to force Audioplayer/Flash Disk
A

Device is an AUDIO PLAYER

Now please DISCONNECT or power down the device you want to add and hit
enter

Stopping automount:                                        [  OK  ]
/misc already existed, not creating...
/etc/auto.master already has an entry for /misc, skipping...
/etc/auto.misc already has an entry for usbautocam, skipping...
Starting automount:                                        [  OK  ]

Creating /etc/hotplug/usb/usbautocam
(hotplug product code=ea0/6803 )


COMPLETED. From now on when you insert that player, a Konqueror window will open on its contents. You can drag and drop files as usual. Wait 3 seconds after the file transfer is complete and you can disconnect the player with no unmounting or anything else needed.

-----------------------------------------------------------------------------


With kind regards,

Didier.

---
PhD student.

Singapore Synchrotron Light Source (SSLS)
5 Research Link,
Singapore 117603

Email: didierbe at sps dot nus dot edu dot sg

Web: http://ssls.nus.edu.sg










-- email:snorri_dj@xxxxxxxxxxxxx http://members.optusnet.com.au/stonierd/



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux