ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    NTFS share not mounting on boot

    IT Discussion
    3
    8
    843
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • momurdaM
      momurda
      last edited by

      This is a debian 9.x vm.
      /etc/fstab entry:
      //server/share /mnt/pdfs cifs _netdev,ro,credentials=/home/sysadmin/.smbcreds 0 0
      nothing in dmesg
      0_1515699034443_066610bf-787c-4d47-8ef6-1320d6784d2b-image.png

      After running mount -a, mount returns
      //server/share on /mnt/pdfs type cifs (ro,relatime,vers=1.0,cache=strict,username=linux,domain=MYDOMAIN,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.90.100,file_mode=0755,dir_mode=0755,nounix,serverino,mapposix,rsize=61440,wsize=16580,echo_interval=60,actimeo=1)
      and the ntfs share is mounted and readable.
      I have no idea why it isnt automounting though.

      1 Reply Last reply Reply Quote 0
      • thwrT
        thwr
        last edited by thwr

        Network or name resolution not available at this point in time during the boot process?

        thwrT momurdaM 2 Replies Last reply Reply Quote 0
        • thwrT
          thwr @thwr
          last edited by thwr

          @thwr said in NTFS share not mounting on boot:

          Network or name resolution not available at this point in time during the boot process?

          yes, could be. Found this (German) post that suggest to run mount -a (or your specific smb mount command) at some later point in time. /etc/rc.local or something else.

          dafyreD 1 Reply Last reply Reply Quote 0
          • dafyreD
            dafyre @thwr
            last edited by

            @thwr said in NTFS share not mounting on boot:

            @thwr said in NTFS share not mounting on boot:

            Network or name resolution not available at this point in time during the boot process?

            yes, could be. Found this (German) post that suggest to run mount -a (or your specific smb mount command) at some later point in time. /etc/rc.local or something else.

            You could try to set it up as a crontab with an @reboot tag...

            @reboot sleep 30;mount -a
            

            or something to that effect.

            thwrT 1 Reply Last reply Reply Quote 0
            • thwrT
              thwr @dafyre
              last edited by

              @dafyre said in NTFS share not mounting on boot:

              @thwr said in NTFS share not mounting on boot:

              @thwr said in NTFS share not mounting on boot:

              Network or name resolution not available at this point in time during the boot process?

              yes, could be. Found this (German) post that suggest to run mount -a (or your specific smb mount command) at some later point in time. /etc/rc.local or something else.

              You could try to set it up as a crontab with an @reboot tag...

              @reboot sleep 30;mount -a
              

              or something to that effect.

              That's dangerous as a timeout does not guarantee a success. Running the command at a later boot stage does.

              What could go wrong? File system checks, blocking input during boot, ...

              1 Reply Last reply Reply Quote 0
              • momurdaM
                momurda @thwr
                last edited by

                @thwr That is why i put _netdev there.

                thwrT 1 Reply Last reply Reply Quote 1
                • thwrT
                  thwr @momurda
                  last edited by

                  @momurda said in NTFS share not mounting on boot:

                  @thwr That is why i put _netdev there.

                  Ah, ok. Check this maybe: https://askubuntu.com/a/823022

                  1 Reply Last reply Reply Quote 0
                  • momurdaM
                    momurda
                    last edited by

                    Got it
                    I added to fstab
                    x-systemd.automount instead of _netdev but still wouldnt work
                    and enabled this service
                    systemctl enable systemd-networkd-wait-online.service
                    and the share is mounted on boot.
                    In fact, i can now remove x-systemd.automount and replace with _netdev again and it works.
                    So i just had not enabled this service.

                    1 Reply Last reply Reply Quote 2
                    • 1 / 1
                    • First post
                      Last post