Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Pzx20-000808-F1 for mharc-grub-devel@gnu.org; Wed, 16 Mar 2011 16:09:20 -0400 Received: from [140.186.70.92] (port=34490 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pzx1x-0007x0-M6 for grub-devel@gnu.org; Wed, 16 Mar 2011 16:09:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pzx1q-0002yU-4f for grub-devel@gnu.org; Wed, 16 Mar 2011 16:09:17 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:44411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pzx1p-0002yB-QA for grub-devel@gnu.org; Wed, 16 Mar 2011 16:09:10 -0400 Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id 01703349; Wed, 16 Mar 2011 16:09:08 -0400 (EDT) Date: Wed, 16 Mar 2011 16:09:08 -0400 To: Lennart Sorensen Message-ID: <20110316200908.GH343@caffeine.csclub.uwaterloo.ca> References: <20110316151332.GC343@caffeine.csclub.uwaterloo.ca> <4D80D75C.9080007@gmail.com> <20110316173216.GE343@caffeine.csclub.uwaterloo.ca> <4D810D54.1020008@cfl.rr.com> <20110316192358.GG343@caffeine.csclub.uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110316192358.GG343@caffeine.csclub.uwaterloo.ca> User-Agent: Mutt/1.5.18 (2008-05-17) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 129.97.134.17 Cc: The development of GNU GRUB Subject: Re: How to debug 'out of disk' error. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2011 20:09:19 -0000 On Wed, Mar 16, 2011 at 03:23:58PM -0400, Lennart Sorensen wrote: > On Wed, Mar 16, 2011 at 03:19:48PM -0400, Phillip Susi wrote: > > On 3/16/2011 1:32 PM, Lennart Sorensen wrote: > > > So I now have some debug info: > > > > > > version=48 > > > total_sectors=156312576 C=16383 H=16 S=63 > > > error: hd0,msdos1 out of disk. > > > Entering rescue mode... > > > grub rescue> > > > > > > So version is returning something, and it is actually getting the disk > > > size properly. I wonder what else could cause the out of disk message > > > then. > > > > What does the partition table look like? It doesn't extend beyond > > sector 156312575 does it? > > > > Also I wonder about why H=16. It should be 255. > > Well usually it should, but not always. > > Here is the partition table: > > Disk /dev/sda: 80.0 GB, 80032038912 bytes > 255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors > Units = sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x0004a073 > > Device Boot Start End Blocks Id System > /dev/sda1 * 2048 152350719 76174336 83 Linux > /dev/sda2 152352766 156311551 1979393 5 Extended > /dev/sda5 152352768 156311551 1979392 82 Linux swap / Solaris I have now determined that the call to grub_biosdisk_rw_int13_extensions fails here: if (grub_biosdisk_rw_int13_extensions (cmd + 0x42, data->drive, dap)) { /* Fall back to the CHS mode. */ data->flags &= ~GRUB_BIOSDISK_FLAG_LBA; disk->total_sectors = data->cylinders * data->heads * data->sectors; return grub_biosdisk_rw (cmd, disk, sector, size, segment); } Then LBA gets disabled, and access beyond CHS range is gone, and the error about 'out of disk' happens. -- Len Sorensen