All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir V. Saveliev" <vs@namesys.com>
To: alistair@inrevo.com
Cc: reiserfs-list@namesys.com
Subject: Re: Bad block 0 error
Date: Mon, 21 Jun 2004 15:50:40 +0400	[thread overview]
Message-ID: <40D6CB90.7070100@namesys.com> (raw)
In-Reply-To: <59446.170.148.10.46.1087810034.squirrel@170.148.10.46>

Hello

Alistair McDonald wrote:
> I had a hard drive failure. I have replaced the hard drive with a new
> software RAID1 setup ( previously, the drive was used as a normal block
> device, /dev/hdh1).
> 
> I am getting an error running reiserfsck:
> 
> =============================reiserfsck output begins
> altair root # reiserfsck /dev/md0
> reiserfsck 3.6.17 (2003 www.namesys.com)
> 
> *************************************************************
> ** If you are using the latest reiserfsprogs and  it fails **
> ** please  email bug reports to reiserfs-list@namesys.com, **
> ** providing  as  much  information  as  possible --  your **
> ** hardware,  kernel,  patches,  settings,  all reiserfsck **
> ** messages  (including version),  the reiserfsck logfile, **
> ** check  the  syslog file  for  any  related information. **
> ** If you would like advice on using this program, support **
> ** is available  for $25 at  www.namesys.com/support.html. **
> *************************************************************
> 
> Will read-only check consistency of the filesystem on /dev/md0
> Will put log info to 'stdout'
> 
> Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
> ###########
> reiserfsck --check started at Mon Jun 21 10:03:30 2004
> ###########
> Replaying journal..
> Reiserfs journal '/dev/md0' in blocks [18..8211]: 0 transactions replayed
> Checking internal tree..
> 
> Bad root block 0. (--rebuild-tree did not complete)
> 
> Aborted
> 
> =============================reiserfsck output ends
> 
> 
> A little googling suggsted using the debugreiserfs command, but the output
> seems normal to me:
> 
No, it is not. You see: tree height is supposed to be not more than 5. 
You have 65535. Root block is block 0 which should never happen. So, you 
have to run reiserfsck --rebuild-tree

> =============================debugreiser output begins
> altair root # debugreiserfs /dev/md0
> debugreiserfs 3.6.17 (2003 www.namesys.com)
> 
> 
> Filesystem state: consistent
> 
> Reiserfs super block in block 16 on 0x900 of format 3.6 with standard journal
> Count of blocks on the device: 61277904
> Number of bitmaps: 1871
> Blocksize: 4096
> Free blocks (count of blocks - used [journal, bitmaps, data, reserved]
> blocks):
> 61277904
> Root block: 0
> Filesystem marked as cleanly umounted
> Tree height: 65535
> Hash function used to sort names: "r5"
> Objectid map size 2, max 972
> Journal parameters:
>         Device [0x0]
>         Magic [0x0]
>         Size 8193 blocks (including 1 for journal header) (first block 18)
>         Max transaction length 1024 blocks
>         Max batch size 900 blocks
>         Max commit age 30
> Blocks reserved by journal: 0
> Fs state field: 0x0:
> sb_version: 2
> inode generation number: 0
> UUID: f486260e-f7ca-4bff-a783-63b4bda0b315
> LABEL:
> Set flags in SB:
> 
> =============================debugreiser output ends
> 
> 
> Here is the history of the data:
> 
> the old partition was on an IDE hard drive. It reported errors after boot
> (lost the output, I'm afraid) and reiserfsck could not recover the data.
> Not suprising if the hard drive was bad.
> 
> I installed linux software RAID-1, using /dev/hde1 and /dev/hdg1 making
> /dev/md0, a RAID-1 set. I used dd_rescue to copy all the data from
> /dev/hdh to /dev/md0 - only(!) around 150 errors were reported in copying
> the whole ~250Gb data. The orignal drive and the new RAID volume are the
> same size, using the same drive type, in fact, so I thought that a
> straight dd_rescue would be OK.
> 
> I then used reiserfsck on /dev/md0, resulting in the above outputs.
> 
> So, could I ask for help:  (A) was it valid to dd_rescue the old drive (I
> still have the old drive and can re-do any retrieval commands) 

yes. dd_rescue is the right tool.
please keep old drive, until you have have data back
(B) what
> are the chances of recovering my data, and (C) how I can go about it?
> 

please try
reiserfsck --rebuild-tree /dev/md0
amd let us know its result

> system details:
> 2.6.6 kernel from development sources (effectively a vanilla 2.6.6 kernel,
> I believe). The system WAS running 2.4.23 until after the disk failure
> 
> reiserfstools 3.6.17 (was 3.4.14 until I was unable to recover the data
> with reiserfsck).
> 
> Alistair



  reply	other threads:[~2004-06-21 11:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-21  9:27 Bad block 0 error Alistair McDonald
2004-06-21 11:50 ` Vladimir V. Saveliev [this message]
2004-06-21 12:10   ` Alistair McDonald
2004-06-21 12:45     ` Vladimir V. Saveliev
2004-06-21 15:19       ` Alistair McDonald
2004-06-21 15:41         ` Vladimir V. Saveliev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40D6CB90.7070100@namesys.com \
    --to=vs@namesys.com \
    --cc=alistair@inrevo.com \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.