Score:0

Mount CIFS doesn't work after reboot but will work from command line

us flag

In /etc/fstab I have the following

//10.10.1.191/TVENALL /mnt/medias/tv/TVENALL cifs auto,defaults,nofail,vers=3.0,credentials=/etc/plex.cred,uid=master 0 0

In journalctl -b I see the following

Aug 14 13:50:03 hsplx181 kernel: CIFS VFS: \\10.10.1.191 Error -104 sending data on socket to server
Aug 14 13:50:03 hsplx181 kernel: FS-Cache: N-cookie d=000000003fdc3b12 n=00000000b7faa4cf Aug 14 13:50:03 hsplx181 kernel: FS-Cache: N-key=[8] '0200008b0a0a01c4' Aug 14 13:50:03 hsplx181 kernel: FS-Cache: Duplicate cookie detected Aug 14 13:50:03 hsplx181 kernel: CIFS VFS: \10.10.1.196 Error -104 sending data on socket to server Aug 14 13:50:03 hsplx181 kernel: CIFS VFS: cifs_mount failed w/return code = -2 Aug 14 13:50:03 hsplx181 mount[1142]: mount error(2): No such file or directory

also this

Aug 14 13:50:03 hsplx181 systemd[1]: mnt-medias-tv-TVENALL.mount: Mount process exited, code=exited, status=32/n/a
Aug 14 13:50:03 hsplx181 systemd[1]: mnt-medias-tv-TVENALL.mount: Failed with result 'exit-code'. Aug 14 13:50:03 hsplx181 systemd[1]: Failed to mount /mnt/medias/tv/TVENALL.
Aug 14 14:07:19 hsplx181 kernel: CIFS VFS: parse_server_interfaces: malformed interface info
Aug 14 14:07:19 hsplx181 kernel: CIFS: Attempting to mount //10.10.1.191/TVENALL

But If I run sudo mount -av it works with any error.

Ubuntu Server 20.04.06 LTS

Any help will be appreciated.

Thanks

Terrance avatar
id flag
After you mount it manually, try running `cat /etc/mtab | grep 10.10.1.191` and you should see a line that you can copy and paste to your `/etc/fstab` file replacing the line you already have.
Helder S. avatar
us flag
I already tried the noauto,x-systemd.automount without any success even the _netdev But I'll try out the Terrance command suggestion to get the working mtab info Thanks
Helder S. avatar
us flag
Tried the /cat/etc/mtab no success... Doesnt work at reboot
Helder S. avatar
us flag
I revisited Waltinator comment I simplified my line Before: //10.10.1.191/TVENALL /mnt/medias/tv/TVENALL cifs auto,defaults,nofail,vers=3.0,credentials=/etc/plex.cred,uid=1000 0 0 After: //10.10.1.191/TVENALL /mnt/medias/tv/TVENALL cifs credentials=/etc/plex.cred,_netdev,noauto,x-systemd.automount 0 0 It's working now! wasn,t before with the _netdev value.
Terrance avatar
id flag
Feel free to write up your own answer. It can help others. Make sure that you give as much details in your answer as you can so that others can follow if they bump into the same thing.
Helder S. avatar
us flag
@Terrance I would... but don't see how I can do that! :)
Terrance avatar
id flag
Ah, I see that it got closed. :( Looks like the Community bot caught your comment and backed up the vote to close. One thing that threw me off is that I forgot that I am using NFS4 and not CIFS because I don't like the bug I found where my 16TB mount gives me incorrect free space. I ended up filing a bug on it. https://askubuntu.com/questions/1058815/nfs-vs-cifs-show-two-different-sizes-of-used-space
Helder S. avatar
us flag
@Terrance thanks and I'll take a look at your post
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.