A few months ago, I acquired an Iomega 097bb8 NAS drive, connected to my router by ethernet cable. It took me a long time to understand Samba, but eventually I had it set up so that it worked smoothly. I have now copied huge quantities of photos, documents and other data and I can share this data between various Linux installations and VMs (nearly all Linux, but some Windows) on my network. So far, so good. However (after a few months of cheerfully using my new system), I have just realised that not all is well.
When running Linux, if I copy a file or directory to my NAS using Samba, it loses the 'date last saved/modified' information and simply replaces it with the date/time of the copying operation. This can be a real headache. A colleague on a collaborative project asked me to identify a series of files that had been saved within a particular date-span about three years ago. This information has gone from the copies of the files on my NAS, which now only bear the date at which I transferred them to the external drive! I am very fortunate in having a CD backup which I can use to look this up.
Interestingly, the few files that I have copied to my Iomega drive from Windows retain the 'date last saved' information when browsed on the NAS ...
Is there any way of using or configuring Samba so that this problem does not arise? Or am I best off using my virtual install of Windows for all important data transfers to my NAS in future?
I'd be really grateful for any suggestions or comments. I am using Samba 3.0.33-1 on PCLinuxOS 2009.
EDIT - the files which copied without their date stamps were transferred to the NAS by drag-and-drop using Konqueror.