public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andries Brouwer <aebr@win.tue.nl>
To: "Norman Diamond" <ndiamond@wta.att.ne.jp>
Cc: "Hans Reiser" <reiser@namesys.com>, <linux-kernel@vger.kernel.org>
Subject: Re: ReiserFS, two oddities
Date: Sun, 26 Oct 2003 13:20:40 +0100	[thread overview]
Message-ID: <20031026122040.GA9906@win.tue.nl> (raw)
In-Reply-To: <334201c39b94$286e7ae0$24ee4ca5@DIAMONDLX60>

On Sun, Oct 26, 2003 at 04:37:26PM +0900, Norman Diamond wrote:

> This is tangential to my observations about bad blocks (which the disk's
> firmware refused to reallocate during reads, writes, and S.M.A.R.T. long
> self-tests).  I have had two odd observations which seem related to ReiserFS
> on perfectly good blocks.
> 
> Here is partial output from fdisk's p command, copied by hand:
>   /dev/hda8   18169578  29431079   5630751   83  Linux
> 
> The sector is readable if I ignore partitions:
>   # dd if=/dev/hda of=/dev/null bs=512 skip=29431074 count=1
>   1+0 records in
>   1+0 records out
> but not if I address it from inside the partition:
>   # dd if=/dev/hda8 of=/dev/null bs=512 skip=11261496 count=1
>   dd: reading `/dev/hda8': Input/output error
>   0+0 records in
>   0+0 records out
> 
> LBA sector number 29431074 is inside the partition.  18169578 + 11261496 =
> 29431074, verified several times.  11261496 / 2 = 5630748, verified only
> twice, but it is within the quantity of 1K Linux blocks that the partition
> has.  Why is the sector unreadable when read from inside the partition?

If I understand you correctly, there may never have been a bad block.
That is good for Toshiba, no reason to say bad things about their disks.

Also, if there was no bad block, then no reallocation is needed.

You show that dd reads this sector without problems.
But you see an I/O error when it is just at the edge of the partition.
That I/O error may well be generated by Linux, not by the disk.

The details depend on kernel version, and I forgot what kernel
you used. Try  blockdev --getbsz /dev/hda  to see what blocksize
Linux is using. If that is 4096, that is 8 sectors, but only 6 sectors
remain in the partition. Try  blockdev --setbsz 512 /dev/hda
and read again. Maybe this would succeed.

Andries


[didnt you get error messages in dmesg?]


  parent reply	other threads:[~2003-10-26 12:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-26  7:37 ReiserFS, two oddities Norman Diamond
2003-10-26  8:47 ` Oleg Drokin
2003-10-26 12:20 ` Andries Brouwer [this message]
2003-10-26 13:43   ` Norman Diamond

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=20031026122040.GA9906@win.tue.nl \
    --to=aebr@win.tue.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ndiamond@wta.att.ne.jp \
    --cc=reiser@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox