All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: Marius Reiner <news.mr@gmx.net>
Cc: reiserfs-list@namesys.com
Subject: Re: badblocks blocksize setting
Date: Sat, 15 Mar 2003 14:44:26 +0300	[thread overview]
Message-ID: <20030315144426.A30661@namesys.com> (raw)
In-Reply-To: <001801c2eae7$63932d90$55c7a8c0@mariusw2k>

Hello!

On Sat, Mar 15, 2003 at 12:38:23PM +0100, Marius Reiner wrote:

> > Can you please show the command line and the resulting output with
> badblocks?
> > Also what is in dmesg output after such a run?
> # badblocks /dev/hdc8 -b 4096
> # dmesg -c
> invalidate: busy buffer
> # badblocks /dev/hdc8
> 979932
> # dmesg
> invalidate: busy buffer
> attempt to access beyond end of device
> 16:08: rw=0, want=979936, limit=979933
> attempt to access beyond end of device
> 16:08: rw=0, want=979936, limit=979933

Hm, is 979936 looks like size of your device in kilobytes (+-3)?
If so, this is known kernel bug/problem, where it cannot access parts
of device at the end sometimes. This is somehow related to setblocksize.
This can be ignored, then.

> However, what I'm missing in the FAQ, is a short note about _why_ one should
> use the -b option, so no worries arise when getting bad blocks without it.

-b is needed so block output by bad blocks have the same bad blocks as
in reiserfs. (4096 bytes in size, without -b, badblocks
defaults to 1024 bytes blocks, so you need to divide its output by 4).

Bye,
    Oleg

      reply	other threads:[~2003-03-15 11:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-15  0:09 badblocks blocksize setting Marius Reiner
2003-03-15  8:16 ` Oleg Drokin
2003-03-15 11:38   ` Marius Reiner
2003-03-15 11:44     ` Oleg Drokin [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=20030315144426.A30661@namesys.com \
    --to=green@namesys.com \
    --cc=news.mr@gmx.net \
    --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.