jez286
Posts: 4
Joined: Mon Feb 04, 2013 3:40 pm

Auto mount USB sticks

Mon Feb 04, 2013 3:45 pm

Hi all,

In Ubuntu, when I plug a USB stick in, it automatically mounts the drive in /media/ using the device's volume label, e.g. "/media/8gbusbstick"

Is there a way to replicate this on the Raspberry Pi using Debian Wheezy?

Sorry if this is a 'suck eggs' question but I can't seem to find anything related to this on any forums.

I have successfully edited fstab to mount by UUID but I want to be able to auto mount by label if possible.

Thanks!

DBryant
Posts: 281
Joined: Sat Feb 02, 2013 12:41 pm
Location: Berkshire, UK

Re: Auto mount USB sticks

Mon Feb 04, 2013 5:26 pm

Take a look in New Linux Users forum, this exact question was posed there including Labels, UIIDs and so on.

Any problem finding it, just come back.

jez286
Posts: 4
Joined: Mon Feb 04, 2013 3:40 pm

Re: Auto mount USB sticks

Tue Feb 05, 2013 3:51 pm

Thanks for the reply. I found the article and it helped a little but threw up a minor issue.

Oddly enough, the automount by label feature works when I set Raspbian to autostart the gui but the same behaviour is not replicated at command line. In other words, to automount USB sticks I have to start the desktop, even though it's not being used (I'm using it as a NAS box) which seems a bit of a waste of resources.

Anyway, I've managed to find a workaround the works which is the important thing.

Thanks for your help!

Greenslime
Posts: 1
Joined: Sat Mar 30, 2013 3:36 pm

Re: Auto mount USB sticks

Sat Mar 30, 2013 3:41 pm

Jez286, what was your workaround?

Return to “Beginners”