Cannot change fstab

Forum Forums New users New Users and General Questions Cannot change fstab

Tagged: 

  • This topic has 2 replies, 3 voices, and was last updated Apr 13-5:31 am by sybok.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #57437
    Member
    angeldeluz

      I need to change a fstab entry for get a ntfs partition automounted.
      I changed the option noauto to auto. But when I reboot the change is overwritten back by the system.
      Is that normal?
      How can I made permanent changes to fstab?

      System:
      Host: antix1 Kernel: 4.9.212-antix.1-amd64-smp x86_64 bits: 64
      Desktop: IceWM 1.6.5
      Distro: antiX-19.2.1_x64-base Hannie Schaft 29 March 2020
      Machine:
      Type: Desktop Mobo: BIOSTAR model: TA75M+ serial: <root required>
      BIOS: American Megatrends v: 4.6.4 date: 09/13/2011
      CPU:
      Topology: Dual Core model: AMD A4-3300 APU with Radeon HD Graphics
      bits: 64 type: MCP L2 cache: 1024 KiB
      Speed: 800 MHz min/max: 800/2500 MHz Core speeds (MHz): 1: 800 2: 800
      Graphics:
      Device-1: AMD Sumo [Radeon HD 6410D] driver: radeon v: kernel
      Display: x11 server: X.Org 1.20.4 driver: ati,radeon
      unloaded: fbdev,modesetting,vesa resolution: 1920×1080~60Hz
      OpenGL:
      renderer: AMD SUMO2 (DRM 2.49.0 / 4.9.212-antix.1-amd64-smp LLVM 7.0.1)
      v: 3.3 Mesa 18.3.6
      Audio:
      Device-1: AMD BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G
      series]
      driver: snd_hda_intel
      Device-2: AMD FCH Azalia driver: snd_hda_intel
      Sound Server: ALSA v: k4.9.212-antix.1-amd64-smp
      Network:
      Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
      driver: r8169
      IF: eth0 state: up speed: 100 Mbps duplex: full mac: 00:30:67:d0:1f:00
      Drives:
      Local Storage: total: 223.57 GiB used: 38.30 GiB (17.1%)
      ID-1: /dev/sda vendor: Western Digital model: WDS240G2G0A-00JH30
      size: 223.57 GiB
      Partition:
      ID-1: / size: 2.65 GiB used: 2.6 MiB (0.1%) fs: overlay source: ERR-102
      ID-2: swap-1 size: 3.93 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda4
      Sensors:
      System Temperatures: cpu: 19.5 C mobo: N/A gpu: radeon temp: 23 C
      Fan Speeds (RPM): N/A
      Info:
      Processes: 150 Uptime: 45m Memory: 3.35 GiB used: 921.9 MiB (26.9%)
      Shell: bash inxi: 3.0.36

      #57441
      Forum Admin
      anticapitalista
        Helpful
        Up
        0
        ::

        Are you running live?

        If so, this might help

        https://www.antixforum.com/forums/topic/question-how-to-run-executable-file-from-a-usb-drive/

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #57491
        Member
        sybok
          Helpful
          Up
          0
          ::

          Hi,

          in case you have an installed antiX system, permanent change in ‘/etc/fstab’ can be done by starting your text editor of preference using elevated priviliges.
          The elevated priviliges is required because the file ‘/etc/fstab’ is owned by the user ‘root’.

          1) Apply only if the NTFS partition not present in ‘/etc/fstab/’:
          Determine the UUID of your NTFS partition, e.g. [execute in terminal]
          blkid
          which lists all partitions.
          Then create a mount-point (directory) provided it does not exist yet.
          2) Back-up (1st line) and edit the NTFS partition (2nd line) [execute in terminal]:

          sudo cp /etc/fstab /etc/fstab-backup
          sudo <text-editor> /etc/fstab

          <text-editor> can be e.g. nano, vim and others.
          3) Re-mount:
          Unmount and mount, in some cases
          sudo mount --all
          may be sufficient to do that task.

          • This reply was modified 2 years ago by sybok.
          • This reply was modified 2 years ago by sybok. Reason: fix the cp command with sudo
        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.