例如,如果我运行:
sudo dumpe2fs /dev/sda1
我获得有关分区的详细信息。
我对这部分感到困惑,Lifetime
写道,为我的启动分区返回以下内容:
Lifetime writes: 12 kB
这是什么12 Kb
意思?
这是完整的输出:
user@root:/data$ sudo dumpe2fs /dev/sdb1
dumpe2fs 1.42.9 (4-Feb-2014)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 5524d5a6-4635-48a6-8cd9-a636e3ad2b2c
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: ext_attr resize_inode dir_index filetype sparse_super large_file
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 121680
Block count: 486144
Reserved block count: 0
Free blocks: 477783
Free inodes: 121669
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 118
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8112
Inode blocks per group: 507
Filesystem created: Thu Mar 27 03:18:09 2014
Last mount time: Thu Mar 27 03:18:34 2014
Last write time: Thu Mar 27 03:18:56 2014
Mount count: 1
Maximum mount count: -1
Last checked: Thu Mar 27 03:18:09 2014
Check interval: 0 (<none>)
Lifetime writes: 12 kB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Default directory hash: half_md4
Directory Hash Seed: 8f43123d-1451-4047-a26c-d5227fd80240
答案1
这是文件系统自创建以来以字节为单位的所有写入。在您的情况下,自分区创建以来仅写入了 12kB。请记住,dumpe2fs
报告的值是上次卸载文件系统时的值,这在已安装的文件系统中可能是错误的或已过时。
答案2
根据ext4手册这是自文件系统创建以来写入文件系统的总字节数。您还可以通过检查 sysfs 中的此文件来查询此值(以 kB 为单位):
/sys/fs/ext4/<DEVICE>/lifetime_write_kbytes