I'm not 100% sure where the problem is... udev
or gnome
or ...
Backstory:
I have an "IronKey". I have a udev
rule that allows my IronKey to plug into my machine. After I've plugged it in, I go to the gnome desktop, select "Places" / "IronKey" , and it mounts the Ironkey file system into /media/IronKey
I can then run the /media/IronKey/linux/ironkey
program, go to the gnome desktop, select "Places" / "Ironkey USB", and it mounts the secured file system into /media/Ironkey USB
Problem:
My co-worker has a newer IronKey. When he plugs it in, he goes to the gnome desktop, selects "Places" / "IronKey Unlocker" , and then gnome mounts the Ironkey file system into /media/IronKey Unlocker
He can then run the /media/IronKey Unlocker/linux/ironkey
program, go to the gnome desktop, select "Places" / "KINGSTON", and it mounts the secured file system into /media/KINGSTON
We have a bunch of scripts that depend on the IronKey being located in /media/IronKey
and /media/Ironkey USB
. How can I tell udev
or gnome
or whatever that
- When it mounts
/media/IronKey Unlocker
, it should create a symlink to/media/IronKey
- When it mounts
/media/KINGSTON
, it should create a symlink to/media/Ironkey USB
- When it unmounts
/media/IronKey Unlocker
, it should remove the symlink to/media/IronKey
- When it unmounts
/media/KINGSTON
, it should remove the symlink to/media/Ironkey USB