Mount NTFS with normal rights management, and time

This is for a dual boot machine MS W7 / mga5.
As Microsoft dont support standard file systems we need to use a NTFS partition for files both OS can use.
So i have a standard partition formatted NTFS, in W7 it is "D:", mga5 use ntfs-3g and it is /media/win_d/
It is very nice /media/win_d/ shows up in Dolphin directly after install with no manual fussing.
Problem is the rights management.
Any mageia user can read and write, owner is root, and it can not be changed (chown fails silently)
I have no problem with any user can read and write (other might)
The hard problem is that when in mageia any file i copy to it using cp -a, a file synchronising thingy (synkron/freefilesync), or ownCloud, all files copied to the NTFS get the current time.
Not only do it mess up history for both myself, file listing, and and some programs, also the file syncing kicks back all files as new versions propagaring through file synchronisers and cloud back to pushing date changed but identical files down to the original sharer making mess there too.
I guess the used method to mount NTFS is made to risk hurting the windows aspects of file system as little as possible.
I googled a bit and one method is to mount the whole NTFS partition as a specific user, this seem to be the traditional solution. In fstab:
Not bad. I did not test.
It can also be mounted by the user who need it using udisks, example
I am trying a more automated method - it seem we can have it handle owner and rights as normal from the linux side.
More intelligently I could have chosen to have different subfolders there for each user, like it is under /home
Windows said trash was corrupt and tried to rebuild but in the end asked if OK to empty cache, OK.
I did not dare trying it on C: and i do not need it there - i specifically made D: for all data (and windows swap) to keep C: small for partition image backup reasons, and not toutched by anything but MSwindows so i know what to blame. (well, the "small" failed...)
What all this rant is about
§ Can we as default make NTFS from linux side to handle normal linux owner and standard rights, wihtout causing havoc on the windows side?
§ Can the default be improved at least the little bit so time on files copied to NTFS can be preserved? (without risking any havoc on windows side)
- At least *I* would think that be a great improvement, and cause less hairpulling around the globe - just think environmentally
Some links:
http://askubuntu.com/questions/92863/mo ... r-as-owner
https://wiki.archlinux.org/index.php/NTFS-3G
http://linux.die.net/man/8/mount.ntfs-3g
http://www.tuxera.com/community/ntfs-3g-manual/
As Microsoft dont support standard file systems we need to use a NTFS partition for files both OS can use.
So i have a standard partition formatted NTFS, in W7 it is "D:", mga5 use ntfs-3g and it is /media/win_d/
It is very nice /media/win_d/ shows up in Dolphin directly after install with no manual fussing.
Problem is the rights management.
Any mageia user can read and write, owner is root, and it can not be changed (chown fails silently)
I have no problem with any user can read and write (other might)
The hard problem is that when in mageia any file i copy to it using cp -a, a file synchronising thingy (synkron/freefilesync), or ownCloud, all files copied to the NTFS get the current time.
Not only do it mess up history for both myself, file listing, and and some programs, also the file syncing kicks back all files as new versions propagaring through file synchronisers and cloud back to pushing date changed but identical files down to the original sharer making mess there too.
I guess the used method to mount NTFS is made to risk hurting the windows aspects of file system as little as possible.
I googled a bit and one method is to mount the whole NTFS partition as a specific user, this seem to be the traditional solution. In fstab:
- Code: Select all
<UUID here> /media/win_d ntfs-3g defaults,umask=002,uid=1000 0 0
Not bad. I did not test.
It can also be mounted by the user who need it using udisks, example
- Code: Select all
/usr/bin/udisks --mount /dev/sda3
I am trying a more automated method - it seem we can have it handle owner and rights as normal from the linux side.
- Code: Select all
<UUID here> /media/win_d ntfs-3g permissions,users,auto,exec 0 0
- Code: Select all
umount /media/win_d
mount /media/win_d
chown -R me:users /media/win_d/

More intelligently I could have chosen to have different subfolders there for each user, like it is under /home
Windows said trash was corrupt and tried to rebuild but in the end asked if OK to empty cache, OK.
I did not dare trying it on C: and i do not need it there - i specifically made D: for all data (and windows swap) to keep C: small for partition image backup reasons, and not toutched by anything but MSwindows so i know what to blame. (well, the "small" failed...)
What all this rant is about
§ Can we as default make NTFS from linux side to handle normal linux owner and standard rights, wihtout causing havoc on the windows side?
§ Can the default be improved at least the little bit so time on files copied to NTFS can be preserved? (without risking any havoc on windows side)
- At least *I* would think that be a great improvement, and cause less hairpulling around the globe - just think environmentally

Some links:
http://askubuntu.com/questions/92863/mo ... r-as-owner
https://wiki.archlinux.org/index.php/NTFS-3G
http://linux.die.net/man/8/mount.ntfs-3g
http://www.tuxera.com/community/ntfs-3g-manual/