by Hao Chen
~1 min read

Categories

Tags

fsck

Context:

There are some issues when an external device has mounted to the host.

no-alignment


Some Research

  • Fsck Command in Linux (Repair File System):see_no_evil:
# find which device
sudo fdisk -l

sudo umount <device>

sudo e2fsck -vfy /dev/sdb1

##########################################################################
Outputs:
Inode 11665412 extent tree (at level 2) could be narrower.  Optimize? yes

Pass 1E: Optimizing extent trees
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found.  Create? yes

Pass 4: Checking reference counts
Pass 5: Checking group summary information

1.42.6-25426: ***** FILE SYSTEM WAS MODIFIED *****

         397 inodes used (0.00%, out of 61046784)
           0 non-contiguous files (0.0%)
           0 non-contiguous directories (0.0%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 258/81/49
   227806906 blocks used (93.29%, out of 244181943)
           0 bad blocks
         131 large files

         261 regular files
         126 directories
           0 character device files
           0 block device files
           0 fifos
           0 links
           0 symbolic links (0 fast symbolic links)
           0 sockets
------------
         387 files