• February 27, 2025, 08:02:32 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Preserve timestamps when copying files from client (ubuntu 9.04)  (Read 4177 times)

blueberry7

  • Level 1 Member
  • *
  • Posts: 2

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
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Preserve timestamps when copying files from client (ubuntu 9.04)
« Reply #1 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?
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

blueberry7

  • Level 1 Member
  • *
  • Posts: 2
Re: Preserve timestamps when copying files from client (ubuntu 9.04)
« Reply #2 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?
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: Preserve timestamps when copying files from client (ubuntu 9.04)
« Reply #3 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.
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.