Difference between revisions of "E2fsck"

From wikieduonline
Jump to navigation Jump to search
Line 31: Line 31:
 
  /dev/sda2: 121947/655360 files (0.2% non-contiguous), 1750836/2620672 blocks
 
  /dev/sda2: 121947/655360 files (0.2% non-contiguous), 1750836/2620672 blocks
  
 +
 +
 +
From <code>[[guestfish]]</code>
 +
><fs> e2fsck /dev/sda1
 +
libguestfs: error: e2fsck: e2fsck 1.45.5 (07-Jan-2020)
 +
e2fsck: need terminal for interactive repairs
  
 
== Related commands ==
 
== Related commands ==

Revision as of 07:23, 13 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/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

See also

Advertising: