Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Pzu3w-00021V-Fs for mharc-grub-devel@gnu.org; Wed, 16 Mar 2011 12:59:08 -0400 Received: from [140.186.70.92] (port=37657 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pzu3o-0001vW-OC for grub-devel@gnu.org; Wed, 16 Mar 2011 12:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pzu3f-0000U6-A2 for grub-devel@gnu.org; Wed, 16 Mar 2011 12:58:59 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:34702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pzu3e-0000TK-U3 for grub-devel@gnu.org; Wed, 16 Mar 2011 12:58:51 -0400 Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id 01A2C127C; Wed, 16 Mar 2011 12:58:49 -0400 (EDT) Date: Wed, 16 Mar 2011 12:58:49 -0400 To: The development of GNU GRUB Message-ID: <20110316165849.GD343@caffeine.csclub.uwaterloo.ca> References: <20110316151332.GC343@caffeine.csclub.uwaterloo.ca> <4D80D75C.9080007@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4D80D75C.9080007@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 129.97.134.17 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 16:59:07 -0000 On Wed, Mar 16, 2011 at 04:29:32PM +0100, Vladimir '=CF=86-coder/phcoder'= Serbinenko wrote: > On 16.03.2011 16:13, Lennart Sorensen wrote: > > I am trying to figure out why grub2 (from Debian Squeeze) gives an 'o= ut > > of disk' error when trying to boot from the HD after doing an install= . > > It ends up at a grub rescue prompt, given it can't even read the disk > > well enough to load the full grub. Doing ls shows the disks, and I c= an > > show the root directory of a partition, but anything further seems to > > hit the same 'out of disk' error. > > > > =20 > ls -l should show how big it thinks the disk is. Compare it with its > real size > > The system is a Compulab CM-iTC which uses an intel tunnelcreek atom > > (the new one) with a phoenix bios. So far Compulab's response when t= old > > it won't boot grub2 was "We know, but syslinux works fine.", which to > > me is not a solution at all. The same system also hangs the Linux 2.= 6.32 > > kernel unless 'edd=3Doff' is added to the kernel command line. > > > > =20 > Looks like int13 is borked. Perhaps it's borked in a way which prevents > GRUB from detecting 13/42 function. You can try to force int13/42 by: > =3D=3D=3D modified file 'grub-core/disk/i386/pc/biosdisk.c' > --- grub-core/disk/i386/pc/biosdisk.c 2011-01-04 14:42:47 +0000 > +++ grub-core/disk/i386/pc/biosdisk.c 2011-03-16 15:28:26 +0000 > @@ -145,6 +145,8 @@ > { > struct grub_bios_int_registers regs; > =20 > + return 1; > + > regs.edx =3D drive & 0xff; > regs.eax =3D 0x4100; > regs.ebx =3D 0x55aa; OK, the code in 1.98(plus some git stuff) that is in debian uses assembly code for that part. I changed the place calling it instead and added some debug info. When running from linux, the diskinfo bios call returns a total_sectors o= f 4352 sectors, for an 80G drive. That's just messed up. I haven't tried booting it yet to see if it returns the same value then, but I suspect it will. --=20 Len Sorensen