Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the mount command on a Linux server to access a Windows server using smbfs. Can I use noatime to prevent read operations (such as cp on Linux) from changing the last-accessed time on files on the Windows server?

If so how can I do this?

share|improve this question

I think you should be able to. According to man mount, no atime falls under "FILESYSTEM INDEPENDENT MOUNT OPTIONS". Does the following work?

mount -t cifs \\server\share /mnt/smount -o username=DOMAIN\administrator,noatime


Looks like the above does not quite cut it. It maybe stops Linux VFS from updating but not windows. However, the above in combination with changing the Windows registry not to update the access time on NTFS might do the trick:

System Key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
Value Name: NtfsDisableLastAccessUpdate
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = disable, 1 = enable)

This still might not effect shares though.

share|improve this answer
No, maybe it cannot be controlled from Linux. – Liam Aug 14 '09 at 11:14
@liam: the noatime option will prevent Linux from updating the atime. whether the Windows server will update its equivalent to atime anyway is another story entirely. – cas Aug 14 '09 at 11:22
Is there a Windows equivalent to atime/noatime? – Liam Aug 14 '09 at 11:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.