Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1724  / 1 Year ago, tue, march 7, 2023, 6:55:11

Is there any way to find out how much data have been written on the partition since it was created?



Talking about ext4 fs.


More From » ext4

 Answers
7

Take a look at the files in /sys/fs/ext4/<dev-name>/.
You would be interested in /sys/fs/ext4/<dev-name>/lifetime_write_kbytes.




lifetime_write_kbytes



This file is read-only and shows the number
of kilobytes of data that have been written to this filesystem since
it was created.




hth



EXT4 Kernel docs


[#31089] Tuesday, March 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ellter

Total Points: 311
Total Questions: 111
Total Answers: 117

Location: Lithuania
Member since Thu, Jul 14, 2022
2 Years ago
;