Cannot save files on NAS

View: New views
2 Messages — Rating Filter:   Alert me  

Cannot save files on NAS

by Duffields :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am a relatively new user of Ubuntu and have encounted a problem saving files
on an NAS device on my LAN.

Operating system Ubuntu 9.04
Samba 2:2.2.2-1unbuntu
smbfs and every other Ubuntu supported samba application in the repositories
are installed on the system.

Device:  D-Link DNS-323 NAS using software version 1.04
The device is auto-mounted on LAN clinet with a command in fstab,
The name of my local workgroup has been entered into the smb.conf file.
There is an smbcredentials file located in my home directory.

Problem: the NAS mounts and the client can view files, can add directories and
create a file on the NAS  but cannot edit and save a file located on the NAS
and cannot copy a file to the NAS.

When an attempt is made to save an edited file the client receives an error
message:
"Could not save the file /media/RAID/A test folder/A test file.txt."
"Unexpected error: Invalid argument"

This device works perfectly with Ubuntu 8.04 using exactly the same fstab
mount command which, by the way I have changed several times as suggested by
various people on support forums.

I contacted D-Link and they say they do not support Linux at this time but the
problem appears to be caused by the latest version of my OS not supporting
security standards used by D-Link and refer me to Ubuntu forums for a
solution.

I searched Linux forums for a solution and while others have had a similar
problem none of the suggestions that I have received have worked on my
system.

I have the feeling that it is cifs that will not grant or perhaps not
recognize write permissions on the NAS files although the error
message ""Unexpected error: Invalid argument" seems to indicate something
else.

Has this been reported to this mailing list and can anyone please refer me to
a possible solution to the problem?

Thanks
Mac
_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client

Re: Cannot save files on NAS

by Jeremy Allison :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jul 23, 2009 at 12:35:45PM -0700, Duffields wrote:

> I am a relatively new user of Ubuntu and have encounted a problem saving files
> on an NAS device on my LAN.
>
> Operating system Ubuntu 9.04
> Samba 2:2.2.2-1unbuntu
> smbfs and every other Ubuntu supported samba application in the repositories
> are installed on the system.
>
> Device:  D-Link DNS-323 NAS using software version 1.04
> The device is auto-mounted on LAN clinet with a command in fstab,
> The name of my local workgroup has been entered into the smb.conf file.
> There is an smbcredentials file located in my home directory.
>
> Problem: the NAS mounts and the client can view files, can add directories and
> create a file on the NAS  but cannot edit and save a file located on the NAS
> and cannot copy a file to the NAS.
>
> When an attempt is made to save an edited file the client receives an error
> message:
> "Could not save the file /media/RAID/A test folder/A test file.txt."
> "Unexpected error: Invalid argument"
>
> This device works perfectly with Ubuntu 8.04 using exactly the same fstab
> mount command which, by the way I have changed several times as suggested by
> various people on support forums.
>
> I contacted D-Link and they say they do not support Linux at this time but the
> problem appears to be caused by the latest version of my OS not supporting
> security standards used by D-Link and refer me to Ubuntu forums for a
> solution.
>
> I searched Linux forums for a solution and while others have had a similar
> problem none of the suggestions that I have received have worked on my
> system.
>
> I have the feeling that it is cifs that will not grant or perhaps not
> recognize write permissions on the NAS files although the error
> message ""Unexpected error: Invalid argument" seems to indicate something
> else.
>
> Has this been reported to this mailing list and can anyone please refer me to
> a possible solution to the problem?

I think I know what this is. It's a bug that's been fixed in
later versions of Samba, and hopefully D-Link will pick up
the fix soon.

Add the option "nounix" to your mount.cifs options list
in fstab and remount the drive.

Jeremy.
_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client