LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-07-2011, 03:31 AM   #1
aditya_moon
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
Wink crontab issue,need help


Hi friends first of all LQ forums really solved many of my queries (& I'm really thankfull to all of you ) but this one ,Im unable to find anywhere.here is the thing i WANT TO DO ..

I have a seagate external hard drive having ntfs partitions which I want to use in rhel5 as everbody knows rhel does not support ntfs so i INSTALLED NTFS-3G & now I am able to mount my External HDD "MANUALLY "

What I want is that, I want to set crontab in a way that as soon as I connect External HDD, it automatically mount all 5 partitions Im having on HDD( using this command "mount -t ntfs-3g /dev/sdcX /mnt/xyz" ) I know using crontab I can schedule things on my linux system but how can I use cron to automatically find Ex.HDD and mount it ??
Thanks in advance.
( Im posting this thread in newbie section because Im a NEWBIE to linux and still learning about it )
 
Old 02-07-2011, 04:01 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

I don't think crontab is the correct or most adequate solution to your question/problem. Have a look at how to write udev rules, which will be more useful.

Kind regards,

Eric
 
Old 02-07-2011, 10:54 PM   #3
aditya_moon
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
HI, EricTRA Im currently reading udev rules ,thanks for replting I'll let you know if any problem arrives ( I hope I can ask to you for help .....)
 
  


Reply



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
[SOLVED] Crontab Issue shii_va Linux - Server 2 09-15-2009 11:30 AM
crontab issue adnanm Linux - Newbie 1 03-16-2007 02:28 AM
crontab issue houssamfarag Red Hat 2 06-27-2006 11:56 PM
Newby w/crontab or emacs issue vrogers64 Mandriva 3 01-20-2005 04:11 AM
crontab issue lappen Linux - Newbie 6 05-24-2004 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 PM.

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
Open Source Consulting | Domain Registration