Page 1 of 1

automount USB devices

Posted: Fri Jan 29, 2021 8:51 am
by stroudmw
Is there an easy way of getting "plug and play" to work with USB devices? I'd like to be able to connect my external USB HDD and have it appear in the file manager (Caja). I have several external drives: some ext4, others ntfs.

I've tried various methods that I've found using Google, but the most successful requires me to mount it via the command line, and then I need to be "root" in order to access it.

There must be a better way.

Re: automount USB devices

Posted: Sat Jan 30, 2021 4:43 am
by stroudmw
One of the many sites that Google took me to suggested an edit to /etc/auto_master. What I didn't notice was that I was getting an error when the service started. I fixed the error, and automount now works! This just goes to show: don't believe everything you read on the internet! :o

For the record: my /etc/automount_master now looks like this:

Code: Select all

# $FreeBSD$
#
# Automounter master map, see auto_master(5) for details.
#
/net            -hosts          -nobrowse,nosuid,intr
# When using the -media special map, make sure to edit devd.conf(5)
# to move the call to "automount -c" out of the comments section.
/media          -media          -nosuid,m=770
#/-             -noauto

Re: automount USB devices

Posted: Sat Jan 30, 2021 9:55 am
by ericbsd
Is that on the installed system or the live system?

Re: automount USB devices

Posted: Sat Jan 30, 2021 1:50 pm
by stroudmw
The (formerly) installed system

Re: automount USB devices

Posted: Sun Jan 31, 2021 6:42 pm
by ericbsd
I just discover what is the problem, if you do sudo pkg install -fy automount and reboot that will fix the problem.

Re: automount USB devices

Posted: Fri Mar 26, 2021 5:12 am
by stroudmw
A belated thank you for your reply! I've decided to give GhostBSD another try. I've been using Debian Buster Gnu/Linux with i3wm, and, as much as I like it... I need another challenge. Watching RoboNuggie on YouTube has inspired me to try BSD for at least a month on my I'm currently downloading the new version based on FreeBSD 13. I'll see how i3 works on that!
Thanks again!

Re: automount USB devices

Posted: Sat Mar 27, 2021 4:05 am
by stroudmw
I've decided to stick with 12.2 until 13 is officially released!

Re: automount USB devices

Posted: Mon Jul 12, 2021 12:13 pm
by gbar
Hi,

having issues with this, tried and not working on a new install to internal HD

thanks