Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Optimizing mount options for additional HDD

I have read the man pages for mount, mount.cifs, lsblk, fstab etc. I don't have a problem with basic mounting, but I am curious. A short example will show why:

I installed a new HDD purely to house a music library. I thought it would be a good idea to mount it into ~/Music to avoid showing two "Music" locations in Folder view. I also hoped it might mean Gnome music would find the music files (presently it doesn't). This is via a basic mount in fstab:

LABEL=Music /home/thingummybob/Music ext4 defaults 0 2

Following suggestions in the manuals, I'm led to believe that using device labels is preferred over UIDs.

Broadly speaking the mount works exactly as expected. The drive is visible in Folder views and as /home/Music. But I suspect all is not quite as good as it could be. First is that whenever I open the folder after first boot, it seems to take quite a long time to display the contents. Okay there's 300+ Gb in there, but still. More confusing though is the display of embedded thumbnails. Seeing that some music files display only a default icon (and not the embedded art) I set about checking the files themselves but could find NO apparent differences. And then I plugged in a USB stick containing a copy of one of the problem files, and immediately it opened in Folders where the embedded art was visible!

So there is a difference between how files are treated on the mounted internal drive, and how files are treated during automount. I'd like to ensure that my internal drive - which has a specific role within the system (I have another for general data) - gains all the apparent advantages of auto-mounted ones, or is optimised entirely as a music library.

I've been reading that /media and /mnt have slightly different 'privileges' within the system as opposed to mounting to any old location (which one can).

Are there any gains available by mounting the HDD into /media or /run/media? What part do symlinks play in all of this, if any? What are mask permissions? Do they have a part to play in this?