I've just moved over to Linux (Ubunutu 18.04) from Windows.
I have a WDNAS which I have mounted and works fine here.
mkdir mnt/NAS
sudo nano /etc/fstab
//192.168.1.17/wd_nas mnt/wdnas cifs credentials=/home/ubuntu/login.cred,uid=1000,gid=1000 0 0
Running sudo mount -a
mounts as expected and I can see the share fine. It also appears in the gui Nautilus file manager.
The issue is, after a reboot the mount appears to have gone. It doesn't appear in file manager. It only works when run sudo mount -a
.
df -h
shows it mounted. //192.168.1.17/wd_nas 3T 1.2T 1.5T 30% /mnt/wd_nas
cat /var/log/syslog/ |grep wd_nas
Mar 6 20:51:22 ubuntu systemd[1]: Mounting /mnt/wd_nas
Mar 6 20:51:22 ubuntu systemd[1]: Mounted /mnt/wd_nas
If I run ls -la /mnt/wd_nas
I can see the files I have placed there as test but if I navigate via the gui (nautilus file manager) I can't see anything?
So my first assumption was permissions but I checked and confirmed. Directories and all subs are chown to user with rw access. Googling frantically for days, I've tried almost everything I could find. Even topics relating the network not booting before fstab is being run, so adding _netdev and even configuring systemd. I've even tried to create a bash script to sleep for 20s and run mount -a via cron at reboot. Nothing! Although it doesn't at all appear to be related.
Now I'm here. Would you be able to help?
nofail
option? Other than that, your fstab entry is similar to mine. – Organic Marble Mar 7 at 1:22vers=1.0
or evenvers=2.0
.. And so many others with no luck :( I've been told it may be relating to the file system on the wd nas? but I'm sure it supports Linux and even when I runsudo mount - a
it does actually mount just not automatically on boot. – Maverick32 Mar 7 at 8:02