I'm currently working in a command line only environment.
When I plug my USB key in, I see a new device file in /dev
:
...
sdi
sdi1
...
If I simply sudo mount /dev/sdi1 /media/tmp
, and umount
it when I'm done, I have to repeat the process all over again. This alone could be accomplished with a little script but my key doesn't always show up as sdi
.
Is there a way for me to have it always auto-mount and maybe reserve sdi
for it?
Note: Also, there seems to be orphaned device files in /dev if I forget to unmount and just pull the stick out.