[SOLVED] how to mount automatically a partition

Forum Forums New users New Users and General Questions [SOLVED] how to mount automatically a partition

  • This topic has 5 replies, 2 voices, and was last updated Apr 16-7:25 am by Xecure.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #34716
    Member
    paulineb

      hello, is it possible to have a partition automatically mounted at startup?

      • This topic was modified 3 years ago by paulineb.

      pb

      d2Vsa2pnd3JlaW9ld2FyaWpob2FpHnJaxaCg

      #34723
      Member
      Xecure
        Helpful
        Up
        0
        ::

        Yes. First enable automount and add the partitions to your fstab file.

        1. Enabling automount (I think it works mainly for external partitions):
        1a. Control Center > Disk > Configure Automount.
        1b. Edit the file ~/.desktop-session/automount.conf

        2. Updating fstab
        2.1. Make a copy of your fstab (located in /etc/fstab just in case)
        2.2. Connect the devices and manually mount the partitions you wish will automount
        2.3. Open a terminal and execute
        sudo make-fstab
        2.4. Open your /etc/fstab file (with root privilegies) and check if the partitions are added. Change “noauto” to “auto” for all interested partitions. Save file once finished editing.

        antiX Live system enthusiast.
        General Live Boot Parameters for antiX.

        #34798
        Member
        paulineb
          Helpful
          Up
          0
          ::

          i followed your instructions and they worked.
          thanks for help!
          something weird happened: i have now ALL the partitions mounted …
          also ones i didn’t choose at 2.1 .

          if it got too complicated to fix, i can mark the thread solved anyway.

          pb

          d2Vsa2pnd3JlaW9ld2FyaWpob2FpHnJaxaCg

          #34802
          Member
          Xecure
            Helpful
            Up
            0
            ::

            something weird happened: i have now ALL the partitions mounted …

            Make sure to only change noauto to auto for the partitions you WANT mounted and not all partitions.

            Worst case scenario, restore your fstab with the one you had originally and that you saved somewhere

            2.1. Make a copy of your fstab (located in /etc/fstab just in case)

            and start over (after restarting).

            From there you could identify the partition you want automounted and manually add the info to the fstab instead of using make-fstab to update everything. Reading this file you can learn a lot about how partitions are mounted on your system.

            antiX Live system enthusiast.
            General Live Boot Parameters for antiX.

            #34804
            Member
            paulineb
              Helpful
              Up
              0
              ::

              i forgot to save the file!
              🙂

              ok, it’s fine anyway, i mark the thread solved.

              … i am trying to use command line whenever possible,
              but it in case, i found in antix repos gnome disks.

              thanks for help!

              pb

              d2Vsa2pnd3JlaW9ld2FyaWpob2FpHnJaxaCg

              #34810
              Member
              Xecure
                Helpful
                Up
                0
                ::

                You can always edit manually fstab and delete all lines related to partitions you do not want antiX to see.

                i forgot to save the file!
                🙂

                This happened a lot to me. Now, every time I want to change something, I always make a copy of the original files. You never know when a mistake will force you to reinstall the program/system and must start from zero.

                Good luck with your system!

                antiX Live system enthusiast.
                General Live Boot Parameters for antiX.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.