Quote:
If EXIF data is only for photos, then that is not the solution I need. To lose all my crtimes would be like telling archeologists that all date records are to be erased, and they have to sort specimens by carbon-dating from now on. Some of my files and directories I've named starting with the date _d20220327su, and some digital cameras use this convention. It's extremely helpful, but not done enough. |
Quote:
In Windows, We use http://github.com/mart-wu/Ext3Fsd mount ext4 partition. Then the ext partition is mounted on the windows system just like the local partition and accesses normally as with NTFS, At this time, we can use some software under windows, such as: rsync, SyncToy, UrBackup and other software that can retain the file creation time in windows, we synchronize the ntfs file to EXT4, Compare their creation time, and then mount it to the deeping Linux system in ext4, compare their creation time, which has been kept synchronized. ?? Windows can keep the creation time with github matt-wu/Ext3Fsd, but Linux can't? |
Windows Ext3Fsd mount ext4 can keep "crtime" (creation/birth time)
In Windows, We use https://github.com/matt-wu/Ext3Fsd mount ext4 partition. Then the ext partition is mounted on the windows system just like the local partition and accesses normally as with NTFS,
At this time, we can use some software under windows, such as: rsync, SyncToy, UrBackup and other software that can retain the file creation time in windows, we synchronize the ntfs file to EXT4, Compare their creation time, and then mount it to the deeping Linux system in ext4, compare their creation time, which has been kept synchronized. Windows can keep the creation time with github matt-wu/Ext3Fsd, but Linux can't. |
If you really need those timestamps, you could use debugfs on Linux to set timestamps again if you write timestamps to a file. You will need sudo for debugfs and set_inode_field in debugfs. If you want something entirely in a Bash script something like this may help.
Quote:
|
You may need to copy all timestamps in order: created at, changed at, modified at, accessed at. You may use debugfs for first two and touch for second two. Do not set ones that are unimportant. You may save current copied with times for that. X E.
|
I've struggled and asked about this very issue. It appears that the only option is to settle with ctime or, absurd, switch to mac os with homebrew
|
disk_bearing, where is your thread and how may I help. In man debugfs it does indeed claim to be able to set crtime. Like my thread on it.
https://www.linuxquestions.org/quest...fs-4175732530/ X E. |
https://linux.die.net/man/8/debugfs
Look up or get debugfs and use man debugfs for more info. man debugfs is also possibly online some. debugfs -w -R 'set_inode_field <'$inode'> crtime '$formatted_time'' "$device" debugfs -w -R 'set_inode_field <'$inode'> ctime '$formatted_time'' "$device" Try like those in Bash. X E. |
https://unix.stackexchange.com/quest...4fs-filesystem
Do not do this on a main file system, use a bootable USB. X E. |
Quote:
|
Maybe just record timestamps to a file with bash or otherwise keep them and maybe soon you can restore. X E.
|
Word from Theodore Ts'o, you may need more to have them survive 2037. X E.
|
All times are GMT -5. The time now is 06:24 AM. |