Automount USB with consitent names

3 posts
by Kamsvag » 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?
Posts: 14
Joined: Sat Sep 01, 2012 5:07 pm
by RaTTuS » 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 <- ask smart Questions
"That's not right, the badgers have moved the goalposts."
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
User avatar
Posts: 5339
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by poing » Fri Mar 08, 2013 1:07 pm
See: section "Robust mounting of multiple USB flash drives".
Posts: 1097
Joined: Thu Mar 08, 2012 3:32 pm