Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 71826  / 3 Years ago, fri, october 22, 2021, 7:52:53

I've been able to mount my nas shares by first making directories in the /media folder, then :



sudo gedit /etc/fstab 


to include the following line for each share I want to auto-mount;



//servername/sharename  /media/windowsshare  cifs  guest,uid=1000,iocharset=utf8,codepage=unicode,unicode  0  0


Now, however, I upgraded to 12.10, and suddenly I'm not able to mount the shares after saving /etc/fstab and sudo mount -a, giving me this error:



Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(22): Invalid argument


When in Nautilus, The shares are visible under the network tab, unmounted, and when I click on a share, I get the following message:



mount: only root can mount //192.168.1.71/photos on /media/photos


I checked to ensure smbfs was installed, and no problems there. I'm stumped.


More From » mount

 Answers
1

Not sure if this is the correct way to mount but it certainly works for me, seeing as I was having the exact same issue going from ubuntu 12.04 to 12.10.



So try:



//servername/sharename /media/windowsshare cifs guest,users   


I also use the noauto option since I'm not always on the same network I want to mount my shares manually. My exact fstab entry for my system is as follows...



//servername/sharename /home/USER/shares/I cifs guest,users,noauto


This entry was the only which would allow me to use a Torrent client to download straight to my external HDD's over my home network.



Also, maybe you should try mounting the shares in your home directory instead of /media which is a root folder.


[#35008] Saturday, October 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
edgehogight

Total Points: 272
Total Questions: 113
Total Answers: 99

Location: Northern Mariana Islands
Member since Sun, Jul 19, 2020
4 Years ago
;