LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2009, 06:04 PM   #1
aembleton
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Location of Gnome auto-mount script?


I am successfully using rdiff-backup to backup my /home directory to an external USB hard drive. This requires me entering a command on the command line. What I would like to do is have this automagically occur whenever I plug the external USB hard drive in.

When I plug the USB hard drive in, Gnome/Mint/Linux detects this as it then automatically mounts the drive and makes it available. Is this controlled by a script? If so, where is it? Would I be able to add the rdiff-backup command into it?

Thanks in advance,
Arthur
 
Old 05-27-2009, 06:23 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
See http://www.greenfly.org/talks/autofs/autofs.html

Kernels are almost always automount capable.

In many Linux distributions including Kubuntu it will be automatic
 
Old 05-27-2009, 06:48 PM   #3
aembleton
LQ Newbie
 
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the reply. I am using Linux Mint, which is based on Ubuntu, in turn based on Debian. I understand that it has auto mount enabled, as when I plug my USB hard drive in it automatically mounts it. The slideshow you linked to talks about configuring autofs. I can't find autofs on my system, so I think it must be using something else, am I right?

When Linux Mint detects and mounts my USB hard drive, does it run a script? Can I make it run a command when it performs the mount?
 
Old 05-27-2009, 06:54 PM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
You need to know about udev and module init tools

http://reactivated.net/writing_udev_rules.html
 
Old 05-27-2009, 07:00 PM   #5
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Also see the man pages ... a few things are missing in the tutorial
 
  


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
Location of mount icons in gnome Verve1986 Linux - Desktop 1 05-20-2008 01:33 AM
gnome-volume-manager auto-mount issue verbose Linux - Software 2 12-18-2007 11:23 PM
auto mount partition script SweetLou Linux - General 2 02-19-2007 10:39 PM
DVD (auto)mount problem, gnome-mount, hal, Fedora C 5 lazarion Linux - Hardware 5 01-10-2007 05:45 AM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 06:48 AM


All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration