What reason for mounting this way?

Forum Forums New users New Users and General Questions What reason for mounting this way?

Tagged: ,

  • This topic has 4 replies, 4 voices, and was last updated Jun 6-6:16 am by dolphin_oracle.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22607
    Member
    kaye

      Hello Friends

      I was just wondering, is there a reason why antiX mounts hard drive partitions and flash drives differently than other distros?

      Correct me if I’m wrong but isn’t this the way antiX mounts:

      /media/<Windows partition>
      /media/<my-thumb-drive>
      /media/<another-linux-distro-partition>
      /media/<my_ntfs_data_partition>

      In other distros I think it’s

      /media/<user>/<Windows partition>
      /media/<user>/<my-thumb-drive>
      /media/<user>/<another-linux-distro-partition>
      /media/<user>/<my_ntfs_data_partition>

      1. Is there a reason for that?

      2. In other distros, I could open a file manager and I would just click on a partition on the left panel and that partition would be mounted. In antiX, I would have to open the file manager (spacefm) as root, and then click the partitions for them to be mounted; I cannot mount them if I do not open the file manager as root. Is this standard in antiX? And is this a safer way to mount partitions and devices?

      3. Also, in other distros I could execute a program that is saved in my data partition, which is an NTFS partition. I cannot do that in antiX; the executable program would need to be in the /home/<user> directory.

      These issues are not deal breakers for me, but I would appreciate your input, and maybe tips.

      Thanks very much!

      #22611
      Anonymous
        Helpful
        Up
        0
        ::

        re: Why?
        Each distro chooses how permissive (convenient) or restrictive (secure) its default mount policy will be.
        or (read the fstab manpage for details) a distribution intended for use on servers might not autopopulate /etc/fstab ~~ instead expecting each sysadmin to do so manually.

        For a glimpse into the “culture” maybe toward explaining how/why antiX has arrived at the status quo, I would point you to this archived 2016 discussion:
        archive :: automounting-devices-t6382.html

        During the betatesting in preparation for each release, changing the default policy has repeatedly been discussed. FWIW, I’ve loudly balked whenever “more permissive” is suggested.

        re: “I could open a file manager and…”

        Unlike many/most other distros, antiX full version preinstalls multiple file managers.
        rox-filer is a component of rox (manages desktop icons); spacefm, which can also optionally manage desktop icons, is also included because several forum participants, including me, have begged for its inclusion. A companion of spacefm is “udevil” (handles mount operations, facilitated via the spacefm gui). From reading the archived topic I linked above, hopefully you realize that rox and spacefm “aren’t necessarily on the same page, aren’t aware of each others’ mount policy rules”

        antiX Control Center }} Disks tab }} Configure automount
        ^—- provides a GUI toward facilitating changing/customizing the automounting rules/policy

        re: “in other distros I could execute a program that is saved in my data partition, which is an NTFS partition. I cannot do that in antiX”

        During bootup,
        /etc/udev/rules.d/90-fstab-automount.rules
        calls
        /sbin/make-fstab
        a script which populates /etc/fstab with mount directives for any not-yet-detailed partitions.

        If you “leafpad /sbin/make-fstab”, among the other details you’ll find are:

        SD_OPTIONS=noauto,exec
        NTFS_OPTIONS=noauto,noexec,uid=1000,gid=users,dmask=002,fmask=113
        VFAT_OPTIONS=noauto,uid=1000,gid=users,dmask=002,fmask=113
        SR_OPTIONS=noauto,exec,users

        You can (read the fstab manpage and), as sysadmin, alter the options for any any listed partition.
        You can choose to change “noexec” to “exec” for one of your ntfs partitions, or every one of your has-been-defined ntfs partitions… but doing so is a patently Bad Idea. If “why so” isn’t obvious to you, a websearch will yield plenty of lectures on the subject.

        #22612
        Anonymous
          Helpful
          Up
          0
          ::

          Hopefully someone familiar with LinuxMint or Ubuntu will post to followup about this.
          I don’t know whether in Mint these are the actual mount points, or bind remounts, or symlinks…

          In other distros I think it’s

          /media/<user>/<Windows partition>
          /media/<user>/<my-thumb-drive>
          /media/<user>/<another-linux-distro-partition>
          /media/<user>/<my_ntfs_data_partition>

          #22613
          Member
          fatmac
            Helpful
            Up
            0
            ::

            antiX Control Center }} Disks tab }} Configure automount
            ^—- provides a GUI toward facilitating changing/customizing the automounting rules/policy

            Always have to turn off automount, every install I do, I only mount externals when they are needed.

            Other disks in Linux always used to be mounted on /mnt, then they started using /media – just changing times & expectations. 🙂

            Linux (& BSD) since 1999

            #22627
            Forum Admin
            dolphin_oracle
              Helpful
              Up
              0
              ::

              Hopefully someone familiar with LinuxMint or Ubuntu will post to followup about this.
              I don’t know whether in Mint these are the actual mount points, or bind remounts, or symlinks…

              In other distros I think it’s

              /media/<user>/<Windows partition>
              /media/<user>/<my-thumb-drive>
              /media/<user>/<another-linux-distro-partition>
              /media/<user>/<my_ntfs_data_partition>

              they are real mount points, and usually auto-created by gvfs and udisks as needed.

              spacefm under debian buster does the same thing.

              but the antiX live system (and antiX in general) doesn’t use the gvfs or udisks for mounting those internal disks. and its using an older, but still valid, location for the mount points. basically, those mount points created by the live system exist before the user is logged in, so mounting to a /media/$user/mountpoint location would be invalid anyway.

              this can all be changed on an installed system if you wish, but it doesn’t make any sense to change it on the live system.

              • This reply was modified 3 years, 11 months ago by dolphin_oracle.
            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.