Hi! Recently i formated sda2 which it was a partition with NTFS. I want to automount it by configuring fstab.
I see that one place is to mount it in /run/media/algent/datadisk, where datadisk is the optional name that I gave for the directory to mount the new partition.
The other place is to mount it /mnt/datadisk.
Which do you recommend and why?

Probably I can use it for solbuild images and other stuff.

    Usually you put permanent mount points in /mnt/<something> or eventually /media/<something>
    /run/media/<usrename>/ is mainly used by apps that mount something in the user space i.e. when a usb stick is plugged on the computer.

    As far as I now /media is for automatic mounting done by the system for example plugging in a USB drive, /mnt is for user's that want to mount internal or permanent partitions.

    algent I created a /drive where all hard drives = partitions mount, using from day 1 with Solus. 🙂

    In essence as CraigMatze said...anywhere you like, though some places are probably better than others (ie don't use an area that some other part of system does).

      kyrios If you like...please enjoy 🙂 However, the guide is to create a directory and mount over it...if you prefer /bin/newdir as your mount point...all power to you.
      I mean I wouldn't...but if you want to, feel free. I KNOW you know better, but if someone does something stupid, they learn, right ?

        dbarron Yes we all learn from our mistakes!
        But still I try to avoid making (some of) them... or not because I said something wrong for /mnt
        See reference here for /mnt and there for /media

          kyrios It is interesting that nowhere it is mentioned about what location is good to add other permanent discs.

          /mnt : Mount point for a temporarily mounted filesystem
          /media : Mount point for removeable media

          both locations are for different purpose. I like @CraigMatze idea of creating /drive folder for mounting this discs or partitions.

            algent It's basically because that's just convention. There's no rules or probably even best practices. I "grew up" using /mnt, but I've seen people habitually use all sorts of mount points.

            algent It's also because it depends on the aim of the permanent partition.
            For example, an enterprise may use an image to install its servers and have the home directories on a NFS volume, so the server could be reinstalled without the user data & settings are touched. -> This permanent mount point would be /home.
            Personally I have a few mount points for my NAS on /mnt/... backup, multimedia, public, ... I consider them as permanent although they are not since they are only available when my laptop is @ home and connected to the LAN.

            The purpose of this partition is to use it as a place for solbuild to practice building packages. It is important for me that monting to/mnt or somewhere else like /drive, it is not a problem.

              algent Personally I build packages into VMs I have repo virtual disk image (.vdi) that I share across the few virtual machines I use and I always mount it on /repo

              I think the suggested location in Debian distros (and maybe standard) is /srv for permanent disks.

                Nibb31 That's for files you're serving out to your LAN like file-shares etc.