I'm having some doubts about how to install and allow linux to correctly read/write to a NTFS formated harddrive used as backup of various machines (windows included, that's how I need NTFS).
For now I've read some pages and I have the feeling I need someone else's guidance, from who already did this step-by-step, to not ruin things here.
What I need is to be able to save a linux file, with its chown and chmod settings, to a NTFS filesystem, and be able to retrieve this information back.
What I have today is a NTFS that saves all files with the owner:group of who mounted the volume, and permissions rwxrwxrwx for all.
I read this article but it is too much information and I could not understand some things when trying to actually implement:
- Is it stable in the current version?
- Do UBUNTU 10.04 have all things needed already? Or do I need to install anything?
- What is the relation of POSIX ACL to this? Do I need install anything regarding this or just
ntfs-3gwill do? - Where are UBUNTU packages to run with
apt-get? If I map the users (with
usermap) can bring the HardDrive to another computer with different users, will I be able to read them? (Under linux/windows)?For one thing I noticed,
usermapwas not ready to use. So I download and compiled (but not installed because I was afraid to mess things here), the last version of ntfs-3g. In the README file it says:TESTING WITHOUT INSTALLING
Newer versions of ntfs-3g can be tested without installing anything and without disturbing an existing installation. Just configure and make as shown previously. This will create the scripts ntfs-3g and lowntfs-3g in the src directory, which you may activate for testing :
./configure makethen, as root : src/ntfs-3g [-o mount-options] /dev/sda1 /mnt/windows
And, to end the test, unmount the usual way : umount /dev/sda1
But it tells nothing about the mount-options that I need to use to have full backups (full == backuping/restoring files, owners, groups and permissions).
This faq says:
Why have chmod and chown no effect?
By default files on NTFS are owned by root with full access to everyone. To get standard per-file protection you should mount with the "permissions" option. Moreover, if you want the permissions to be interoperable with a specific Windows configuration, you have to map the users.
Also, I did used the ntfs-3g.usermap /dev/sdb2 tools to create the map file and got this result:
# Generated by usermap for Linux, v 1.1.4
:carl:S-1-5-21-889330461-3416208041-4118870141-511
:default:S-1-5-21-2592120051-4195220491-4132615201-511
carl:carl:S-1-5-21-889330462-3416208046-4118870148-1000
Now this default was mapped because I wrote "default" to one file that was under the default user during the inquiring. I'm not sure if I did that right. I don't care for any users but carl (and root for that matter), and for any other groups but users. I saw the FAQ telling me to answer the group with the username. Isn't it the case to tell the group as "users"? And how can I check, booting windows, if this mapping is correct?
Summary:
- I need
rsyncto save linux files and windows files from various computers, to a NTFS external USB HD, without losing file permissions. - I don't know how to install and run the driver ntfs-3g to allow chown, chmod and anything else that is needed to make that possible. What options, and where?
- All computers have carl username, but that doesn't guarantee that their SID, UID or GID are the same.
- The environment is composed of 18 "documents" folders, 6 of them linux, 6 of them win7, 6 of them virtualbox win XP. All of them will be a single "documents" folder into the NTFS external hard drive.
Reference:
- I also read this forum, and maybe it is useful to someone trying to help me here.
- Also thought of these other three solutions, making the filesystem ext. But the external HD may be used in windows boxes I could not install or have write to install drivers. So it needs to be readable easily by any windows and NTFS is the standard.
All my google searches was too much technical to follow.