Example: I edit a file at 5:00 PM and save it to my desktop - then I copy that same file to my ntfs partition at 6:00 PM. The time-stamp on the file copied to the ntfs partition changes from to 5:00 PM (the actual time it was last edited) to 6:00 PM (the time I copied it). This is a huge pain for many reasons.
I think I have narrowed it down to a matter of file ownership, and I think this problem can be fixed by editing the fstab file. In other words, I need to address the fact that my user id isn't specified in fstab, therefore a copy command can not change the file date back to the file date of the source file (I think). However, I'm reluctant to mess with the fstab file without confirming that what I'm doing won't create other, unintended problems. So if someone would examine the changes I'm intending to make, I'd appreciate it.
Here's the original line in my fstab file:
Code: Select all
/dev/sdb1 /media/Disk2Bkp ntfs defaults,umask=007,gid=46 0 0
Code: Select all
/dev/sdb1 /media/Disk2Bkp ntfs defaults,users,uid=bob,umask=007,gid=46 0 0
1) I'm confused about the "defaults" option in that fstab line. I know that "defaults" is shorthand for all of these options: rw, suid, dev, exec, auto, nouser, and async. So... can I leave the "defaults" option in there? Will my addition of the option "users" override the "nouser" option included in "defaults", or will it conflict?
2) Am I putting "users,uid=bob" in the right place/order in the line (after "defaults"), or does it even matter?
3) Will this accomplish what I intend (to make file timestamps stick)?
Any help would be appreciated.