Maintain The Data Consistencies Using fsck Command

System maintain the Data consistencies using fsck command.main objective is to repair the file system.
It is Maintain the Data Consistency in the Following Format
1)Data block consistency, 2)Cylinder Ground
Block Consistency 3)Super Block Consistency,
4)Lost+found Directory 5)inode consistency
Fsck usage in Unix
#fsck /dev/rdsk/c0t0d0s7
#fsck /export/home
#fsck –o f,p /dev/rdsk/c0t0d0s5 – check repair the file system
f- Force
p- Non Interactive - Automatic Repair - without ask yes/no

To use backup super block
#fsck –o b=32 /dev/rdsk/c0t0d0s7
Unix Command quot – Summarize File system Owner ship
In the Linux Operating system while Booting it will check file system,it is metion the /etc/fstab whether it is need to check or not the file system while booting.

When we need to use
1)when the file system is unable to mount.

After fsck possibilities for data loss
1)file name is not known,file name replaced by inode.

Related post