How can I modify the superblock of an ext filesystem so that I can set the field wtime (Last write time)?
I've tried with debugfs:
debugfs 1.42.9 (4-Feb-2014)
debugfs: open /dev/sdd2 -w
debugfs: ssv wtime "@0x64000000"
debugfs: show_super_stats -h
debugfs: close
When I close the filesystem wtime is set to the current system time.
Obviously I don't want to change the system time so that the wtime is set when the filesystem is closed and then to revert my system time.
My second thought was that I can change it with hexeditor, but I'm almost sure that the superblock has a checksum that is calculated over the superblock and verified.