Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8015

Beginners • Re: /etc/fstab including userid

$
0
0
Well, I've made progress - by switching from NFS to CIFS

I can acess the NAS using

Code:

sudo mount -t cifs -o username=myuser,password=mypassword //192.168.0.233/SharedData/dcc /home/pi/Mona2

Guess where to look?
But now I can't figure out how to translate this into an fstab entry

Trying:

Code:

//192.168.0.233:/SharedData/dcc /home/pi/Mona2 cifs rw,relatime,vers=2.1,cache=strict,username=myuser,password=mypassword,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.233,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,reparse=nfs,rsize=1048576,wsize=1048576,bsize=1048576,retrans=1,echo_interval=60,actimeo=1,closetimeo=1 0 0
Doesn't work - and gives no errors
HOORAHHHH!!!!!

Code:

//192.168.0.233/SharedData/!inventory /home/pi/Mona2 cifs credentials=/home/pi/.smbcredentials,_netdev,uid=1000,gid=1000,iocharset=utf8 0 0
WORKS :)

I just needed to learn about cifs and smb credentials

Statistics: Posted by thagrol — Fri Jan 30, 2026 8:15 pm



Viewing all articles
Browse latest Browse all 8015

Trending Articles