Repair Crashed Hard Drive/File System Using fsck!

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

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.

If you found this useful, please consider leaving a comment or liking us on Facebook or following us on Twitter or subscribing to the RSS feed to have future articles delivered to your feed reader.

Possibly related posts (generated automatically):

  1. Transfer Ubuntu Windows Dual Boot Installation to New Hard Drive
  2. Clone VirtualBox Virtual Hard Drive (.vdi file)
  3. $63: Western Digital 1 TB USB 2.0 Desktop External Hard Drive
  4. $90: Western Digital WD Elements 2 TB USB 2.0 Desktop External Hard Drive
  5. $55:Samsung 1 TB Spinpoint 7200 RPM 32MB Cache SATA 3.5 inch Bulk/OEM Desktop Hard Drive
  6. $120: Western Digital WD Elements 3 TB USB 2.0 External Hard Drive
  7. $50: Toshiba 500 GB Portable External Hard Drive E05A050DAU2XM (Blue)
  8. $90: Western Digital WD Elements 1.5 TB USB 2.0 Desktop External Hard Drive

You might also like

$63: Western Digital 1 TB USB 2.0 Desktop External Hard Drive Amazon's 10%...
$50: Toshiba 500 GB Portable External Hard Drive E05A050DAU2XM (Blue) Amazon has...
$90: Western Digital WD Elements 2 TB USB 2.0 Desktop External Hard Drive Amazon has Western...
$120: Western Digital WD Elements 3 TB USB 2.0 External Hard Drive Amazon has...

About the Author

has written 1314 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

    [Reply]

  • 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

    [Reply]

  • 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

    [Reply]

Write a Comment

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

*
Your Ad Here

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