kernel panic due to bad blocks

Hi all,

I have a problem. I want to start my opensuse 10.1 machine. Last night the system shutdown abnormally due to an electric network fail. This morning I start my computer but it was very slow opening programs, so I shutdown it using the reboot button. When it was starting it throws an kernel panic because it has some damaged blocks on /dev/hda2 and it said that I have to run reiserfs command with -B option, so I launch the rescue session from the instalation DVD and I ran the fsck.reiserfs --fix-fixable /dev/hda2, but it does not solve the problem.

I don´t know what to do to solve the problem. I need a detailed explanation of the way to solve it because I am a newby user and it is very important to me to enter the system to get some important files there are on it.

Thanks in advance,

Ana

On Thu, 2008-08-07 at 21:06 +0000, ana larraz wrote:
> Hi all,
>
> I have a problem. I want to start my opensuse 10.1 machine. Last night
> the system shutdown abnormally due to an electric network fail. This
> morning I start my computer but it was very slow opening programs, so I
> shutdown it using the reboot button. When it was starting it throws an
> kernel panic because it has some damaged blocks on /dev/hda2 and it
> said that I have to run reiserfs command with -B option, so I launch
> the rescue session from the instalation DVD and I ran the fsck.reiserfs
> --fix-fixable /dev/hda2, but it does not solve the problem.

How about fsck.reiserfs --rebuild-tree ??

>
> I don´t know what to do to solve the problem. I need a detailed
> explanation of the way to solve it because I am a newby user and it is
> very important to me to enter the system to get some important files
> there are on it.

Bad blocks mean you have a hardware problem. The disk is bad (or
controller, or something). You
might be able to recover data from the disk, might not. If you
are able to get the filesystem repaired or somehow mount it, I would
backup all of the data asap.

My guess is that this won’t work though.

You’ll want to install Linux on a new drive and then install/use
dd_rescue (ddrescue package) to see what all you can get.

An electrical storm can do a LOT of damage. Bad blocks aren’t
usually what I think of… but almost anything can happen.

Thanks in advance

Ana

On Thu, 2008-08-07 at 22:46 +0000, ana larraz wrote:

> What I have to do to solve the problem with ddrescue?
> Is it available in the rescue console of the installation DVD? Do I
> have to install a second hard disk in the system? What are the steps to
> recover using the dd_rescue? Is it possible that openldap will and some
> other programs will run after recover under a second hard drive? I am
> really a newby user

dd_rescue sometimes is there on the rescue. I know there have
been times when SUSE botched it up though, it was there, but not
really usable.

If you want to see if it’s merely the controller, you could
try to place the drive into another system (Linux) and see
if you can mount it there.

dd_rescue is a last resort style utility. It’s main purpose if
for getting data off a filesystem that is very corrupted or
trying to retrieve data off a really bad disk. It attempts
to piece together what it can find off the disk… it can
get really ugly. But better than nothing.

Since you’re a newbie, I would probably contract this out
to a local Linux nerd (me, for example). Why? Well… I have
all those little parts and pieces to make image backups of
drives, try things in different machines, etc.

And “contract” doesn’t always mean for a fee (just fyi).

Do you have a local Linux User Group (LUG)? They should be
able to help you out.

I would be very gratefull if you could help me restore my system. But I think you live in other country. I´m from Spain. Can you help me some way?

Thanks in advance.