In which directory should I permanently mount a drive?
I have SSD and HDD. I installed my OS on the SSD and created Ext 4 partition on my HDD which I want to permanently mount on the OS. I know it's done through fstab but I don't know in which directory to mount it.
I've read that /media is for external drives and /mnt is for temporary mount drives, but I want my drive to be permanently mounted on startup.
Should I use /mnt ?
Solution 1:
As there is no written-on-stone rule where to mount additional disks in linux:
I would use a custom folder in /
to mount a permanent disk.
Example:
If I create a folder /d
and mount my new SDD there (add to /etc/fstab for permanent mount upon boot), I would have this folder easily accessible via a very short path cd /d
which will make sense for me.
Of course, You can also mount in /home
or at other places, but it needs to make sense for your own setup. If it is a backup drive, I would mount it at /home/backup
or /backup
as long as it makes sense for me that this is descriptive enough.