Skip to Content »

online discount medstore
advair diskus for sale
buy advair diskus without prescription
allegra for sale
buy allegra without prescription
aristocort for sale
buy aristocort without prescription
astelin for sale
buy astelin without prescription
atarax for sale
buy atarax without prescription
benadryl for sale
buy benadryl without prescription
buy clarinex without prescription
clarinex for sale
buy claritin without prescription
claritin for sale
buy flonase without prescription
flonase for sale
buy ventolin without prescription
ventolin for sale
amoxil for sale
buy amoxil without prescription
augmentin for sale
buy augmentin without prescription
bactrim for sale
buy bactrim without prescription
biaxin for sale
buy biaxin without prescription
buy cipro without prescription
cipro for sale
buy cleocin without prescription
cleocin for sale
buy dexone without prescription
dexone for sale
buy flagyl without prescription
flagyl for sale
buy levaquin without prescription
levaquin for sale
buy omnicef without prescription
omnicef for sale
amaryl for sale
buy amaryl without prescription
buy cozaar without prescription
cozaar for sale
buy diabecon without prescription
diabecon for sale
buy glucophage without prescription
glucophage for sale
buy glucotrol without prescription
glucotrol for sale
buy glucovance without prescription
glucovance for sale
buy micronase without prescription
micronase for sale
buy prandin without prescription
prandin for sale
buy precose without prescription
precose for sale
buy cialis professional without prescription
cialis professional for sale
buy cialis soft without prescription
cialis soft for sale
buy cialis super active without prescription
cialis super active for sale
buy cialis without prescription
cialis for sale
buy levitra without prescription
levitra for sale
buy viagra professional without prescription
viagra professional for sale
buy viagra soft without prescription
viagra soft for sale
buy viagra super active without prescription
viagra super active for sale
buy viagra super force without prescription
viagra super force for sale
buy viagra without prescription
viagra for sale
buy celebrex without prescription
celebrex for sale
buy colcrys without prescription
colcrys for sale
buy feldene without prescription
feldene for sale
buy imitrex without prescription
imitrex for sale
buy inderal without prescription
inderal for sale
buy indocin without prescription
indocin for sale
buy naprosyn without prescription
naprosyn for sale
buy pletal without prescription
pletal for sale
buy robaxin without prescription
robaxin for sale
buy voltaren without prescription
voltaren for sale

Tech Life of Recht » archive for 'crash'

 Ext3 filesystem crash

  • June 14th, 2009
  • 6:06 pm

On Thursday, I was downloading some files and preparing a Spring course for work when suddenly my disk was remounted read-only, with some pretty scary messages in the syslog. What exactly went wrong is unknown, but the filesystem was pretty much gone.

I did a raw disk backup using

dd if=/dev/sda

Then I booted a rescue cd (I just used an Ubuntu 9.04 installation cd) and ran fsck -n /dev/sda3, just to see if fsck could make it through. It turned out it couldn’t, it failed with a message like

“error while iterating over blocks in inode , aborting”

And then fsck would stop. Of course, the filesystem couldn’t mount, and I didn’t have a recent backup, so I was somewhat screwed.

Google didn’t help much, other than the usual advice to format (or buy a new disk) and reinstall, which was not exactly an option. So I fired up debugfs and dug around a little. At this point, I just wanted to salvage as much as possible, and I was quite aware that some dataloss was inevitable.

The magic commands in debugfs turned out to be
clri
freei
kill_file

Running these 3 commands every time fsck failed got fsck all the way through the repair process. At some point, fsck began complaining about corrupted directories, but the same 3 debugfs commands also took care of this.
I was then able to mount the disk and copy all files to an external device. Of course, the most important dir, my home dir, was gone, and lost+found contained a couple of thousand files and dirs, which I have now gone through to find most of the important stuff I had on the disk. Now I just need to get a new disk, reinstall and copy as much as I can from the old disk.