Skip to contentSkip to conversation

how can I boot xp with grub? How to load ntldr?

DISCUSSION zhihang wang 3 participants 6 messages Nov 23, 2006 – Nov 28, 2006

lore
Share & tools
lore
#0 lore raw

There are something wrong with my mbr information.
I installed xp on (hd0,0), ubuntu on (hd0,1). Now I can't 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=/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?

Signature · 2 lines
Best Regards
zhihang wang
#1 lore raw

Nobody?

Quoted 16 lines · zhihang wang

There are something wrong with my mbr information.
I installed xp on (hd0,0), ubuntu on (hd0,1). Now I can't 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=/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

Signature · 2 lines
Best Regards
zhihang wang
#2 lore raw

Wang:

in the grub shell, type:

Quoted 2 lines

chainloader +1
boot

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

Coly

Quoted 30 lines · 在 2006-11-27一的 18:06 +0800,zhihang wang写道:

Nobody?

On 11/23/06, zhihang wang <[email protected]> wrote:
There are something wrong with my mbr information. I installed xp on (hd0,0), ubuntu on (hd0,1). Now I can't 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=/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

Signature · 6 lines
Best Regards
zhihang wang 
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
#3 lore raw

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 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?

Quoted 52 lines · colyli

Wang:

in the grub shell, type:

Quoted 2 lines

chainloader +1
boot

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

Coly

Quoted 23 lines · 在 2006-11-27一的 18:06 +0800,zhihang wang写道:

Nobody?

On 11/23/06, zhihang wang <[email protected]> wrote:
There are something wrong with my mbr information. I installed xp on (hd0,0), ubuntu on (hd0,1). Now I can't 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=/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

Quoted 7 lines

--
Best Regards
zhihang wang
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Best Regards
zhihang wang
#4 lore raw

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 partition called "ntldr", which in turn looks for "boot.ini" "ntdetect.com", and (obviously) ntoskrnl.exe and the initial drivers loaded.

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.

Andrei Evgenievich Warkentin
[email protected]
Cell: (+1) (847) 321-15-55

Quoted 77 lines · zhihang wang

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 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 <[email protected]> wrote:
Wang:

in the grub shell, type:

Quoted 2 lines

chainloader +1
boot

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

Coly

Quoted 5 lines · 在 2006-11-27一的 18:06 +0800,zhihang wang写道:

Nobody?

On 11/23/06, zhihang wang <[email protected]> wrote:
There are something wrong with my mbr information. I installed xp on (hd0,0), ubuntu on (hd0,1). Now I can't

boot

Quoted 18 lines

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=/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

Quoted 7 lines

--
Best Regards
zhihang wang
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 6 lines
Best Regards
zhihang wang
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
#5 lore raw

ok. Thank you very much.

Quoted 108 lines · Andrei E. Warkentin

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 partition called "ntldr", which in turn looks for "boot.ini" "ntdetect.com", and (obviously) ntoskrnl.exe and the initial drivers loaded.

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.

Andrei Evgenievich Warkentin
[email protected]
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 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?

Quoted 48 lines · colyli

Wang:

in the grub shell, type:

Quoted 2 lines

chainloader +1
boot

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

Coly

Quoted 24 lines · 在 2006-11-27一的 18:06 +0800,zhihang wang写道:

Nobody?

On 11/23/06, zhihang wang <[email protected]> wrote:
There are something wrong with my mbr information. I installed xp on (hd0,0), ubuntu on (hd0,1). Now I can't 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=/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

Quoted 7 lines

--
Best Regards
zhihang wang
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

--
Best Regards
zhihang wang
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Best Regards
zhihang wang