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 )