Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Checking and Fixing Disk Errors and Badblocks  (Read 1669 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Checking and Fixing Disk Errors and Badblocks
« on: January 07, 2014, 02:45:05 pm »
The below steps includes identifying the badblocks and saving them on a file and then feeding the file to fsck to check and fix any issues.


To identify bad block:

Quote
badblocks /dev/hda1 > badblockslist.txt


Use fsck to fix issues:

Quote
fsck -t ext4 -l test /dev/hda1