Bad Superblock

My little mini-itx server does a sterling job as a home server. It makes available images, video and music all round my house via my wireless router/adsl modem. Just before I went on holiday I booted it and it would not start.

When we got back from our hols I investigated the problem further and after rummaging around found that the fstab file had become corrupted. I duly fixed this or thought I had because when I rebooted I got a bad superblock error.This was slightly annoying as most of the stuff on the machine was not backed up.

I am not by any means a Linux expert and this problem was pretty frustrating as each time I booted the server I would be chucked into ‘File System Repair’ mode which is useless really as you can’t edit anything as all the files are mounted as read-only but I could see all the files. This made me very reluctant to wipe the drive. The first thing I did was buy a new hard drive so that I could back up anything if I managed to access the files.

I scoured the internet to find a solution to this problem. Most people seemed to think that the easiest thing was to wipe the drive and start again.

I found a piece of software called TestDisk. I looked at the list of LiveCDs and thought one of these might answer my prayers. I downloaded Parted Magic. I booted into it and ran TestDisk followed this tutorial. TestDisk didn’t find any bad superblocks.

I was getting slightly desperate at this point so I did a bit more surfing. I think in my initial quest I had perhaps been looking for the wrong thing. The server is partitioned using LVM so I started looking for data recovery tools for LVM. In my searches I found a couple of article that mentioned LVM recovery. I thought I’ll have one more go then I’ll wipe it. I ran through LVM recovery section ignored the RAID bits as my computer is not RAIDED. Using an Ubuntu LiveCD rather than Knoppix I managed to access the data. I backed it up onto the new drive and then thought I might as well see if I can get this to boot again. I fixed the fstab rebooted into the original system and it all started up cleanly again. Obviously I was very pleased with myself.

Comments

Leave a Reply

Stuff I Dugg

  • 27 Adobe AIR Applications - Handy For Web Designers

    Every designer & developer loves handy tools that simplify frequent tasks. And, even if you’ve a complicated software that does the same thing, usually it is much more effective to run a tiny, fast-loading application that does the job.This is a list of 27 functional Adobe AIR applications that can help a web designer to design & develop.

  • Michael Moore on Slacker Uprising’s Piracy ‘Problem’

    Michael Moore decided to give away his latest film ‘Slacker Uprising’ for free, but only to people in the US and Canada. However, since he chose to use BitTorrent, and open trackers such as The Pirate Bay, it was fairly easy for the rest of the world to download it as well. Was this done on purpose? Moore responds.

  • Oops I voted for Rick Astley 961 times

    Wasting no time in getting their man elected "Best Act Ever," the large and mostly anonymous under-culture of Rick Astley fans has already deployed a device to defraud the voting on MTV Europe's website. The "RickVoter" is a very basic utility that simply navigates to MTV's voting page and votes for Astley...over and over and over.

  • Banksy in New Orleans

    The celebrated street artist hit up New Orleans before the anniversary of Hurricane Katrina.

  • 8 hacks to make Firefox ridiculously fast

    Firefox has been outperforming IE in every department for years, and version 3 is speedier than ever.But tweak the right settings and you could make it faster still, more than doubling your speed in some situations,

  • 10 hot Web redesigns of 2008

    it's a good chance to take a look back at some of this year's redesigns and talk about what was changed and/or fixed.

  • IEs4Linux lets you install Internet Explorer under Linux

    Because a large portion of end user machines attached to the Internet are Windows machines, Web developers have no choice but to develop Web applications that, while they don't necessarily rely on Microsoft technology, do have to work properly with Microsoft's Internet Explorer browser. That usually means developers require a Windows installation a

  • 12 year old boy invents new type of solar cell

    Now here’s a story that makes me feel profoundly unaccomplished: a 12 year old boy in Beaverton, Oregon recently developed a new type of 3D solar cell that makes other solar cells look inefficient by comparison.William Yuan’s 3D cell can absorb both visible and UV light. According to his calculations, solar panels equipped with his 3D cells..

  • 13 Amazing Firefox Add-Ons To Make Designers Lives Easier

    In this post, I am listing down 13 Amazing Firefox Add-Ons To Make Designers Lives Easier.You are welcome to share if you know more amazing firefox add-ons that will save time which our readers/viewers may like.

  • 5 Tips For Better Sleep

    With these five easy tricks, you'll have no trouble springing from the sheets rested and ready.

Subscribe

Who Am I?

No Sweat Apparel.com