Solved Mounting usb drives

When I plug in a usb drive it is automatically mounted like below. Is there anyway to mount them by FS label ?
Added version if it makes a difference.

Code:
/dev/da1s1 on /media/da1s1 (fusefs)
/dev/da0s1 on /media/da0s1 (msdosfs, local, noatime)

#freebsd-version -kru
14.1-RELEASE-p5
14.1-RELEASE-p5
14.1-RELEASE-p6


Also even though I am a member of group wheel I umount them as a regular user.

TIA
 
Is there anyway to mount them by FS label ?
I believe that's not supported by base system automount(8).

filesystems/automount can mount at device label mount points instead of device names:

/usr/local/sbin/automount
Code:
NICENAMES (set to NO by default)
  If set to YES the device/filesystem label will be used for /media dir name.

  example: NICENAMES=YES
Variable has to be set in /usr/local/etc/automount.conf.

Example:
Code:
# fstyp -l /dev/da0p1
exfat BACKUP1

# fstyp -l /dev/da1p1
msdosfs MYDISK

# mount | grep media
/dev/da1p1 on  /media/MYDISK (msdosfs, local, noatime)
/dev/da0p1 on /media/BACKUP1 (fusefs)
 
It worked thank you.
I believe that's not supported by base system automount(8).

filesystems/automount can mount at device label mount points instead of device names:

/usr/local/sbin/automount
Code:
NICENAMES (set to NO by default)
  If set to YES the device/filesystem label will be used for /media dir name.

  example: NICENAMES=YES
Variable has to be set in /usr/local/etc/automount.conf.

Example:
Code:
# fstyp -l /dev/da0p1
exfat BACKUP1

# fstyp -l /dev/da1p1
msdosfs MYDISK

# mount | grep media
/dev/da1p1 on  /media/MYDISK (msdosfs, local, noatime)
/dev/da0p1 on /media/BACKUP1 (fusefs)
 
Back
Top