Powershell
Posts: 44
Joined: Fri Apr 08, 2016 10:24 am

Proper USB automount?

Sun Jul 02, 2017 11:01 pm

Hello guys!

I'm trying to setup USB HDD/Flash to automount in a convenient way. Googled it already and followed some of the manuals.

So right now the problem is that:

1. The mount-point is /media/32 (for a 32Gb flash)
2. If USB Flash is inserted and Raspbian reboots, it gets mounted to it.
3. But if I'm on local X or remote VNC session, and insert the flash, it gets mounted to /media/pi/32
4 .I'm constantly getting bugged with password prompt (when inserting or ejecting it).
5. Sometimes after the reboot, if flash or another HDD is not present, Raspbian fails to boot after a 2 min delay searching for drives.
6. Sometimes the eject button (upper-right corner) is greyed out - unable to unmount.

What I would like:

Always mount to the same mountpoint, and have it accessible to everyone (root, non-root)
Stop being bugged with sudo password.
Become able to force unmount.

If you know a good tutorial that addresses most of these issues, or you can help - please do :)

Thanks!

PS: I guess the dirtiest hack would be just logging in as root all the time? But I'm not sure if it
will fix the boot failure problem.

User avatar
scruss
Posts: 3256
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Proper USB automount?

Mon Jul 03, 2017 12:06 am

/media/pi/32 is the right place for the drive to mount, and should do so consistently without root access.

Did you change any system settings?
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

Return to “Beginners”