LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-29-2005, 10:10 PM   #1
longnam
Member
 
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, 10:53 PM   #2
AdaHacker
Member
 
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.
 
  


Reply


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 09:55 AM
usb media automount dukeinlondon Debian 3 07-22-2005 05:53 PM
USB automount options JetJock Debian 1 06-15-2005 11:14 PM
USB automount delta_simon Linux - Software 2 04-09-2005 04:36 AM
automount script for kde` corbis_demon Linux - Newbie 1 08-02-2004 01:21 PM


All times are GMT -5. The time now is 05:31 AM.

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