Tuesday, June 18, 2013

Easy learn linux command line- Part 18

you have to use these command line at the terminal, if you like to check, repair your hard drive.


Command Description
# badblocks -v /dev/hda1 check bad blocks on disk hda1   
# dosfsck /dev/hda1 repair / check integrity of dos filesystems on disk hda1   
# e2fsck /dev/hda1 repair / check integrity of ext2 filesystem on disk hda1   
# e2fsck -j /dev/hda1 repair / check integrity of ext3 filesystem on disk hda1   
# fsck /dev/hda1 repair / check integrity of linux filesystem on disk hda1   
# fsck.ext2 /dev/hda1 repair / check integrity of ext2 filesystem on disk hda1   
# fsck.ext3 /dev/hda1 repair / check integrity of ext3 filesystem on disk hda1   
# fsck.vfat /dev/hda1 repair / check integrity of fat filesystem on disk hda1   
# fsck.msdos /dev/hda1 repair / check integrity of dos filesystem on disk hda1   

No comments: