this post was submitted on 04 Jul 2024
11 points (86.7% liked)

Linux 101 stuff. Questions are encouraged, noobs are welcome!

1060 readers
1 users here now

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

founded 1 year ago
MODERATORS
 

Where should I mount my internal drive partitions?

As far as I searched on the internet, I came to know that

/Media = mount point for removable media that system do it itself ( usb drive , CD )

/Mnt = temporarily mounting anything manually

I can most probably mount anything wherever I want, but if that's the case what's the point of /mnt? Just to be organised I suppose.

TLDR

If /mnt is for temporary and /media is for removable where should permanent non-removable devices/partitions be mounted. i.e. an internal HDD which is formatted as NTFS but needs to be automounted at startup?

Asking with the sole reason to know that, what's the practice of user who know Linux well, unlike me.

I know this is a silly question but I asked anyway.

top 8 comments
sorted by: hot top controversial new old
[–] somnuz@lemm.ee 3 points 4 months ago (1 children)

Both of my SSDs are mounted via fstab in /mnt/ with x-gvfs-name so it looks a bit tidier.

But if this is not the way, I need some more education.

[–] gpstarman 1 points 4 months ago (1 children)

Yeah I did the same with GUI. But I'm asking about the mount point. Should I just mount it in /mnt and call it a day?

[–] somnuz@lemm.ee 2 points 4 months ago* (last edited 4 months ago) (1 children)

Using GUI still ads the mount point and chosen rules to fstab so it doesn’t matter how it got there, if it is in the fstab it will persist.

Still, the location. Everywhere I’ve checked, it just stated to go for /mnt/ and voilà. I guess the main thing is understanding what mounting is, as Windows just shows you a partition and treats it as its own tree, UNIX system treats everything as one giant tree, growing from / “root” directory. Technically, probably, you can mount it almost wherever you want to, but /mnt/ is just the “good / common practice”.

[–] gpstarman 2 points 4 months ago
[–] Zachariah@lemmy.world 3 points 4 months ago (1 children)

Good discussion here: https://askubuntu.com/questions/22215/why-have-both-mnt-and-media

The new standard is that /media is where the system mounts removable media, and /mnt is for you to mount things manually.

and

Another important difference not mentioned yet is that devices mounted under /mnt will not appear in Nautilus' left pane, whilst those mounted under /media (as well as auto-detected devices that are not mounted yet) will.

[–] gpstarman 2 points 4 months ago

Thank You for the details.

[–] MyNameIsRichard@lemmy.ml 2 points 4 months ago (1 children)

I mount my extra drives in sub-folders of /mnt, so for example /mnt/backup

[–] gpstarman 1 points 4 months ago