From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KZAbH-00059b-9f for mharc-grub-devel@gnu.org; Fri, 29 Aug 2008 16:29:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZAbE-00058h-OC for grub-devel@gnu.org; Fri, 29 Aug 2008 16:29:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZAbE-00057u-9K for grub-devel@gnu.org; Fri, 29 Aug 2008 16:29:40 -0400 Received: from [199.232.76.173] (port=55101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZAbD-00057j-UD for grub-devel@gnu.org; Fri, 29 Aug 2008 16:29:39 -0400 Received: from web31601.mail.mud.yahoo.com ([68.142.198.147]:26491) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KZAbD-0002Er-E7 for grub-devel@gnu.org; Fri, 29 Aug 2008 16:29:39 -0400 Received: (qmail 34730 invoked by uid 60001); 29 Aug 2008 20:29:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=danTVQQWw4wiaRDJPdGpMsGgXm2XCLLAlkmXfUehqzNcQO1pAWxW6PbgZWxGQZS6tZhLGlamAOS10jHeroEcGtvx0c/+GI4XUqRyvayQqz3poiaz5tlHvo1Fw5WluHwN6pYwX8WO+MAB2A6tnezq4vMHFdj1DbKRqcRKOL68PhM=; X-YMail-OSG: uvvCIMkVM1nquUkv84gXEgIk3GBnzogmSG8tSE.KLyicTOl.vZdLAubcOJOmpOVkraPi99kXeYrzazJBg0xa9gB_JEua7lE8CqVWUnoTumOYZJ_9rYVzhdFKPIVYv9GuoPxZcPmdIe7mlybdskr46es- Received: from [122.167.200.77] by web31601.mail.mud.yahoo.com via HTTP; Fri, 29 Aug 2008 13:29:38 PDT X-Mailer: YahooMailRC/1096.28 YahooMailWebService/0.7.218.2 Date: Fri, 29 Aug 2008 13:29:38 -0700 (PDT) From: Viswesh S To: grub-devel@gnu.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-330130351-1220041778=:34688" Message-ID: <577426.34688.qm@web31601.mail.mud.yahoo.com> X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) Subject: 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: Fri, 29 Aug 2008 20:29:40 -0000 --0-330130351-1220041778=:34688 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi,=0A=0AI am back with my Windows boot up question using grub and grub2.So= rry for making the question a bit long.=0A=0ASome experiments and results w= hich I did.=0A=0AScenario: One hard disk,different partitions.=0A=0ACase 1:= =0A=0APartition 1 -> Windows Server 2003=0APartition 2 -> Swap=0APartition= 3 -> Linux=0A=0ABoot loader : Grub2.=0A=0AWindows boots up successfully fr= om grub2 using chainloading (hd0,1) +1=0A=0ACase 2:=0A=0AInstalled server 2= 008 in the=C2=A0free space in between Server 2003 and swap.=0A=0APartition = 1 : Windows server 2003=0APartition 2: Windows server 2008=0APartition 3 :S= wap=0APartition 4:Linux=0A=0AGrub2 doesnt boot up windows with the command = chainloader (hd0,1) +1, with error =0A=0AA disk read error occurred =0ACtrl= +Alt +del to restart.=0A=0ABut Grub legacy boots up with no issues , with t= he same command, prefixed with rootnoverify hd0=0A=0ACase 3:=0A=0APartition= 1 :Boot=0APartition 2:Windows=0APartition 3: Linux=0A=0ASame behaviour : G= rub2 doesnt boot Windows with chainloader command (hd0,2) +1=0A=0ASame erro= r as before.=0A=0ANot surprisingly grub boots with the same command.=0A=0AI= had a look at the boot sector code of Windows, which gets copied, by dumpi= ng the partition using dd.=0A=0AFor me, it looked the same.=0A=0AAlso anoth= er 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.=0A=0ASo in the different = cases, I could see that it is something to do with the INT 13 call, with fu= nctions 41 and 42.=0A=0ACan anyone let me know the differences here, with r= espect to grub2 and grub.=0A=0AAlso,on more thing is the way chainloader co= mmand is written in grub and grub2.I was finding it difficult to decode the= assembly parts in both and find out the differences.=0A=0ACan anyone pour = some advice and directions on these.=0A=0AThanks in advance,=0A=0AViswesh= =0A=0A=0A Unlimited freedom, unlimited storage. Get it now, on http://= help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ --0-330130351-1220041778=:34688 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi,
=0A
 
=0A
I am back wit= h my Windows boot up question using grub and grub2.Sorry for making the que= stion a bit long.
=0A
 
=0A
Some experiments and res= ults which I did.
=0A
 
=0A
Scenario: One hard disk,= different partitions.
=0A
 
=0A
Case 1:
=0A 
=0A
Partition 1 -> Windows Server 2003
=0A
Pa= rtition 2 -> Swap
=0A
Partition 3 -> Linux
=0A
&nbs= p;
=0A
Boot loader : Grub2.
=0A
 
=0A
Windo= ws boots up successfully from grub2 using chainloading (hd0,1) +1
=0A<= DIV> =0A
Case 2:
=0A
 
=0A
Installed = server 2008 in the free space in between Server 2003 and swap.
= =0A
 
=0A
Partition 1 : Windows server 2003
=0A
= Partition 2: Windows server 2008
=0A
Partition 3 :Swap
=0APartition 4:Linux=0A
 
=0A
Grub2 doesnt boot up w= indows with the command chainloader (hd0,1) +1, with error
=0A
&n= bsp;
=0A
A disk read error occurred
=0A
Ctrl+Alt +del to= restart.
=0A
 
=0A
But Grub legacy boots up with no= issues , with the same command, prefixed with rootnoverify hd0
=0A =0A
Case 3:
=0A
 
=0A
Partition 1 = :Boot
=0A
Partition 2:Windows
=0A
Partition 3: Linux=0A
 
=0A
Same behaviour : Grub2 doesnt boot Windows wit= h chainloader command (hd0,2) +1
=0A
 
=0A
Same erro= r as before.
=0A
 
=0A
Not surprisingly grub boots w= ith the same command.
=0A
 
=0A
I had a look at the = boot sector code of Windows, which gets copied, by dumping the partition us= ing dd.
=0A
 
=0A
For me, it looked the same.
= =0A
 
=0A
Also another hunch is that,as the error ( A dis= k read error occurred ),, happened in Windows boot sector, find the areas i= n boot sector code of Windows where it calls this error and goes into an in= finite loop.
=0A
 
=0A
So in the different cases, I = could see that it is something to do with the INT 13 call, with functions 4= 1 and 42.
=0A
 
=0A
Can anyone let me know the diffe= rences here, with respect to grub2 and grub.
=0A
 
=0AAlso,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.
=0A
 
=0A
Can anyone pour = some advice and directions on these.
=0A
 
=0A
Thank= s in advance,
=0A
 
=0A
Viswesh

=0A= =0A=0A=0A
Unlimited freedom, unlimited stor= age. Get it now --0-330130351-1220041778=:34688--