automount USB devices

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
stroudmw
Posts: 15
Joined: Thu Aug 01, 2019 6:47 am

automount USB devices

Post 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.
stroudmw
Posts: 15
Joined: Thu Aug 01, 2019 6:47 am

Re: automount USB devices

Post 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
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: automount USB devices

Post by ericbsd »

Is that on the installed system or the live system?
stroudmw
Posts: 15
Joined: Thu Aug 01, 2019 6:47 am

Re: automount USB devices

Post by stroudmw »

The (formerly) installed system
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: automount USB devices

Post by ericbsd »

I just discover what is the problem, if you do sudo pkg install -fy automount and reboot that will fix the problem.
stroudmw
Posts: 15
Joined: Thu Aug 01, 2019 6:47 am

Re: automount USB devices

Post 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!
stroudmw
Posts: 15
Joined: Thu Aug 01, 2019 6:47 am

Re: automount USB devices

Post by stroudmw »

I've decided to stick with 12.2 until 13 is officially released!
gbar
Posts: 40
Joined: Wed Apr 05, 2017 12:30 pm

Re: automount USB devices

Post by gbar »

Hi,

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

thanks
Post Reply