Solved [Solved] Mounting an External Hard Drive

I have a USB external hard drive I would like to mount as a non-root user, but I seem to be having some problems. As is outlined in the FreeBSD FAQ, in /etc/sysctl.conf I have added
Code:
vfs.usermount=1
and in /etc/devfs.conf I have added
Code:
own   /dev/da0   root:operator
perm  /dev/da0   0666
However, when I try to mount it as a normal user by doing
mount -t ntfs /dev/da0 ~/mnt
I get the error
Code:
mount_ntfs: /dev/da0: No such file or directory
If I try mounting da0 as root, it mounts perfectly fine. What do I need to change to be able to mount this drive as a non-root user?
 
Re: Mounting an External Hard Drive

Normally, a drive would have a partition table, so it would be /dev/da0s1.

Also, devfs.conf only works on devices present at boot. Devices that are connected later need to be configures with /etc/devfs.rules or /etc/devd.conf.
 
Re: Mounting an External Hard Drive

Hmm, this external drive doesn't create a device like /dev/da0s1, all there is is /dev/da0. Anyway, thanks for the tip. I'll check out the man pages for those configuration files.
 
Back
Top