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.

-7 points

that is what the /srv mount point is for. I mount all my external HDDs from there.

permalink
report
reply
10 points

That is for “Site-specific data served by this system” like /srv/www. Can mount anything anywhere of course.

permalink
report
parent
reply
7 points

/srv contains site-specific data which is served by this system.

https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#srvDataForServicesProvidedBySystem

permalink
report
parent
reply
3 points

I myself have separate /Disks folder where I mount all my internal disks on boot. Not sure how “standard” such setup is, but it helped me keep my NTFS and Linux disks tidy and out of my way. For what I know you can mount your drives anywhere you like

permalink
report
reply
1 point
*

Seems Clean.

No Disadvantages? Like some stubborn program says I will only work if its under /mnt?

permalink
report
parent
reply
3 points
Deleted by creator
permalink
report
reply
1 point

Even if I switch my drives or folder names

You don’t mean changing name of ‘Videos’ right?

entire drive is mounted to /media first, and then all subdirectories are mounted where I need them.

So you mount directories accordind to your need not drives and partitions? Seems flexible.

then your cannot boot into your system anymore.

Why? Are you talking about removing the drive that contains /?

permalink
report
parent
reply
2 points

Oh, I deleted my reply a while ago. But you seem to be able to see it still.

The Videos name change is meant, if I mount the folder on my drive to /home/name/Videos, then next time I mount anything to that place when replacing the drive, then /home/name/Videos will stay the same. That means any application using that path won’t change. That’s the majority how I use my multiple internal drives. I just mount them to fixed positions I use for decades, like in my home.

I prefer directories over partitions, because I can easily rename directories and place them to other places without ever partitioning or resizing again.

Why? Are you talking about removing the drive that contains /?

About the not being able to boot, no I don’t mean the drive that contains the root /. When I mount drives with the /etc/fstab file, then the system tries to mount them on boot time. If the directory that is mounted or the drive is no longer available or I unplug it (lets say when I replace my Documents drive), then at boot time the system tries to mount something that does no longer exist in their view, according to the fstab file.

By default (at least on my current system EndevaourOS, based on Arch) the system stops booting. It gives me the option to ignore that mount entry, so I can boot again. But if I had not this option to ignore, then one has to edit the /etc/fstab file to outcomment those sections; in example with a boot cd or usb drive. Normally not a problem, but just telling it here, so in case you know what to do (if you ever go that route).

permalink
report
parent
reply
4 points
*

Adding the nofail option to the fstab entry will continue boot if the drive isn’t present.

permalink
report
parent
reply
3 points

Thank You.

for some reason Photon UI still shows the deleted comment with just trash can symbol.

permalink
report
parent
reply
3 points

If I remember correctly mnt is for static media that you expect to always be present and media is for removable media which may come and go.

permalink
report
reply
2 points

This makes sense.

permalink
report
parent
reply
0 points

My Files, which are inside the partition mounted in /mnt/something has root as Owner. So When I try to move something to Trash, it’s not allowing me to do, Only perma delete. When saw properties it said owner is root.

Is it because mounted at /mnt?

Files under /media seems fine. and says it’s owner is ‘me’

permalink
report
parent
reply
2 points

You probably just need to chow. The directory

permalink
report
parent
reply
1 point

Thank you.

permalink
report
parent
reply
6 points

Not a pro by any means, but I mount my internal drives at /mnt. Its also where I mount my NAS

AFAIK mount point doesn’t matter

permalink
report
reply
1 point

Thank You.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 9.5K

    Monthly active users

  • 5.9K

    Posts

  • 162K

    Comments