Posts: 16
Joined: Sat Sep 01, 2012 5:07 pm

Automount USB with consitent names

Fri Mar 08, 2013 11:56 am

Ok, so I've got this old Popcorn Hour A-110 wich runs on Linux and I used to have the following problem.
The device has two USB ports, when rebooting the device I never knew wich USB-HDD would mount as USB-A and wich would come up as USB-B. This great guy at the networkedmediatank forum came up with a tool that alowed you to place a file (.mountpoint) in the root of the HDD containing a string wich would be your device mounted name. This way I could map my mediaJukebox to the right HDD even after a reboot.

I would love a tool for raspbian that alowed me to simply attach a USB-HDD containing a .mountpoint-file to actually mount the device in my /home/pi/share folder. Is there such a script already or similar aproach or do I have to try and track this ancient script on the web?

User avatar
Posts: 9436
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Automount USB with consitent names

Fri Mar 08, 2013 12:05 pm

easier to use the tools in the system
tune2fs can change the volume name of a partition
or is it

sudo e2label /dev/sda1 Movies
^ change the /dev/sda1 to whatever partition you need
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV


Posts: 1132
Joined: Thu Mar 08, 2012 3:32 pm

Re: Automount USB with consitent names

Fri Mar 08, 2013 1:07 pm

See: http://elinux.org/RPi_Adding_USB_Drives section "Robust mounting of multiple USB flash drives".

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 35 guests