Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-29-2005, 11:10 PM   #1
Registered: Mar 2005
Posts: 69

Rep: Reputation: 15
USB automount script

hi there,

someone pls help me out with this problem. I want create a script, so that when i plug & un-plug in my usb stick, it will automatic mouting and un-mount without typing command line. Please explain detail.

any help would be very apperciated !!!
Old 03-29-2005, 11:53 PM   #2
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
The easy way to do this is by setting up autofs. This will automatically mount configured filesystems whenever you attempt to access the mount point and will unmount it after it has been inactive for a certain amount of time (like 1 second for USB drives). I use it for all of my removable devices and it works quite well.

To use automount, you need to have auto mounting support enabled in the kernel and make sure you have the autofs package for userland utilities. If you have multiple USB storage devices and a 2.6 kernel, it's also a good idea to set up some udev rules to create unique names for each of your devices.

You can google for autofs and automount tutorials on the web. You might also consult tha man pages for autofs, automount, and auto.master.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
usb stick automount mfrangos79 Linux - Hardware 9 09-19-2005 10:55 AM
usb media automount dukeinlondon Debian 3 07-22-2005 06:53 PM
USB automount options JetJock Debian 1 06-16-2005 12:14 AM
USB automount delta_simon Linux - Software 2 04-09-2005 05:36 AM
automount script for kde` corbis_demon Linux - Newbie 1 08-02-2004 02:21 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration