Recover corrupted FS in Linux

16 viewsLinux

root file system  got  corrupted and Unix server is not booting , Need to  recover  corrupted File systems ? any data lose  during recovery of FS ?

Corrupted FS can be recovered using FSCK in unix servers.  FSCK should check each disk block and auto recover if corrupted.

#e2fsck -cvf  /dev/sda

e2fsck 1.42 (29-Nov-2011)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda6: 95/2240224 files (7.4% non-contiguous), 3793503/4476416 blocks

Edited question