network mount "no such file or directory" on write, ok read

Hi,

running suse 11.1

  1. I connect to the machine from which I want to mount, provide u&p.
    whoami: uname
    id: 1001, 1001, …

  2. I got this in fstab:

//192.168.100.100/files /mnt/files cifs rw,username=uname,password=passwd,_netdev,uid=uname,gid=1001 0 0
mount -a
  1. Now I do a less
/mnt/files/file.txt

which works great. The file is there.

  1. error comes here
    Now I do a
nano /mnt/files/file.txt

and type in “asd”.
Try and save the file and it gives me: Error writing /mnt/files/file.txt: No such file or directory.

mount -v prints no errors.

Thanks in advance for your time and help.

Maybe you have to check if /mnt is writable for your user.

On Wed February 11 2009 08:26 am, Viviano Guastalla wrote:

>
> Maybe you have to check if /mnt is writable for your user.
>
>
nullnill;

  1. Check the ownership and permissions on the mount point.
  2. Can you save a file with gedit, kwrite or any other GUI application or if
    there is no GUI with something like vi ?

    P. V.
    “We’re all in this together, I’m pulling for you.” Red Green

try changing uid=uname,gid=1001 to uid=real_name,gid=users
where real_name is the real username of a Linux user on the client machine. Note that gid=1001 doesn’t exist (AFAIK).

Reference here: Samba: HowTo Mount a CIFS Network Share [AKA Map Network Drive] in openSUSE 10 & 11 plus FAQs