Linux Recovery

I have Fedora Core 9 installed on a LVM together with ext3 filesystem, and an accidental power outage cause the filesystem corrupted. Here is how I recover it.

  1. Boot using a Knoppix Live CD
  2. Press CTRL+ALT+1 to go to terminal 1
  3. vgdisplay
  4. vgscan
  5. vgchange -a y (Cause all the LVN to be registered with the kernel. Now the logical volumes appears under /dev/mapper)
  6. fsck -t ext3 /dev/VolGroup00/LogVol00 (possibly fsck -t ext3 /dev/mapper/VolGroup00/LogVol00). Answer y for everything. In the end, it will ask if we want to recreate the journal, say y.

Lesson learned:

If we don't know anything about LVM (or don't need to use LVM), don't use it.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License