Difference between revisions of "E2fsck"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
  
  
  e2fsck /dev/vda4
+
  e2fsck /dev/vda44
 
  e2fsck 1.44.1 (24-Mar-2018)
 
  e2fsck 1.44.1 (24-Mar-2018)
  /dev/vda4 is in use.
+
  /dev/vda44 is in use.
 
  e2fsck: Cannot continue, aborting.
 
  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
  
  

Revision as of 03:41, 10 August 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


Related commands

See also

Advertising: