Difference between revisions of "E2fsck"
Jump to navigation
Jump to search
Line 47: | Line 47: | ||
* <code>[[mount]]</code> | * <code>[[mount]]</code> | ||
* [[Read-only file system]] | * [[Read-only file system]] | ||
+ | * <code>[[qemu-nbd]]</code> | ||
== See also == | == See also == |
Latest revision as of 13:04, 22 October 2020
e2fsck
check a Linux ext2/ext3/ext4 file system
e2fsck -D
Optimize directories in filesystems
e2fsck /dev/vda44 e2fsck 1.44.1 (24-Mar-2018) /dev/vda44 is in use. e2fsck: Cannot continue, aborting.
e2fsck /dev/sda1 e2fsck 1.45.5 (07-Jan-2020) /dev/sda1: clean, 51370/1638400 files, 1141067/6553088 blocks
e2fsck /dev/sda22 e2fsck 1.44.1 (24-Mar-2018) /dev/sda22 contains a file system with errors, check forced. Pass 1: Checking inodes, blocks, and sizes Inodes that were part of a corrupted orphan linked list found. Fix<y>? yes Inode 1356 was part of the orphaned inode list. FIXED. Deleted inode 12871 has zero dtime. Fix<y>? yes Inode 133043 was part of the orphaned inode list. FIXED. Inode 263036 was part of the orphaned inode list. FIXED. .../... Free inodes count wrong (533409, counted=533413). Fix<y>? yes
/dev/sda2: ***** FILE SYSTEM WAS MODIFIED ***** /dev/sda2: ***** REBOOT SYSTEM ***** /dev/sda2: 121947/655360 files (0.2% non-contiguous), 1750836/2620672 blocks
From guestfish
><fs> e2fsck /dev/sda1
libguestfs: error: e2fsck: e2fsck 1.45.5 (07-Jan-2020)
e2fsck: need terminal for interactive repairs
Related commands[edit]
See also[edit]
Advertising: