Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3178

Best approach to automount usb drive? (2 replies)

$
0
0
Hi

I want to automount external usb hdd and usb sticks on my pogoplug running Debian (Debian GNU/Linux 7 (wheezy)) using the following rules

- mount certain external USB drives (identified by UUID or label) to individuall specific folders read-only
- mount all other esternal USB drives into a directory /media/external/LABEL as *read-only*

Then share the folder /media/external/ using netatalk and samba so thet the hot-plugged devices are available for reading (no problem if I have the above)

My reasoning for read-only is
- the data on the hdd can not be modified accidently
- I can simply unplug the device as I am not writing to it (assuming that nobody is using the device anymore)

When I want to write to the device, I can always ssh into the pogoplug and mount it read-write (or specify an additional rule for a certain drive).

Any suggestions how I can achieve this with as little overhang as possible?

Thanks,

Rainer

Viewing all articles
Browse latest Browse all 3178

Trending Articles