NTFS share not mounting on boot
-
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
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. -
Network or name resolution not available at this point in time during the boot process?
-
@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. -
@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.
-
@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, ...
-
@thwr That is why i put _netdev there.
-
@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
-
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.