Code: Select all
//192.168.1.2/PlexContent /home/pi/Desktop/MyBookLive cifs username=Plex,password=raspberry 0 0Code: Select all
//192.168.1.2/PlexContent /home/pi/Desktop/MyBookLive cifs username=Plex,password=raspberry 0 0Code: Select all
//192.168.1.2/PlexContent /home/pi/Desktop/MyBookLive cifs uid=pi,gid=pi,username=Plex,password=raspberry 0 0Thanks for the reply. I've changed it to that and now it isn't even mounting on boot.DougieLawson wrote:Change it toCode: Select all
//192.168.1.2/PlexContent /home/pi/Desktop/MyBookLive cifs uid=pi,gid=pi,username=Plex,password=raspberry 0 0
Thanks for that. Where would I put that line? Sorry, first time doing this.DougieLawson wrote:You may need to put the numeric uid and gid values in the fstab line
awk -F":" '/pi/ {print "uid="$3",gid="$4}' /etc/passwd
that is a command line you are supposed to execute in terminal and it will open the fileJakosaur wrote:Where abouts in the line would I put that?
Thanks for that explanation. The 2 numbers were both 1000 so I put them in my fstab line and it still doesn't mount on boot sadly.KLL wrote:that is a command line you are supposed to execute in terminal and it will open the fileJakosaur wrote:Where abouts in the line would I put that?
/etc/passwd for you, find the line start with user name: pi
separate the line by all that ':' to find, give back the 3d and 4th occurrance in a nice to read/understand
uid= gid= text string.
so if you just do / execute in terminal / a
cat /etc/passwd
you can read the line for pi and find the 2 numbers you are supposed to use in your fstab line
like uid=1000,gid=1000
still need to thank @DougieLawson because making that line for you is quite some effort.
Code: Select all
//192.168.1.2/PlexContent /home/pi/Desktop/MyBookLive cifs uid=1000,gid=1000,username=Plex,password=raspberry 0 0i have one question? sure the NAS has the password raspberry?Jakosaur wrote:I can see all the files on my NAS.Code: Select all
//192.168.1.2/PlexContent /home/pi/Desktop/MyBookLive cifs username=Plex,password=raspberry 0 0
Yes. I setup the account previously and can access the NAS via Windows using those credentials. For some reason now that original fstab line doesn't work.KLL wrote:back to the original / working fstab linei have one question? sure the NAS has the password raspberry?Jakosaur wrote:I can see all the files on my NAS.Code: Select all
//192.168.1.2/PlexContent /home/pi/Desktop/MyBookLive cifs username=Plex,password=raspberry 0 0
( because there should not be the RPI user pi password??? )
Code: Select all
sudo mount -t cifs -o username=Plex,password=raspberry //192.168.1.2/PlexContent /home/pi/Desktop/MyBookLiveCode: Select all
//raspi1/hdd1 /mnt/raspi1 cifs user=pi,password='',x-systemd.automount 0 0
Thanks for that. I've got it automatically mounting again usingErnst wrote:This is what I have entered in the /etc/fstab:Code: Select all
//raspi1/hdd1 /mnt/raspi1 cifs user=pi,password='',x-systemd.automount 0 0
Code: Select all
//192.168.1.2/PlexContent /home/pi/Desktop/NAS cifs username=Plex,password=raspberry,x-systemd.automount 0 0