lkml.org 
[lkml]   [2003]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ReiserFS, two oddities
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?]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.053 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site