Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-07-2011, 03:31 AM   #1
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 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
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

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,

Old 02-07-2011, 10:54 PM   #3
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 .....)


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
[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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 AM.

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