Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Gouun-0005Jc-Sd for mharc-grub-devel@gnu.org; Mon, 27 Nov 2006 23:49:53 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gouul-0005HR-JW for grub-devel@gnu.org; Mon, 27 Nov 2006 23:49:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gouui-0005BR-3K for grub-devel@gnu.org; Mon, 27 Nov 2006 23:49:49 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gouuh-0005BH-4H for grub-devel@gnu.org; Mon, 27 Nov 2006 23:49:47 -0500 Received: from [64.233.166.176] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gouug-0003nF-4g for grub-devel@gnu.org; Mon, 27 Nov 2006 23:49:46 -0500 Received: by py-out-1112.google.com with SMTP id u77so1256344pyb for ; Mon, 27 Nov 2006 20:49:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=hgeDZ8CI6RXBpR25cCT3poN8cGjhacUWENDg2kpS81sINuhp1lXINe8ScuMYRxp2xvPQX+qBQVPFkmzu+pCj6+BfnaWLyprCy89cRg5HdVxN2CIqvUoPU/1+1FaAIAkIDFwz/A4b8xg4nY+s2UwopOEXQgydTvBw837A7aWQXYY= Received: by 10.35.54.1 with SMTP id g1mr748942pyk.1164689384891; Mon, 27 Nov 2006 20:49:44 -0800 (PST) Received: from ?10.0.0.5? ( [64.135.199.23]) by mx.google.com with ESMTP id n27sm12973360pyh.2006.11.27.20.49.44; Mon, 27 Nov 2006 20:49:44 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <212696550611271546u59956c56ya81e908248a4abef@mail.gmail.com> References: <212696550611221633u6dbbf7acoa56d357a1cd1e1dc@mail.gmail.com> <212696550611270206k3869a96yd4d77be66520dc53@mail.gmail.com> <1164623017.24090.11.camel@colyT43.site> <212696550611271546u59956c56ya81e908248a4abef@mail.gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-1--448767840 Message-Id: <36E12BE9-792F-4690-B82B-F989C88AC851@gmail.com> From: "Andrei E. Warkentin" Date: Mon, 27 Nov 2006 22:51:49 -0600 To: The development of GRUB 2 X-Mailer: Apple Mail (2.752.2) Subject: Re: how can I boot xp with grub? How to load ntldr? 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: Tue, 28 Nov 2006 04:49:52 -0000 --Apple-Mail-1--448767840 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Shouldn't have done that. I'm assuming "sys" here is from Win9X or DOS. The bootsector provided by NT looks for a file in the root of the =20 partition called "ntldr", which in turn looks for "boot.ini" =20 "ntdetect.com", and (obviously) ntoskrnl.exe and the initial drivers =20 loaded. Basically, if you didn't "sys a: c:", it would have worked just fine =20 (the way you chainload from grub looks right). But you overwrote the =20 NT bootsector with a DOS/Win9X one that looks for io.sys/msdos.sys. =20 Go boot from a Windows installation disk and tell it to repair your =20 system. Andrei Evgenievich Warkentin andrey.warkentin@gmail.com Cell: (+1) (847) 321-15-55 On 27.11.2006, at 17:46, zhihang wang wrote: > Hi ,Coly: > Thank you for your answer. > I have used the command > sys a: c: > then when I boot from the harddisk, an error occure "missing =20 > operation system" > Then I boot from my flash disk and enter the grub > grub>root (hd0,0) > grub>makeactive > grub>chainloader +1 > grub>boot > then I entered the DOS. > How can I load the ntldr? > > > > On 11/27/06, colyli wrote: > Wang: > > in the grub shell, type: > > >chainloader +1 > >boot > > this will help you to boot the xp. BTW, maybe you need to re-=20 > install the > grub in your ubuntu. > > Coly > > =E5=9C=A8 2006-11-27=E4=B8=80=E7=9A=84 18:06 +0800=EF=BC=8Czhihang = wang=E5=86=99=E9=81=93=EF=BC=9A > > Nobody? > > > > On 11/23/06, zhihang wang wrote: > > There are something wrong with my mbr information. > > I installed xp on (hd0,0), ubuntu on (hd0,1). Now I can't =20= > boot > > my pc directly from the hardisk. I can only boot it from my > > flash (u) disk. > > Because there is a grub for dos on my flash disk, I can use > > the grub. > > Then I can type > > kernel (hd0,1)/vmlinuz root=3D/dev/hda2 > > initrd (hd0,1)/initrd.img > > boot > > So that I can boot my pc and entered the ubuntu. > > But how can I enter the xp? > > Is it possible? > > > > -- > > Best Regards > > zhihang wang > > > > > > > > -- > > Best Regards > > zhihang wang > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > http://lists.gnu.org/mailman/listinfo/grub-devel > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > > > --=20 > Best Regards > zhihang wang > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --Apple-Mail-1--448767840 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 Shouldn't have done that. I'm = assuming "sys" here is from Win9X or DOS.=C2=A0

The bootsector provided by = NT looks for a file in the root of the partition called "ntldr", which = in turn looks for "boot.ini" "ntdetect.com", and (obviously) = ntoskrnl.exe and the initial drivers loaded.=C2=A0

Basically, if you didn't = "sys a: c:", it would have worked just fine (the way you chainload from = grub looks right). But you overwrote the NT bootsector with a DOS/Win9X = one that looks for io.sys/msdos.sys. Go boot from a Windows installation = disk and tell it to repair your system.=C2=A0

Andrei = Evgenievich Warkentin
andrey.warkentin@gmail.com<= /DIV>
Cell: (+1) (847) 321-15-55


On = 27.11.2006, at 17:46, zhihang wang wrote:

Hi = ,Coly:
=C2=A0 Thank you for your answer.
=C2=A0 I have used the = command
sys a: c:
then when I boot from the harddisk, an error = occure "missing operation system"
Then I boot from my flash disk and = enter the grub
grub>root = (hd0,0)
grub>makeactive
grub>chainloader = +1
grub>boot
then I entered the DOS.
How can I load the = ntldr?



On 11/27/06, colyli <colyli@263.net> = wrote:
Wang:

in the grub shell, type:

>chainloader = +1
>boot

this will help you to boot the xp. BTW, maybe you = need to re-install the
grub in your ubuntu.

Coly

=E5=9C=A8= 2006-11-27=E4=B8=80=E7=9A=84 18:06 +0800=EF=BC=8Czhihang wang=E5=86=99=E9= =81=93=EF=BC=9A
> Nobody?
>
> On 11/23/06, zhihang = wang <zhihang.wang@gmail.com> = wrote:
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 There are = something wrong with my mbr information.
>=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 I installed xp on (hd0,0), ubuntu on (hd0,1). Now = I can't boot
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 my = pc directly from the hardisk. I can only boot it from = my
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 flash (u) = disk.
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Because = there is a grub for dos on my flash disk, I can = use
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 the = grub.
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Then I can = type
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 kernel = (hd0,1)/vmlinuz root=3D/dev/hda2
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 initrd (hd0,1)/initrd.img
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 boot
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 So that I can boot my pc and entered the = ubuntu.
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 But how = can I enter the xp?
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= Is it possible?
>
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 --
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Best = Regards
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 zhihang = wang
>
>
>
> --
> Best Regards
> = zhihang wang
> _______________________________________________ =
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu= .org/mailman/listinfo/grub-devel
=


_______________________________________________
Grub-devel = mailing list
Grub-devel@gnu.org
http://lists.gnu= .org/mailman/listinfo/grub-devel



--
Best Regards
zhihang wang
Grub-devel mailing list
=

= --Apple-Mail-1--448767840--