Repair Crashed Hard Drive/File System Using fsck!

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Well I just lost two posts due to an almost dead hard drive. This blog was running off an old Alienware laptop which had a really old 4200 rpm hard drive which was nearing its end, and then it did happen. The drive was so old that it started developing bad sectors, I tried fixing the file system by running this command:

fsck -t ext3 -r /dev/sdb1

fsck: File System CHeck is a very good linux utility. In the command the flag ‘-r’ means the file system would be checked in interactive mode, ext3 is partition type. /dev/sdb1 is the path of the partition I wanted to check. The partition should not be mounted, if it is mounted then unmount it. To find the name of the partition you can run the fdisk command like this

sudo fdisk -l

This would list out all the partitions for all the hard drives connected to your machine. You cannot unmount the partition which you are running your linux off, so easiest way is to connect the drive you want to run fsck on, using USB via an enclosure.

That did help for a while, but once the drive develops bad sectors, you can’t do much. I just reran it again and now I am going to see if I can boot with the hard drive and recover my two lost posts.

Update: My attempts to get the drive to boot failed, but luckily I had an offline copy of the website in Firefox cache in my windows partition, and I was able to retrieve all the lost posts. Just have to put firefox in offline mode and then try accessing my blog.

You might also like

Repair / Recover Crashed fat32 Drive/ File System Using fsck in Ubuntu If your fat32...
Transfer Ubuntu Windows Dual Boot Installation to New Hard Drive One might need...
Creating Windows 7 System Image Using Backup and Restore Tool Windows 7 boasts...
Clone VirtualBox Virtual Hard Drive (.vdi file) If you want...

About the Author

has written 346 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

3 Comments on “Repair Crashed Hard Drive/File System Using fsck!”

  • hard disk wrote on 13 April, 2010, 0:47

    If hard drive crashed, that’s a huge losses, so we need some technical knowledge about hard disk recovery, backup, format, partition and hard drive upgrade to solve our hard drive failure problems

    Like or Dislike: Thumb up 0 Thumb down 0


  • wide ultra 2 hot plug wrote on 3 May, 2010, 6:44

    Its a very good infomation.thank you

    Like or Dislike: Thumb up 0 Thumb down 0


  • Robert Nuttingale wrote on 5 May, 2010, 6:53

    Your blog really useful, I have bookmarked it. Do you mind me asking what theme you are using?

    Like or Dislike: Thumb up 0 Thumb down 0


Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!


Copyright © 2017 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes