From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PWazq-000054-8r for mharc-grub-devel@gnu.org; Sat, 25 Dec 2010 15:45:46 -0500 Received: from [140.186.70.92] (port=33201 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWazn-00004u-W4 for grub-devel@gnu.org; Sat, 25 Dec 2010 15:45:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PWazm-0000Z2-IP for grub-devel@gnu.org; Sat, 25 Dec 2010 15:45:43 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:34062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PWazl-0000Vp-RW for grub-devel@gnu.org; Sat, 25 Dec 2010 15:45:42 -0500 Received: by wyj26 with SMTP id 26so7938672wyj.0 for ; Sat, 25 Dec 2010 12:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=31ZhLkyoW7GkRZ3qUWZ+np7c8LMwgIDlVMbx4EGW8wE=; b=K0g53p8cqYe1uWOpqApG0hwhSqGdcwKAaDF/IkJflGsFR9BD9oTW7/jfln/WiMyBmk 7Ds2kVJVk3rjn48lkhk2T2ZcKrZPCDABUay/e5zTKbQRT6i++5A7iMFmzh3uJrKBtQ2H /O51f09m5twELWhlH5JARc43IXVqNO/N9EDPQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=H70N6HxmQEh/qsFp1LiwikWSdWysLdSWWYgqMxxF/jiC8y5jsF+LrcaeZwA9g4O+XV t5iRdTmDCApM2DdgJOlBr5+SvUj3VIYdcIDuqDhSnmmVmlHtKwycEcU5Whd0BL/4yHFW SIWN7MYYDfI9Rw/ACXX+BQWZFMd/HwcP2TmbQ= Received: by 10.216.153.204 with SMTP id f54mr10385442wek.76.1293309940316; Sat, 25 Dec 2010 12:45:40 -0800 (PST) Received: from debian.bg45.phnet (12-131.62-81.cust.bluewin.ch [81.62.131.12]) by mx.google.com with ESMTPS id p49sm3933363wes.18.2010.12.25.12.45.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 25 Dec 2010 12:45:38 -0800 (PST) Message-ID: <4D1657E8.40202@gmail.com> Date: Sat, 25 Dec 2010 21:45:28 +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/20101211 Icedove/3.0.11 MIME-Version: 1.0 To: grub-devel@gnu.org References: <20100907234220.54cf8040@gmail.com> <4C87AB87.2070508@googlemail.com> <20100908154603.GN21862@riva.ucam.org> <4C87BA4D.4070807@googlemail.com> In-Reply-To: <4C87BA4D.4070807@googlemail.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig7C087EC8698C51B6B8145939" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Andreas Born Subject: Re: GRUB2 fails when booting from CD 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: Sat, 25 Dec 2010 20:45:44 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7C087EC8698C51B6B8145939 Content-Type: multipart/mixed; boundary="------------000606010201030705040602" This is a multi-part message in MIME format. --------------000606010201030705040602 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09/08/2010 06:31 PM, Andreas Born wrote: > Am 08.09.2010 17:46, schrieb Colin Watson: >> On Wed, Sep 08, 2010 at 05:28:07PM +0200, Andreas Born wrote: >> =20 >>> - Starting Grub2 fails on my pretty new desktop (the only such repo= rt >>> as far as I'm concerned) >>> =20 >> Fails how? >> =20 > After selecting to boot from cdrom in the bios it outputs the following= : > Welcome to GRUB! > > error: hd111 cannot get C/H/S values. > Enetering rescue mode... > grub rescue> > > Then I'm at the rescue prompt. > Looks like your BIOS has problems with cd drive. I attach 2 patches. One to try to gather more info for better workaround and another one to basically ignore cdinfo altogether. Could you test them? > The problem is reproducible with SalixLive or a minimal image I've > created for testing purpose, but so far only on that one machine of > mine. You can acquire the latter here: > http://gaia.homelinux.org/misc/grub-test.iso (4.3M) > > I've experimented a bit with ls on the rescue prompt here's the output:= > > ls > (hd0) > > ls (hd0) > error: unknown filesystem > > If you need anything else, just let me know and I'll try to do my best > to help you. > > Regards, > Andreas > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------000606010201030705040602 Content-Type: text/x-diff; name="cdfailinf.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cdfailinf.diff" =3D=3D=3D modified file 'grub-core/disk/i386/pc/biosdisk.c' --- grub-core/disk/i386/pc/biosdisk.c 2010-09-18 22:04:31 +0000 +++ grub-core/disk/i386/pc/biosdisk.c 2010-12-25 20:41:28 +0000 @@ -620,10 +620,19 @@ grub_memset (cdrp, 0, sizeof (*cdrp)); cdrp->size =3D sizeof (*cdrp); cdrp->media_type =3D 0xFF; - if ((! grub_biosdisk_get_cdinfo_int13_extensions (grub_boot_drive, cdr= p)) && - ((cdrp->media_type & GRUB_BIOSDISK_CDTYPE_MASK) - =3D=3D GRUB_BIOSDISK_CDTYPE_NO_EMUL)) - cd_drive =3D cdrp->drive_no; + { + int a; + a =3D grub_biosdisk_get_cdinfo_int13_extensions (grub_boot_drive, cd= rp); + =20 + if ((! a) && 0 && + ((cdrp->media_type & GRUB_BIOSDISK_CDTYPE_MASK) + =3D=3D GRUB_BIOSDISK_CDTYPE_NO_EMUL)) + cd_drive =3D cdrp->drive_no; + grub_printf ("%d %x %x\n", a, cdrp->media_type, cdrp->drive_no); + grub_getkey (); + grub_getkey (); + grub_getkey (); + } =20 grub_disk_dev_register (&grub_biosdisk_dev); } --------------000606010201030705040602 Content-Type: text/x-diff; name="cdfailwa.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cdfailwa.diff" =3D=3D=3D modified file 'grub-core/disk/i386/pc/biosdisk.c' --- grub-core/disk/i386/pc/biosdisk.c 2010-09-18 22:04:31 +0000 +++ grub-core/disk/i386/pc/biosdisk.c 2010-12-25 20:42:08 +0000 @@ -624,6 +624,8 @@ ((cdrp->media_type & GRUB_BIOSDISK_CDTYPE_MASK) =3D=3D GRUB_BIOSDISK_CDTYPE_NO_EMUL)) cd_drive =3D cdrp->drive_no; + if (grub_boot_drive >=3D 0x90) + cd_drive =3D grub_boot_drive; =20 grub_disk_dev_register (&grub_biosdisk_dev); } --------------000606010201030705040602-- --------------enig7C087EC8698C51B6B8145939 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.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk0WV+gACgkQNak7dOguQgnyNgD+OnVB3fclJeXNQBC28BNs3pP7 NaP0Uv3MGAhm94iw67kA+wT1tNVrINJS8vTvk+g3741KahMA9xTF3pXz1hz2lADJ =GkUI -----END PGP SIGNATURE----- --------------enig7C087EC8698C51B6B8145939--