Understand, Learn and Implement.. LINUX / UNIX DEVOPS CONTAINERS OPENSHIFT KUBERNETES DEVOPS TOOLS VIRTUALIZATION STORAGE BACKUP SCRIPTS MONITORING MIDDLEWARE

Thursday, August 21, 2014

Linux Disk Recovery

After any power problem with the Linux machine, the file system could be corrupted and you may not be able to login. When this happens, you will need e2fsck, the tool to recover ext2 or ext3 partitions. (Do not ever use it with a partition that has AFS or another format).

Boot with a live CD or the first CD of Redhat and write "Linux rescue".
Do not let the rescue mode to detect the Linux partitions, else it would mount them and you do not want to mount the partitions yet, the file system check (e2fsck) can cause severe problems on a mounted partition.

When you are at the rescue mode prompt, write:

# e2fsck -c -c -v -y /dev/hda1

It is important to user "-c -c" (twice) this means that bad blocks will scan using a non-destructive read-write test.

"-v" to verbose and see the status of fsck.

"-y" says to answer "yes" to all the questions from fsck.

Need more info then  refer the below link:

0 comments:

Post a Comment