Skip to content

Instantly share code, notes, and snippets.

@cp16net
Created November 14, 2014 19:35
Show Gist options
  • Select an option

  • Save cp16net/8d6ee5f0fab77248b7f5 to your computer and use it in GitHub Desktop.

Select an option

Save cp16net/8d6ee5f0fab77248b7f5 to your computer and use it in GitHub Desktop.
squeeze e2fsck cmd differences
root@mysql511-alt-guest:/# e2fsck -f -n /dev/vdb
e2fsck 1.41.12 (17-May-2010)
Warning! /dev/vdb is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found. Create? no
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (249500, counted=993687).
Fix? no
Free inodes count wrong (65525, counted=262057).
Fix? no
/dev/vdb: ********** WARNING: Filesystem still has errors **********
/dev/vdb: 196619/262144 files (0.0% non-contiguous), 799076/1048576 blocks
root@mysql511-alt-guest:/# echo $?
4
root@mysql511-alt-guest:/# e2fsck -f -p /dev/vdb
/dev/vdb is mounted.
WARNING!!! The filesystem is mounted. If you continue you ***WILL***
cause ***SEVERE*** filesystem damage.
Do you really want to continue (y/n)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment