From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KRNT6-0007iO-65 for mharc-grub-devel@gnu.org; Fri, 08 Aug 2008 04:37:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRNT3-0007gF-9f for grub-devel@gnu.org; Fri, 08 Aug 2008 04:37:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRNT1-0007eQ-Dv for grub-devel@gnu.org; Fri, 08 Aug 2008 04:36:59 -0400 Received: from [199.232.76.173] (port=36208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRNT0-0007dz-By for grub-devel@gnu.org; Fri, 08 Aug 2008 04:36:58 -0400 Received: from web31601.mail.mud.yahoo.com ([68.142.198.147]:24983) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KRNSz-0007Kb-VM for grub-devel@gnu.org; Fri, 08 Aug 2008 04:36:58 -0400 Received: (qmail 92543 invoked by uid 60001); 8 Aug 2008 06:50:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=rL39AFiqu/9UtpLKza7PDjK41cfvTSvlqKIwOpPEgMRHhDp3rMo/Vu8GaSSJSMSbjrBpI1b5Voxfhtjc3Jk89+AsYgzMA4DTgnoPa6oKDzSDezQ0wLbdOiYmfVy8HWrVn2JPrWM+3FT8hU8a8SzcenL3rsi296Ux7YMTHmQvslc=; Received: from [202.62.94.130] by web31601.mail.mud.yahoo.com via HTTP; Thu, 07 Aug 2008 23:50:14 PDT X-Mailer: YahooMailRC/1042.48 YahooMailWebService/0.7.218 Date: Thu, 7 Aug 2008 23:50:14 -0700 (PDT) From: Viswesh S To: The development of GRUB 2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1880426090-1218178214=:90397" Message-ID: <675279.90397.qm@web31601.mail.mud.yahoo.com> X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) Subject: Re: Windows boot 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, 08 Aug 2008 08:37:01 -0000 --0-1880426090-1218178214=:90397 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0A=0A=0A=0A----- Original Message ----=0AFrom: Bean = =0ATo: The development of GRUB 2 =0ASent: Friday, 8 Aug= ust, 2008 12:10:24 PM=0ASubject: Re: Windows boot=0A=0AOn Fri, Aug 8, 2008 = at 2:22 PM, Viswesh S wrote:=0A>=0A>=0A> ----- Or= iginal Message ----=0A> From: Bean =0A> To: The develo= pment of GRUB 2 =0A> Sent: Friday, 8 August, 2008 9:13:= 09 AM=0A> Subject: Re: Windows boot=0A>=0A> On Fri, Aug 8, 2008 at 9:58 AM,= Viswesh S wrote:=0A>>=0A>>=0A>> ----- Original M= essage ----=0A>> From: Javier Mart=C3=ADn =0A>> To: T= he development of GRUB 2 =0A>> Sent: Friday, 8 August, = 2008 3:56:35 AM=0A>> Subject: Re: Windows boot=0A>>=0A>> Hi again,=0A>>=0A>= > 2008/8/7 Viswesh S :=0A>>> Hi,=0A>>>=0A>>> I ins= talled ubuntu in the same harddisk(hda) as windows.=0A>>>=0A>>> After insta= lling ubuntu, using grub legacy, I was able to log in to=0A>>> windows,=0A>= >> using the entries, rootnoverify and chainloader +1.=0A>>>=0A>>> But when= I install grub2 and then modify the grub.cfg with the following,=0A>>> sta= tements, it is not working, says ...A disk read error occurred ,Press=0A>>>= Ctrl+Alt+Del .=0A>>>=0A>>> This is my grub.cfg=0A>>>=0A>>> menuentry "Wind= ows" {=0A>>>=C2=A0 =C2=A0 set root=3D(hd0,3)=0A>>>=C2=A0 =C2=A0 chainloader= +1=0A>>>=0A>>> }=0A>>>=0A>>> My windows file sytem is in NTFS and not vfat= =0A>>>=0A>>> One more thing to check with is, the need of ntfs mod present = as part of=0A>>> grub2.So where exactly that is getting used,though I have = tried to load=0A>>> the=0A>>> module ntfs and ntfscomp in grub using insmod= in grub menu,...but no=0A>>> positive results.=0A>> The FS only matters if= you try to access files on the volume, but=0A>> chainloader just reads raw= sectors from disk, so the FS module does=0A>> not matter: you could have a= n SFS partition for the sake of it and it=0A>> would work if the superblock= was executable.=0A>>>=0A>>> What might be in grub2, which prevents windows= to boot.=0A>> Hmm... you could try booting (hd1) instead of (hd1,1), i.e. = Windows'=0A>> MBR instead of its boot sector directly. I'll be back in town= tomorrow=0A>> night and then I'll be able to look at my own GRUB config fi= le, but=0A>> Windows has always been a wild beast to master. For the record= , my=0A>> tests were with Windows XP Home in an Athlon X2 and with Windows = XP=0A>> x64 on an Athlon 64. Thus, I don't know if Intel CPUs triple-fault = on=0A>> my code (improbable, because it runs on QEMU) or if Windows Vista= =0A>> (which has a changed boot process) works with it.=0A>>=0A>>=0A>> Hi,= =0A>>=0A>> Windows I am trying to boot is Windows Server 2003, but anyway t= hat doesnt=0A>> matter, as from legacy grub,I am able to boot.This makes it= more=0A>> interesting, as I feel we are missing some small intricacy in gr= ub2 in=0A>> this=0A>> case.=0A>>=0A>> Let me also have a look.=0A>=0A> Hi,= =0A>=0A> What's the command you use in grub legacy ?=0A>=0A> BTW, you shoul= d know that device number of grub2 is not the same as=0A> grub legacy, the = first partition is (hd0,1) instead of (hd0,0).=0A> Anyway, you can use ls t= o list the current devices.=0A>=0A> --=0A> Bean=0A> Hi,=0A>=0A> The partiti= on number difference I am aware of.That difference was taken into=0A> accou= nt.=0A>=0A> In the case of grub legacy,the grub.cfg was in this way.=0A>=0A= > menuentry "Windows" {=0A>=0A> rootnoverify=0A> chainloader +1=0A> }=0A>= =0A> As windows is in the 3 partition, using ls (hd0,3) I could see windows= =0A> files.=0A>=0A> so the grub.cfg=0A>=0A> menuentry "Win" {=0A>=0A> chain= loader (hd0,3)+1=0A> }=0A>=0A> (or)=0A>=0A> menuentry "Win" {=0A> set root= =3D(hd0,3)=0A> chainloader +1=0A> }=0A>=0A> Tried both the combinations.But= not working, getting the message ." A disk=0A> read Error occurred=0A>=0A>= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 Press Ctrl+Alt+Del to restart.=0A>=0A> I am not sure whether thi= s is a filesystem issue (ntfs) which grub2 is not=0A> able to identify as s= uch (or) Grub2 is not able to read the boot sector=0A> correctly.( As=C2=A0= legacy grub was able to boot quite easily the same thing)=0A>=0A> I am bad= ly stuck and I dont want to go back to legacy grub also.=0A=0AHi,=0A=0AI th= ink it's not related to ntfs, chainloader command read the first=0Asector, = it doesn't matter what file system is used.=0A=0ABut I do remember a small = issue with chainloader command of grub2, the=0Apartition entry pointed to b= y %esi is not correct, I wonder if this=0Ahave something to do with your pr= oblem.=0A=0AHi,=0AThanks,let me have a look at the chainloader command in g= rub2 and in legacy grub.=0ACould you let me know the issue which you faced = in the chainloader command.=0AViswesh=0A=0A-- =0ABean=0A=0A=0A=0A__________= _____________________________________=0AGrub-devel mailing list=0AGrub-deve= l@gnu.org=0Ahttp://lists.gnu.org/mailman/listinfo/grub-devel=0A=0A=0A=0A = Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.c= om/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ --0-1880426090-1218178214=:90397 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

=0A

=0A
----- Original Message ----
From: Bean <b= ean123ch@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.= org>
Sent: Friday, 8 August, 2008 12:10:24 PM
Subject: Re: Windows= boot

On Fri, Aug 8, 2008 at 2:22 PM, Viswesh S <viswe= sh_vichu@yahoo.com> wrote:
>
>
> ----- Original Me= ssage ----
> From: Bean <bean123ch@gmail.com>
> To= : The development of GRUB 2 <grub-devel@gnu.org>
> Sent: F= riday, 8 August, 2008 9:13:09 AM
> Subject: Re: Windows boot
><= BR>> On Fri, Aug 8, 2008 at 9:58 AM, Viswesh S <viswesh_vichu@yahoo.com>= wrote:
>>
>>
>> ----- Original Message ----
= >> From: Javier Mart=C3=ADn <lordhabbit@gmail.com>
= >> To: The development of GRUB 2 <grub-devel@gnu.org>
&= gt;> Sent: Friday, 8 August, 2008 3:56:35 AM
>> Subject: Re: Wi= ndows boot
>>
>> Hi again,
>>
>> 2008/8= /7 Viswesh S <viswesh_vichu@yahoo.com>:
>>>= ; Hi,
>>>
>>> I installed ubuntu in the same harddi= sk(hda) as windows.
>>>
>>> After installing ubuntu= , using grub legacy, I was able to log in to
>>> windows,
&g= t;>> using the entries, rootnoverify and chainloader +1.
>>>
>= ;>> But when I install grub2 and then modify the grub.cfg with the fo= llowing,
>>> statements, it is not working, says ...A disk read= error occurred ,Press
>>> Ctrl+Alt+Del .
>>>
&g= t;>> This is my grub.cfg
>>>
>>> menuentry "W= indows" {
>>>    set root=3D(hd0,3)
>>>&n= bsp;   chainloader +1
>>>
>>> }
>>>= ;
>>> My windows file sytem is in NTFS and not vfat
>>= >
>>> One more thing to check with is, the need of ntfs mod = present as part of
>>> grub2.So where exactly that is getting u= sed,though I have tried to load
>>> the
>>> module = ntfs and ntfscomp in grub using insmod in grub menu,...but no
>>&g= t; positive results.
>> The FS only matters if you try to access files on the volume, but
>> chainloader just reads raw sec= tors from disk, so the FS module does
>> not matter: you could hav= e an SFS partition for the sake of it and it
>> would work if the = superblock was executable.
>>>
>>> What might be in= grub2, which prevents windows to boot.
>> Hmm... you could try bo= oting (hd1) instead of (hd1,1), i.e. Windows'
>> MBR instead of it= s boot sector directly. I'll be back in town tomorrow
>> night and= then I'll be able to look at my own GRUB config file, but
>> Wind= ows has always been a wild beast to master. For the record, my
>> = tests were with Windows XP Home in an Athlon X2 and with Windows XP
>= > x64 on an Athlon 64. Thus, I don't know if Intel CPUs triple-fault on<= BR>>> my code (improbable, because it runs on QEMU) or if Windows Vis= ta
>> (which has a changed boot process) works with it.
>>
>>
>> Hi,
>>
>> Window= s I am trying to boot is Windows Server 2003, but anyway that doesnt
>= ;> matter, as from legacy grub,I am able to boot.This makes it more
&= gt;> interesting, as I feel we are missing some small intricacy in grub2= in
>> this
>> case.
>>
>> Let me also = have a look.
>
> Hi,
>
> What's the command you use= in grub legacy ?
>
> BTW, you should know that device number o= f grub2 is not the same as
> grub legacy, the first partition is (hd0= ,1) instead of (hd0,0).
> Anyway, you can use ls to list the current = devices.
>
> --
> Bean
> Hi,
>
> The pa= rtition number difference I am aware of.That difference was taken into
&= gt; account.
>
> In the case of grub legacy,the grub.cfg was in= this way.
>
> menuentry "Windows" {
>
> rootnoverify
> chainloader +1
> }
>
> As windows i= s in the 3 partition, using ls (hd0,3) I could see windows
> files.>
> so the grub.cfg
>
> menuentry "Win" {
>> chainloader (hd0,3)+1
> }
>
> (or)
>
> = menuentry "Win" {
> set root=3D(hd0,3)
> chainloader +1
>= }
>
> Tried both the combinations.But not working, getting the= message ." A disk
> read Error occurred
>
>   =                     Pres= s Ctrl+Alt+Del to restart.
>
> I am not sure whether this is a = filesystem issue (ntfs) which grub2 is not
> able to identify as such= (or) Grub2 is not able to read the boot sector
> correctly.( As = ; legacy grub was able to boot quite easily the same thing)
>
>= I am badly stuck and I dont want to go back to legacy grub also.

Hi,

I think it's not related to ntfs, chainloader comm= and read the first
sector, it doesn't matter what file system is used.
But I do remember a small issue with chainloader command of grub2, th= e
partition entry pointed to by %esi is not correct, I wonder if thishave something to do with your problem.
=0A
 
=0A
Hi,
= =0A
Thanks,let me have a look at the chainloader command in gru= b2 and in legacy grub.
=0A
 
=0A
Could you let me know the issue= which you faced in the chainloader command.
=0A
 
=0A
Viswesh=0A
 
=0A
 
=0A
 
=0A
 
=0A
 =0A
 
=0A
 
=0A

--
Bean

=0A
 =0A

_______________________________________________
Grub-devel mailin= g list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinf= o/grub-devel

=0A=0A=0A
Bollywood news, movie reviews, film trailers and more! Click here. --0-1880426090-1218178214=:90397--