Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to find a way to automatically mount any external usb drive connected to my server, and then to automatically share it via samba. The main thing that confuses me is how to handle unmounting it before it is unplugged without having to fire up a command line. The USB drives will also be used in Windows environments and will therefore be FAT or NTFS formatted.

For reasons I won't go into, my family has a number of laptops with no access to USB ports. I'm just trying to create a simple way for them to be able to plug a USB pen into my server, access a samba share to throw on a couple of work/college assignments etc, and then unplug. Ideally, this needs to happen without me having to ssh into my server every time.


share|improve this question

Sorry no one has answered this for you - this entry describes a process similar to what you are looking for.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.