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

  • Swear (PIC)

    Imperial Stormtrooper is sworn in for the American army in Iraq.

  • Linux Media Center Edition

    Controls everything from your TV to your security system using anything from your cell phone to a Wii remote.

  • 7 Visions Of Social Networking’s Future: Is This Web 3.0?

    Considering that there are now kids in college who don’t remember a time before the Internet, we can only imagine what will be possible in just a few short years.Here is a list of scenarios and technologies that will shape the Internet’s future. Some are already available and a few we’d like to look forward to in the near future:

  • Samba Team Releases Samba 3.2

    The Samba Team is proud to announce the release of Samba 3.2, a major new release of the award-winning Free Software file and print server suite for Microsoft Windows clients.

  • Eee Monitor shots reveal Linux's $500 iMac rival

    ASUS' Eee Monitor today has been captured in official photos that confirm the system to be the company's direct answer to the iMac. The all-in-one computer confirms earlier teaser photos and reveals a cross between Apple's Cinema Displays and the iMac, but with two big differences: the use of Linux and just a $500 price tag.

  • Sales Guy vs. Web Dude

    The Website is Down - This is super funny.

  • PC Magazine's 12 Favorite Music Sites

    These days, a good radio station is hard to come by and CDs are $20 a pop. So, what's a music lover to do? Turn to the Internet, of course, where you can find music-streaming services that are not only free and legal (like all radio) but customizable.

  • Lego Star Wars Clone Trooper Army Fights Autism

    What are 35,310 Lego Star Wars Clone Troopers mini-figs doing together, apart from planning a planet invasion after breaking out of the giant Lego storage cathedrals? Raising awareness and funds for autism, that's what.

  • 10 Useful Apps To Reduce Your Dependency On Google

    They are worth being familiar with so that you can avoid a crisis situation when you cannot access a Google product for some reason.

  • A cross between a motorcycle, a Segway and 'Star Wars'

    Meet the Uno. The Uno's custom hoops aren't front and rear like a motorcycle's, but side by side and inches apart under the rider, rising and falling independently over the road as he leans the gyroscope-stabilized machine through effortless turns.

Subscribe

Who Am I?