12.10 cifs shares not mounting after modifying /etc/fstab
Posted
by
Doug
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Doug
Published on 2012-10-12T00:05:40Z
Indexed on
2012/10/13
15:54 UTC
Read the original article
Hit count: 327
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.
© Ask Ubuntu or respective owner