All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Klotz <peter.klotz@aon.at>
To: linux-ide@vger.kernel.org
Subject: 2.6.24.*/2.6.25.*: attempt to access beyond end of device
Date: Mon, 12 May 2008 07:31:18 +0200	[thread overview]
Message-ID: <4827D626.50903@aon.at> (raw)

I compiled several kernel.org kernels (2.6.24.3, 2.6.24.7, 2.6.25.1, 
2.6.25.3) but when booting them up the following messages appear:

  attempt to access beyond end of device
  sda: rw=0, want=273956253, limit=268435455
  Buffer I/O error on device sda3, logical block 39085952
  attempt to access beyond end of device
  sda: rw=0, want=273956254, limit=268435455
  Buffer I/O error on device sda3, logical block 39085953
  attempt to access beyond end of device
...
  attempt to access beyond end of device
  sda: rw=0, want=273956255, limit=268435455
  attempt to access beyond end of device
  sda: rw=0, want=273956256, limit=268435455
  attempt to access beyond end of device


There is no problem when using the supplied kernel of Ubuntu 8.04 
(2.6.24-16.30).

I tracked the problem down to this difference in the dmesg output of the 
bootup sequences:

2.6.24-16.30 (Ubuntu 8.04):

  ata1.00: HPA unlocked: 268435455 -> 312581808, native 312581808
  ata1.00: ATA-8: SAMSUNG HM160HC, LQ100-10, max UDMA/100
  ata1.00: 312581808 sectors, multi 16: LBA48

2.6.24.7:

  ata1.00: HPA detected: current 268435455, native 312581808
  ata1.00: ATA-8: SAMSUNG HM160HC, LQ100-10, max UDMA/100
  ata1.00: 268435455 sectors, multi 16: LBA48


The HDD is 160GB in size, so 312581808 sectors seem much more logical 
than 268435455 sectors. It seems that kernel.org kernels limit the HDD 
to 128GiB.

Here the "fdisk -l" output:

  user@centrino:~$ sudo fdisk -l /dev/sda

  Disk /dev/sda: 160.0 GB, 160041885696 bytes
  255 heads, 63 sectors/track, 19457 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Disk identifier: 0x0008e799

     Device Boot      Start         End      Blocks   Id  System
  /dev/sda1   *           1          31      248976   83  Linux
  /dev/sda2              32       14620   117186142+  83  Linux
  /dev/sda3           14621       17053    19543072+   7  HPFS/NTFS

I may have been lucky up to now because I only use partitions sda1 and 
sda2 on this drive.

Any help regarding this issue is appreciated.

Please CC me since I am no list member.

Best regards, Peter.

             reply	other threads:[~2008-05-12  5:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-12  5:31 Peter Klotz [this message]
2008-05-12  9:59 ` 2.6.24.*/2.6.25.*: attempt to access beyond end of device Alan Cox
2008-05-12 15:20   ` Peter Klotz
2008-05-12 10:31 ` Gene Heskett

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=4827D626.50903@aon.at \
    --to=peter.klotz@aon.at \
    --cc=linux-ide@vger.kernel.org \
    /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.