I am trying to mount a Windows network folder. I have the Windows folder set to share with everyone for the read only format. I believe this lets anyone on the local network access the file.
Next, in terminal:
silver@TheSilverLaptop:~$ mkdir ~/desktop/Windows-Share sudo mount.cifs //windows-computer-name/folder-name
terminal responds with:
mkdir:cannot create directory '/home/silver/desktop/Windows-Share' No such file or directory
I don't understand why it says this. Of course there is no directory, that's why I am asking to create it.
mkdir: cannot create directory 'sudo': File exists
mkdir: cannot create directory 'mount.cifs': File exists
mkdir: cannot create directory '//windows-computer-name/folder-name' no such file or directory.
Note: for windows-computer-name/folder-name I have plugged in the name of my Windows computer and the folder on my windows computer..
Capitalization matters when it comes to Linux based OSes. The folder for the desktop is
~/Desktop
so your command should be:Then to mount, it is source of mount then to destination of mount as a separate command.
It can all be done as one type in command separated with && like so:
Please see https://wiki.ubuntu.com/MountWindowsSharesPermanently for username and password settings that should be required by Windows shares.