All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dewey Sasser <dewey@sasser.com>
To: "Konstantin Münning" <konstantin@muenning.com>
Cc: reiserfs-list@namesys.com
Subject: Re: Help tracking down files on a bad block:  understanding the output of debugreiserfs
Date: Tue, 22 Nov 2005 15:22:13 -0500	[thread overview]
Message-ID: <43837DF5.30407@sasser.com> (raw)
In-Reply-To: <43836AE9.5020403@muenning.com>

Konstantin Münning wrote:
> Hi!
>
> Unfortunately I can't help you with the debugreiserfs output but maybe
> with another approach for finding the correct blocknum of the bad
> sector(s). Why don't you try
>
> badblocks -b 4096 /dev/hda5
>   
Interesting.  When reading the badblocks man page I originally 
interpreted something it said to mean that it wouldn't run against a 
mounted partition.  I see now that that is not the case.  It will only 
refuse to run doing tests which write the partition, which is as it 
should be.

The partition affected is the root partition of a machine 700 miles from 
my chair and there is no one near the box that had any kind of Linux 
knowledge.  I am therefore trying to do this as much "on-line" as 
possible.  I will run "badblocks" at some point but I'll still need a 
way of mapping the bad block or sector to the affected files.  (Yes, I 
do have backups :)
> dd of=/dev/null if=/dev/hda5 bs=4k count=1 skip=xxx
>
> with xxx the block number(s) of your calculation or output from
> badblocks. Just to check if the block you've found is really unreadable.
>   
That is indeed one of my additional questions -- does the fact that 
debugreiserfs prints data mean the block (sector, really) is readable?  
Or does it mean my math is incorrect.  "badblocks" should help me answer 
that question.
> How to identify the inode number corresponding to that block I can't
> tell but finding the file etc. to the inode may be done with
>
> find /mount-point-of-fs -inum xxx
>   
Yep.  That part I can handle.  It's that middle link I'm missing :)

Thanks for your response,

--
Dewey

      reply	other threads:[~2005-11-22 20:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 18:10 Help tracking down files on a bad block: understanding the output of debugreiserfs Dewey Sasser
2005-11-22 19:00 ` Konstantin Münning
2005-11-22 20:22   ` Dewey Sasser [this message]

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=43837DF5.30407@sasser.com \
    --to=dewey@sasser.com \
    --cc=konstantin@muenning.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.