I've got a large external hard disk with two partitions that I'd like to automount and run a script after the mounting - the script does
mount -o bind /media/CORTEX/music /home/me/music
(CORTEX is the mount point of one of the partitions)
and then also runs sync to backup any changes to the hard disk.
At the moment I'm just running this script from the command line - is it possible to make this happen automatically when the disk is plugged in?
It seems to me that I can't do this using KDE's media manager, as to set anything automatic up would cause the script to be done for all USB drives that are plugged in, which is not what I want.
Any suggestions?
mount -o bind /media/CORTEX/music /home/me/music
(CORTEX is the mount point of one of the partitions)
and then also runs sync to backup any changes to the hard disk.
At the moment I'm just running this script from the command line - is it possible to make this happen automatically when the disk is plugged in?
It seems to me that I can't do this using KDE's media manager, as to set anything automatic up would cause the script to be done for all USB drives that are plugged in, which is not what I want.
Any suggestions?
Comment