D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: blueberry7 on January 08, 2010, 03:06:36 AM

Title: Preserve timestamps when copying files from client (ubuntu 9.04)
Post by: blueberry7 on January 08, 2010, 03:06:36 AM
Hi,

I have searched Google for some time but cannot find an answer :-(

I recently got a DNS-323 and attached it without problem to my LAN and can access it from both my Ubuntu PC and Windows 2000 laptop. Great.

However when I copy files to it from Ubuntu the timestamps are updated to the date I copied the files. I read using "cp -p" to preserve date-time stamps should work but when I run it from Ubuntu I receive "Failed... Operation failed" error.

My problem is that I have loads of digital photos I want to preserve the timestamps for. I tried also using a utility called JHEAD that tries to update the timestamps based upon the JPG meta information; this works if ran from the Windows 2000 laptop against the NAS but not from Ubuntu (same error as with cp -p).

I use CIFS to mount the NAS.

Any ideas?

Thanks
Title: Re: Preserve timestamps when copying files from client (ubuntu 9.04)
Post by: gunrunnerjohn on January 08, 2010, 05:31:38 AM
Sounds like NFS has a problem with the timestamps.  I use Windows, and the timestamps are preserved.  Can you use SMB to access the NAS from your Linux machine?
Title: Re: Preserve timestamps when copying files from client (ubuntu 9.04)
Post by: blueberry7 on January 08, 2010, 08:08:16 AM
I'm going to appear a complete noob; but how do I use smb instead? I though cfis was what samba was now called which implements smb on *nix. Do I need to mount the drive as a different file system?
Title: Re: Preserve timestamps when copying files from client (ubuntu 9.04)
Post by: gunrunnerjohn on January 08, 2010, 10:10:18 AM
Sorry, I read NFS somewhere in your post, and it's not really there!  CIFS should mount those shares just fine, don't know what is going on.