Should My Data HDD Be at /media or /mnt?

Message
Author
Kestrel
Posts: 23
Joined: Sat Sep 23, 2017 8:52 pm

Should My Data HDD Be at /media or /mnt?

#1 Post by Kestrel »

I've got the OS on an SSD and my Home folders are symlinked to a separate HDD to store all my documents, music, photos , vids etc on. This HDD is located at /media but upon reading the Manual it suggests /media is for removable drives and that a permanent drive (in this case a SATA HDD) should be located at /mnt.

Everything is working fine so does this matter?
Dell Inspiron 530 Desktop
8gb DDR2 RAM @ 800mhz
Intel® Core™2 Duo Processor E8600 3.33 GHz
MX-21.3

User avatar
dolphin_oracle
Developer
Posts: 22111
Joined: Sun Dec 16, 2007 12:17 pm

Re: Should My Data HDD Be at /media or /mnt?

#2 Post by dolphin_oracle »

I mount everything under /media.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

MXRobo
Posts: 1834
Joined: Thu Nov 14, 2019 12:09 pm

Re: Should My Data HDD Be at /media or /mnt?

#3 Post by MXRobo »

Kestrel wrote: Sat Jul 24, 2021 10:04 pm ....the Manual it suggests /media is for removable drives and that a permanent drive (in this case a SATA HDD) should be located at /mnt.

Everything is working fine so does this matter?
I assume that’s because /media is displayed in the file manager, whereas /mnt is not displayed.

User avatar
asqwerth
Developer
Posts: 7806
Joined: Sun May 27, 2007 5:37 am

Re: Should My Data HDD Be at /media or /mnt?

#4 Post by asqwerth »

Same as dolphin.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
Gaer Boy
Posts: 862
Joined: Sat Jun 06, 2009 6:06 am

Re: Should My Data HDD Be at /media or /mnt?

#5 Post by Gaer Boy »

If I recall correctly, this was a change some years ago. Fixed drives used to be mounted in /mnt but /media is now preferred. I think the Manual hasn't caught up with the change.

Gigabyte B550I Aorus Pro AX, Ryzen 5 5600G, 16GB, 250GB Samsung SSD (GPT), 2x1TB HDD (MBR), MX-21-AHS
Lenovo Thinkpad X220, dual-core i5, 4MB, 120GB Samsung SSD (GPT), MX-21

User avatar
davidy
Posts: 818
Joined: Sat Jul 03, 2021 1:59 pm

Re: Should My Data HDD Be at /media or /mnt?

#6 Post by davidy »

I was wondering the same actually. Media is definitely not what it used to be. I formatted a secondary hd from NTFS to EXT4 (Timeshift doesn't recognize ntfs), set it to automount at boot, and then it wouldn't let me write to it without going into the permissions and adding a user. Weird how it's at MEDIA but if you simply format and then mount it, it still refuses to work without going into some advanced permission settings. I think it has to do with changing the UUID, but still, after all that it should at least let you use it lol.
Sys76 LemurPro-mx-23.4, EliteMinis HM90-mx-21.3, Deskmini UM350-phoenixLite win10, Qnap 12tb nas, Protectli FW4C-opnsense(=゜ω゜)

zero privacy = zero security . All MX'd Up
UAP = up above people

User avatar
asqwerth
Developer
Posts: 7806
Joined: Sun May 27, 2007 5:37 am

Re: Should My Data HDD Be at /media or /mnt?

#7 Post by asqwerth »

if you format it as ext4 (or another linux file system) you need to change ownership from root to your user, with read and write permissions.

And if you had created/formatted that HDD with another distro that uses a different uid value for the user account, then you need to change that as well.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
AK-47
Developer
Posts: 1194
Joined: Sun Mar 24, 2019 7:04 pm

Re: Should My Data HDD Be at /media or /mnt?

#8 Post by AK-47 »

Why the symlink, instead of just making /home the mount point of the HDD?
You can also make own mount point (eg. /data) and symlink things to that.

User avatar
Bamber
Posts: 133
Joined: Sun Jul 01, 2018 9:11 am

Re: Should My Data HDD Be at /media or /mnt?

#9 Post by Bamber »

AK-47 wrote: Sun Jul 25, 2021 7:04 am Why the symlink, instead of just making /home the mount point of the HDD?
I was going to ask the same thing.

Kestrel
Posts: 23
Joined: Sat Sep 23, 2017 8:52 pm

Re: Should My Data HDD Be at /media or /mnt?

#10 Post by Kestrel »

AK-47 wrote: Sun Jul 25, 2021 7:04 am Why the symlink, instead of just making /home the mount point of the HDD?
You can also make own mount point (eg. /data) and symlink things to that.
I actually cannot remember what method I used when I installed the drives. I said it was symlink but now I am not so sure because I do have a vague recollection of reading a tutorial about setting up mount points for an additional data drive. It was quite a while back. I'll have to investigate what exactly I did!

Thanks for all the replies.
Dell Inspiron 530 Desktop
8gb DDR2 RAM @ 800mhz
Intel® Core™2 Duo Processor E8600 3.33 GHz
MX-21.3

Post Reply

Return to “Hardware /Configuration”