"The ext4 (fourth extended) is a journaled file system of Linux
that has many benefits compared to its predecessors, such as
support for backward compatibility, large file system, delayed
allocation, etc. However, the delayed allocation feature sometimes
poses problems for the Linux system. The Linux system based on ext4
file system may encounter inconsistencies in the files in case of a
power surge. To overcome this behavior, you should take appropriate
corrective measures. However, if no method employed by you is
successful then you should use a third-party Linux recovery
software to do the needful.
"Consider a scenario wherein you are working on a Linux system.
Suddenly, there is a power loss and the system shuts down abruptly.
When the power is restored, you switch on the system and find that
the files that you created just before the crash are showing zero