Hi,
System : Debian Testing Trixie
cifs-utils installed
It's been sometimes, probably weeks now, I'm fighting with mount in my fstab in order to access a folder on my Synology.
Sometimes I log in and it works, sometimes it does not with the infamous message mount.cifs: permission denied.
Sometimes it works afterward, once logged in, with a sometimes not.
Thought I could ask for some advice :p
FYI : access from W10, W11 with ethernet OK (on the very same computer dual booting) and more interesting, access OK from popos! with WIFI (on a thinkpad).
For starter I thought I could just reuse the syntax used in the popos fstab.
Here it is:
I remember I had some trouble on popos until I added sec=ntlmssp. Never failed a single time since.
So, I thought, why not use that on my new debian, right? I was wrong.
It worked a few times and then it did not anymore.
Then I started to read articles, threads, redit stuff, docs, videos, etc. with every time some new hint :
1. Options: sometimes I thought I finally had the right options (adding this, removing that): long story short, like before, worked one, two, three sessions and then bang, not anymore.
2. Credentials: check and recheck the content of my .smbcred, use 'username' and not 'user', added 'domain=WORKGROUP' just in case (have no domain on my LAN).
3. Permissions: checked the permissions of the file .smbcred (obviously created with my user): 604. Checked also permissions on the folder /media/nas_video (owner root): 755
4. Network: dmesg shows:I have read that sometimes the system attempts to mount the network drive before the network interface is ready. Which makes sense. Read that _netdev can help. Tried it and didn't help.
So, right now it does not work. I know if I restart the system it might work right away or the next session. Real weird. I guess I'm missing something here.
Content of my fstab today:
Sorry for the long read. Any suggestion?
Eric
System : Debian Testing Trixie
cifs-utils installed
It's been sometimes, probably weeks now, I'm fighting with mount in my fstab in order to access a folder on my Synology.
Sometimes I log in and it works, sometimes it does not with the infamous message mount.cifs: permission denied.
Sometimes it works afterward, once logged in, with a
Code:
mount -a
Thought I could ask for some advice :p
FYI : access from W10, W11 with ethernet OK (on the very same computer dual booting) and more interesting, access OK from popos! with WIFI (on a thinkpad).
For starter I thought I could just reuse the syntax used in the popos fstab.
Here it is:
Code:
//172.16.100.15/Video /media/nas_video cifs credentials=/home/myuser/.smbcred,iocharset=utf8,uid=1000,gid=1000,forceuid,forcegid,sec=ntlmssp 0 0
I remember I had some trouble on popos until I added sec=ntlmssp. Never failed a single time since.
So, I thought, why not use that on my new debian, right? I was wrong.
It worked a few times and then it did not anymore.
Then I started to read articles, threads, redit stuff, docs, videos, etc. with every time some new hint :
1. Options: sometimes I thought I finally had the right options (adding this, removing that): long story short, like before, worked one, two, three sessions and then bang, not anymore.
2. Credentials: check and recheck the content of my .smbcred, use 'username' and not 'user', added 'domain=WORKGROUP' just in case (have no domain on my LAN).
3. Permissions: checked the permissions of the file .smbcred (obviously created with my user): 604. Checked also permissions on the folder /media/nas_video (owner root): 755
4. Network: dmesg shows:
Code:
CIFS: Attempting to mount //172.16.100.15/VideoCIFS: VFS: Error connecting to socket. Aborting operation.CIFS: VFS: cifs_mount failed w/return code = -101
So, right now it does not work. I know if I restart the system it might work right away or the next session. Real weird. I guess I'm missing something here.
Content of my fstab today:
Code:
//172.16.100.15/Video /media/nas_video cifs auto,_netdev,vers=3.0,credentials=/home/myuser/.smbcred,iocharset=utf8,uid=1000,gid=1000,forceuid,forcegid 0 0
Sorry for the long read. Any suggestion?
Eric
Statistics: Posted by ebo+53 — 2025-02-13 19:33 — Replies 2 — Views 110