Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KZI6L-0007CZ-5a for mharc-grub-devel@gnu.org; Sat, 30 Aug 2008 00:30:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZI6J-0007At-Ij for grub-devel@gnu.org; Sat, 30 Aug 2008 00:30:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZI6H-00078W-Re for grub-devel@gnu.org; Sat, 30 Aug 2008 00:30:15 -0400 Received: from [199.232.76.173] (port=55580 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZI6H-00078T-NA for grub-devel@gnu.org; Sat, 30 Aug 2008 00:30:13 -0400 Received: from ti-out-0910.google.com ([209.85.142.185]:47678) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZI6H-0000q4-2p for grub-devel@gnu.org; Sat, 30 Aug 2008 00:30:13 -0400 Received: by ti-out-0910.google.com with SMTP id u5so636785tia.10 for ; Fri, 29 Aug 2008 21:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=rg/TXMDdhkwCpwuj6wcoXsIpUWhlpT2gAqVDvSrsTck=; b=v5c00RFBe4vFquxXEESZwO4TCpvL9VjxRIsO9JH/4zMaE6BMR4Am3sYBDfopNr56C0 Y+jnn8DVhykaCcJsRsq6sEoFHTJuK8hty5oMY1Ddmi5a/YuH75KAlrmXve5zkWKJyKyP QXvKu/sE6ZGAa2v/sYINOrlBcH6GxcpjtA7Nc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=xPgHovjeww3r5vyAy9KcBKxabhHTMt/NrqDPO+Q7fUPo4+l8nxczeFhzGmpij/qicb gMz7b51FPh/M6nG5Qr/ATNJsUQ1qqd3EaAdMIVX1fNqMt8eb9CIfhIg5DHMjtWX5cRy8 cW6uzetWZ0TRe0lJ+uVGjDxROR6zAbllOCYAk= Received: by 10.110.37.17 with SMTP id k17mr4198624tik.13.1220070611224; Fri, 29 Aug 2008 21:30:11 -0700 (PDT) Received: by 10.110.57.17 with HTTP; Fri, 29 Aug 2008 21:30:11 -0700 (PDT) Message-ID: Date: Sat, 30 Aug 2008 12:30:11 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <577426.34688.qm@web31601.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_35001_10933056.1220070611213" References: <577426.34688.qm@web31601.mail.mud.yahoo.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Windows,grub and grub2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2008 04:30:15 -0000 ------=_Part_35001_10933056.1220070611213 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sat, Aug 30, 2008 at 4:29 AM, Viswesh S wrote: > Hi, > > I am back with my Windows boot up question using grub and grub2.Sorry for > making the question a bit long. > > Some experiments and results which I did. > > Scenario: One hard disk,different partitions. > > Case 1: > > Partition 1 -> Windows Server 2003 > Partition 2 -> Swap > Partition 3 -> Linux > > Boot loader : Grub2. > > Windows boots up successfully from grub2 using chainloading (hd0,1) +1 > > Case 2: > > Installed server 2008 in the free space in between Server 2003 and swap. > > Partition 1 : Windows server 2003 > Partition 2: Windows server 2008 > Partition 3 :Swap > Partition 4:Linux > > Grub2 doesnt boot up windows with the command chainloader (hd0,1) +1, with > error > > A disk read error occurred > Ctrl+Alt +del to restart. > > But Grub legacy boots up with no issues , with the same command, prefixed > with rootnoverify hd0 > > Case 3: > > Partition 1 :Boot > Partition 2:Windows > Partition 3: Linux > > Same behaviour : Grub2 doesnt boot Windows with chainloader command (hd0,2) > +1 > > Same error as before. > > Not surprisingly grub boots with the same command. > > I had a look at the boot sector code of Windows, which gets copied, by > dumping the partition using dd. > > For me, it looked the same. > > Also another hunch is that,as the error ( A disk read error occurred ),, > happened in Windows boot sector, find the areas in boot sector code of > Windows where it calls this error and goes into an infinite loop. > > So in the different cases, I could see that it is something to do with the > INT 13 call, with functions 41 and 42. > > Can anyone let me know the differences here, with respect to grub2 and grub. > > Also,on more thing is the way chainloader command is written in grub and > grub2.I was finding it difficult to decode the assembly parts in both and > find out the differences. > > Can anyone pour some advice and directions on these. Hi, I thinks it's caused by partition entry pointer %esi which isn't correct in grub2, please see if this patch fixes the problem. -- Bean ------=_Part_35001_10933056.1220070611213 Content-Type: text/x-diff; name=chain.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkhqd2m90 Content-Disposition: attachment; filename=chain.diff ZGlmZiAtLWdpdCBhL2xvYWRlci9pMzg2L3BjL2NoYWlubG9hZGVyLmMgYi9sb2FkZXIvaTM4Ni9w Yy9jaGFpbmxvYWRlci5jCmluZGV4IDgyNWRiYjMuLmFiM2IyMDMgMTAwNjQ0Ci0tLSBhL2xvYWRl ci9pMzg2L3BjL2NoYWlubG9hZGVyLmMKKysrIGIvbG9hZGVyL2kzODYvcGMvY2hhaW5sb2FkZXIu YwpAQCAtMTAxLDEyICsxMDEsMjQgQEAgZ3J1Yl9jaGFpbmxvYWRlcl9jbWQgKGNvbnN0IGNoYXIg KmZpbGVuYW1lLCBncnViX2NoYWlubG9hZGVyX2ZsYWdzX3QgZmxhZ3MpCiAJICAvKiBJbiBpMzg2 LXBjLCB0aGUgaWQgaXMgZXF1YWwgdG8gdGhlIEJJT1MgZHJpdmUgbnVtYmVyLiAgKi8KIAkgIGRy aXZlID0gKGludCkgZGlzay0+aWQ7CiAKLQkgIGlmIChwKQorCSAgaWYgKChwKSAmJiAocC0+aW5k ZXggPCA0KSkKIAkgICAgewotCSAgICAgIGdydWJfZGlza19yZWFkIChkaXNrLCBwLT5vZmZzZXQs IDQ0NiwgNjQsCi0JCQkgICAgICAoY2hhciAqKSBHUlVCX01FTU9SWV9NQUNISU5FX1BBUlRfVEFC TEVfQUREUik7CisgICAgICAgICAgICAgIGludCBpOworCisJICAgICAgZGlzay0+ZGV2LT5yZWFk IChkaXNrLCAwLCAxLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjaGFyICopIEdS VUJfTUVNT1JZX01BQ0hJTkVfU0NSQVRDSF9BRERSKTsKKworICAgICAgICAgICAgICBncnViX21l bWNweSAoKGNoYXIgKikgR1JVQl9NRU1PUllfTUFDSElORV9QQVJUX1RBQkxFX0FERFIsCisgICAg ICAgICAgICAgICAgICAgICAgICAgICAoY2hhciAqKSBHUlVCX01FTU9SWV9NQUNISU5FX1NDUkFU Q0hfQUREUiArIDB4MWJlLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgNjQpOworCiAJICAg ICAgcGFydF9hZGRyID0gKHZvaWQgKikgKEdSVUJfTUVNT1JZX01BQ0hJTkVfUEFSVF9UQUJMRV9B RERSCiAJCQkJICAgICsgKHAtPmluZGV4IDw8IDQpKTsKKworICAgICAgICAgICAgICBmb3IgKGkg PSAwOyBpIDwgNDsgaSsrKQorICAgICAgICAgICAgICAgICooKGNoYXIgKikgR1JVQl9NRU1PUllf TUFDSElORV9QQVJUX1RBQkxFX0FERFIgKyBpICogMTYpID0gMDsKKworICAgICAgICAgICAgICAq KChjaGFyICopIHBhcnRfYWRkcikgPSAweDgwOwogCSAgICB9CiAJfQogCg== ------=_Part_35001_10933056.1220070611213--