1

Can the mount path be changed to "/mnt" since this is a system only used by a single person.


Edit, seems this is using udisks2

  • 4
    If you're talking about auto-mounting with udisks then no, you can't change the mount point to /mnt (unless you're willing to patch the source code). You can only change the default mount point to /media if you set UDISKS_FILESYSTEM_SHARED to 1 – don_crissti Nov 9 '17 at 13:04
  • If you are auto-mounting with udisks then no, you can't change the mount point to /mnt. You can only change the default mount point to /media if you set UDISKS_FILESYSTEM_SHARED to 1. – Time4Tea Nov 9 '17 at 17:00
1

From the Filesystem Hierarchy Standard:

"This directory is provided so that the system administrator may temporarily mount a filesystem as needed. The content of this directory is a local issue and should not affect the manner in which any program is run.

This directory must not be used by installation programs: a suitable temporary directory not in use by the system must be used instead."

http://www.pathname.com/fhs/2.2/fhs-3.11.html

That temporary directory is /run/media/.

0

You could try a bind mount the auto-mounted folders to the /mnt folder eg:

sudo sh -c "for dir in $(ls /media/$USER | grep -v floppy); do mkdir -p /mnt/$dir; mount --bind /media/$USER/$dir /mnt/$dir; done"

Or create a symlink:

ln -s /media/$USER/drivelabel /mnt/drivelabel

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.