[SOLVED] Change /media/user/myflashdrive to /media/myflashdrive

Forum Forums General Software [SOLVED] Change /media/user/myflashdrive to /media/myflashdrive

  • This topic has 5 replies, 2 voices, and was last updated Apr 4-11:31 pm by kaye.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #34250
    Member
    kaye

      Hello friends!

      In Debian, my flash drive was automatically mounted at /media/user/myflashdrive.

      I was able to change it to /media/myflashdrive by adding the following line to /etc/fstab :

      UUID=2E7B-BA02 /media/myflashdrive vfat user,rw,noauto,x-systemd.device-timeout=5s 0 2

      I was wondering if it’s safe to do this in antiX. The /etc/fstab in antiX says:

      # Pluggable devices are handled by uDev, they are not in fstab

      It is important to me to be able to do it in antiX.

      Thank you for your time!

      • This topic was modified 3 years, 1 month ago by kaye.
      • This topic was modified 3 years, 1 month ago by kaye.
      #34325
      Member
      kaye
        Helpful
        Up
        0
        ::

        Not possible?

        #34326
        Member
        Xecure
          Helpful
          Up
          0
          ::

          Man, you should not just simply copy stuff from the net. Start learning and understanding. You just published an answer using fstab for your ntfs partition. Simply try to understand thst code and use the same knowledge to apply for this other case. Both problems are similar, and can be solved the same way.

          UUID=2E7B-BA02 /media/myflashdrive vfat user,rw,noauto,x-systemd.device-timeout=5s 0 2

          The above code kames no sense in antiX because antiX doesn’t use systemd. Delete it from your fstab. If you want to know how fstab would mount it, you can turn your computer on with your USB device connected (before turning on) and then you can modify it’s entry in fstab latter to whatever you want.

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

          #34328
          Member
          kaye
            Helpful
            Up
            0
            ::

            I’m just not sure if it’s ok to do the same in the /etc/fstab in antiX because the fstab file in antiX says:

            # Pluggable devices are handled by uDev, they are not in fstab

            you can turn your computer on with your USB device connected (before turning on) and then you can modify it’s entry in fstab latter to whatever you want.

            Done that. The flash drive is never listed in /etc/fstab

            Thank you!

            • This reply was modified 3 years, 1 month ago by kaye.
            #34338
            Member
            Xecure
              Helpful
              Up
              0
              ::

              I will give you a fool-proof step-by-step guide
              (user = your user; name-of-device = name of your device when mounted)
              0. Start your antiX system
              1. Make a copy of your fstab (just in case)
              2. Connect your USB device and let it automount to whatever is set (for what you are saying, to /media/user/name-of-device)
              3. Open a terminal and execute
              sudo make-fstab
              4. Open your /etc/fstab file and you should be able to see the USB device displayed there. Edit the mounting path from /media/user/name-of-device to /media/name-of-device. Save the file.
              5. Create the mounting folder for your device
              sudo mkdir /media/name-of-device
              6. Restart your computer.

              From now on, your USB device should mount to the created directory every time you connect your USB device.

              If you want all devices to mount this way, I am not sure how to do it. You may need to create some udev rule or maybe change some specific configuration file. I have no experience doing this. You may have to investigate this yourself or wait for some of the great experts in the forum to come in and very nicely explain what must be done.

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

              #34362
              Member
              kaye
                Helpful
                Up
                0
                ::

                It worked. Many thanks!!!

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