tune2fs 是 Linux/Unix 系统中的一个命令,用来查看并调整 ext2/ext3/ext4 文件系统的参数(通常作用于未挂载的分区或在安全条件下操作),例如:设置卷标(label)、调整保留块比例、修改挂载计数与强制检查策略、启用/禁用某些文件系统特性等。
/ˌtjuːn tuː ˈɛf ˈɛs/
I used tune2fs to change the disk label.
我用 tune2fs 修改了磁盘(分区)的卷标。
Before migrating the server, the admin used tune2fs to adjust the filesystem’s check interval and reserved block percentage to reduce unexpected downtime.
在迁移服务器之前,管理员用 tune2fs 调整了文件系统的检查间隔和保留块百分比,以减少意外停机。
tune2fs 可拆解为 tune(“调校/调整”)+ 2fs(早期指 ext2 filesystem,后也常用于 ext3/ext4)。字面意思就是“调整 ext 文件系统的参数”。