12.10 cifs shares not mounting after modifying /etc/fstab
- by Doug
From Ubuntu 11.04 to 12.04 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.