resize2fs 是 Linux/Unix 系统中的一个命令,用于调整 ext2/ext3/ext4 文件系统的大小(扩容或缩容),通常配合分区/逻辑卷(如 LVM)大小变化后使用。
/ˈriːzaɪz tuː ɛf ɛs/
I used resize2fs to expand the ext4 filesystem after increasing the partition size.
我在增大分区大小后,用 resize2fs 扩容了 ext4 文件系统。
After the LVM volume was extended, the administrator ran resize2fs on the device to make the filesystem use the newly available space.
在扩展了 LVM 逻辑卷之后,管理员在该设备上运行 resize2fs,让文件系统使用新增的可用空间。
resize2fs 可拆解为 resize(调整大小)+ 2(to 的简写/数字替代)+ fs(filesystem,文件系统),字面意思就是“把文件系统调整到合适大小”。