You are not logged in.

#1 2014-07-10 13:14:11

dvdemon12
Member
Registered: 2014-07-10
Posts: 4

Network storage in fstab not mounted automatically

Hello,

I have this entry in fstab, DNS323 network storage
//192.168.1.XX/Volume_1/                  /media/DNS323  cifs   _netdev,gid=users,credentials=/root/.smbcredentials,sec=lanman,iocharset=utf8,file_mode=0777,dir_mode=0777  0  0

I can mount it manually without any issues (mount -a)
But it won't mount automatically on boot

Any suggestions?

Thanks

Offline

#2 2014-07-10 17:19:25

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Network storage in fstab not mounted automatically

Probably fails because there's no connection (yet).

Offline

#3 2014-07-11 13:21:03

saivert
Member
Registered: 2014-06-13
Posts: 19

Re: Network storage in fstab not mounted automatically

If you run systemd you can just add noauto,x-systemd.automount to the mount options and systemd will mount it later.
This is what I do for my NFS mounts and I have no issues with it.

Offline

#4 2014-07-13 06:04:01

dvdemon12
Member
Registered: 2014-07-10
Posts: 4

Re: Network storage in fstab not mounted automatically

@saivert
worked like a charm, thanks a lot

Offline

#5 2014-07-13 06:08:01

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Network storage in fstab not mounted automatically

You might also want to add 'nofail' just in case the NFS server is down.

Offline

#6 2014-07-13 06:41:20

pekka
Member
Registered: 2011-07-21
Posts: 104

Re: Network storage in fstab not mounted automatically

or systemd wait network is up and then mount nfs


systemctl enable systemd-networkd-wait-online

Offline

Board footer

Powered by FluxBB