From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PzuQ4-0003sp-7W for mharc-grub-devel@gnu.org; Wed, 16 Mar 2011 13:22:00 -0400 Received: from [140.186.70.92] (port=40449 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzuQ0-0003r0-Kd for grub-devel@gnu.org; Wed, 16 Mar 2011 13:21:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzuPy-0006O6-Ld for grub-devel@gnu.org; Wed, 16 Mar 2011 13:21:55 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:64690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzuPy-0006Nb-E2 for grub-devel@gnu.org; Wed, 16 Mar 2011 13:21:54 -0400 Received: by wyf19 with SMTP id 19so2109164wyf.0 for ; Wed, 16 Mar 2011 10:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type; bh=nXbd+lVkMad6CtqUc96rR4kmD5eRZ+Uz1d98d6Vlg1I=; b=EnHhvqMsZv7bbdbd4qfwAE9s0GLH6u0KLIvoSMVNboIxfPN9ZT1QjVOvrxCfN430hs mUFLhu1JWLCAlLI9H/zlLa+08NS7f17IOgCnBtP7yZ9XSM8ApP2jJdCERBmEIxR8FUfl IfAT21iA8CEGb4/K/vM8uZo/YJq5VmJ400iWE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=PhA2R4vyyWdNJDr0f4U9EM4/9+QimvPW8UDTwGszYjn6AVf62bHJdPPoyNmGebSmVI Dc5R3RFIuB3Vy1MqrlzXHyKLl1GgGJwu0KnH6JugjKlRq+B0+RssZLKTwgCUaTNmXLlE 3/G6OsG0DEa1U8zN4hpK4o0RXECB3/Z9JJMZg= Received: by 10.216.1.149 with SMTP id 21mr387459wed.10.1300296112659; Wed, 16 Mar 2011 10:21:52 -0700 (PDT) Received: from debian.x201.phnet (hg-public-dock-150-dhcp.ethz.ch [82.130.80.150]) by mx.google.com with ESMTPS id b54sm718405wer.45.2011.03.16.10.21.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2011 10:21:51 -0700 (PDT) Message-ID: <4D80F1A6.50606@gmail.com> Date: Wed, 16 Mar 2011 18:21:42 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110303 Icedove/3.0.11 MIME-Version: 1.0 To: grub-devel@gnu.org References: <20110316151332.GC343@caffeine.csclub.uwaterloo.ca> <4D80D75C.9080007@gmail.com> <20110316165849.GD343@caffeine.csclub.uwaterloo.ca> In-Reply-To: <20110316165849.GD343@caffeine.csclub.uwaterloo.ca> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigF62DF1C30B85D029FFE1A940" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 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 17:21:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF62DF1C30B85D029FFE1A940 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 16.03.2011 17:58, Lennart Sorensen wrote: > On Wed, Mar 16, 2011 at 04:29:32PM +0100, Vladimir '=CF=86-coder/phcode= r' Serbinenko wrote: > =20 >> On 16.03.2011 16:13, Lennart Sorensen wrote: >> =20 >>> 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= =2E >>> 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 >>> =20 >> ls -l should show how big it thinks the disk is. Compare it with its >> real size >> =20 >>> 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 >>> =20 >> Looks like int13 is borked. Perhaps it's borked in a way which prevent= s >> 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; >> =20 > OK, the code in 1.98(plus some git stuff) that is in debian uses assemb= ly > 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= of > 4352 sectors, for an 80G drive. That's just messed up. I haven't trie= d > booting it yet to see if it returns the same value then, but I suspect > it will. > > =20 Following change would make GRUB ignore the total_sectors (as an investigation measure): @@ -398,7 +400,7 @@ total_sectors =3D data->cylinders * data->heads * data->sectors;= } =20 - disk->total_sectors =3D total_sectors; + disk->total_sectors =3D GRUB_DISK_SIZE_UNKNOWN; disk->data =3D data; =20 return GRUB_ERR_NONE; --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigF62DF1C30B85D029FFE1A940 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF0EAREKAAYFAk2A8a0ACgkQNak7dOguQgmZ6AEAqKyOzo2bEMnU9kY/UqjfKaTr hfGaNmPFFJrZ6MJB9SoA+INvvnYAFdzgApRKHJFHbaWL3cQpO2k4itBJuCzIgd8= =2mZQ -----END PGP SIGNATURE----- --------------enigF62DF1C30B85D029FFE1A940--