Create symbolic link in a mounted Nas
Posted: Wed Aug 07, 2019 9:09 am
I hope you can help me solve my problem. My Raspberry mounts a NAS in the path /home/pi/NAS at startup. The /etc/fstab file is configured as follows:
To avoid duplicating files, I decided to create symbolic links with the command:
but I get the error message:
However, the same command works locally by running:
work perfectly!
Where am I wrong? Can there be an error in the /etc/fstab file?
Thanks in advance
Code: Select all
//192.168.1.2/share /home/pi/NAS cifs username=user,password=password,vers=1.0,sec=ntlm,file_mode=0777,dir_mode=0777,uid=pi,gid=pi,forceuid,forcegid,_netdev,x-systemd.automount 0 0Code: Select all
ln -s /home/pi/NAS/Folder1/file.mp4 /home/pi/NAS/Folder2/file.mp4Code: Select all
ln: creation of the symbolic link '/home/pi/NAS/Folder2/file.mp4' failed: It is not a directoryCode: Select all
ln -s /home/pi/Folder1/file.mp4 /home/pi/Folder2/file.mp4Where am I wrong? Can there be an error in the /etc/fstab file?
Thanks in advance