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 )
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.
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 .....)
|All times are GMT -5. The time now is 02:57 PM.|