Recover FileSystem

General support questions including new installations
Post Reply
_-Zero-_
Posts: 1
Joined: 2016/11/29 20:53:14

Recover FileSystem

Post by _-Zero-_ » 2016/11/29 21:41:03

First of all thanks to anyone who could bring some help here!

I was trying to retrieve data from the HDD of my old server so I mounted it in virtualbox (since the server is gone) when the power went down... Yes, the horror...
Reboot, everything seems fine untill CentOS (in the virtualbox) said:

Code: Select all

/ contains a file system with errors, check forced .
I let him do the trick but at approximately at 60% i receive a (bad) feedback about duplicate blocks.

What I did:
Was stuck (cannot do anything) so I restarted the VB and added init=/bin/bash into grub (after kernel load), booted and after bash loaded:

Code: Select all

bash-3.2# umount /dev/hda2
bash-3.2# /sbin/fsck -M -v /dev/hda2
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Running additional passes to resolve blocks claimed by more than one inode…
Pass 1B: Rescanning for multiply-claimed blocks
Multiply-claimed block(s) in inode 46433883: 68123972 68123972
I assumed (hoped) the issue was in the main partition (hda2) but if I figured out correctly is in the MBR. Is there a way to fix it or should I begin to pray (or curse) in unspeakable language?

Any suggestion? There is still hope?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Recover FileSystem

Post by TrevorH » 2016/11/30 01:17:58

Are you booting from this disk or from a different system?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply