How do I preserve "crtime" (creation/birth time) when copying from NTFS to EXT4?
I'm copying from a Windows-7 NTFS computer to a Debian/Buster EXT4 computer (both NTFS and EXT4 file systems support "creation/birth time", called "crtime").
Below is what I've tried:
Mount the Window-7 NTFS file system on to the Debian/Buster computer:
Code: Select all
sudo apt-get update
sudo apt-get install cifs-utils
sudo mkdir /media/BACKUP
sudo mount -t cifs //<Windows-7 computer IP Address>/c /media/BACKUP -o "username=<Windows-7 User Name>"
Code: Select all
rsync -avzhHEA --delete /media/BACKUP/TEST ~/TEST_rsync
sudo apt-get install e2fsprogs
sudo debugfs -R 'stat /home/<user>/TEST_rsync/<filename>' <device>
Use "cp" to copy a folder from NTFS to EXT4. Then check "crtime" on one of the copied files:
Code: Select all
cp -pr /media/BACKUP/TEST ~/TEST_cp
sudo apt-get install e2fsprogs
sudo debugfs -R 'stat /home/<user>/TEST_cp/<filename>' <device>
So both "rsync" and "cp" failed to copy the original NTFS "crtime". Instead, "rsync" and "cp" changed "crtime" to the copy time.
What am I doing wrong?
How do I preserve "crtime" (creation/birth time) when copying from NTFS to EXT4?
Thanks for the help.