Skip to contentSkip to conversation

chainloader problem

DISCUSSION MarcoVega Trucillo 4 participants 6 messages May 3, 2008 – May 4, 2008

lore
Share & tools
lore
#0 lore raw

Hi to all,

I'm marco and I'm new to grub-devel maling list. Forgive me for my bad English. I have a strange issue with chainloader both with 1.96 and last csv version.
I've compiled grub2 and I installed it on a usb stick with

dd if=boot.img of=/dev/sdc
dd if=mycore.img of=/dev/sdc seek=1

It boot and I got grub shell's prompt. From here I'm able to boot linux on my primary harddisk that biosdisk driver see as (hd1). The usbstick is (hd0).
But if I try to boot my first hard disk or windows with chainloader (hd1)+1
boot

or for windows
chainloader (hd1,1)+1
boot

the screen became black and it hang...

but If I try to load the same grub2 image with grub-0.96 it work! i.e.: I start with grub-0.96 cd... Now primary disk is (hd0) and usbpen is (hd1) from grub-0.96 shell I run
kernel (hd1)1+125 <-this because my grub-1.96 core image is 125 blocks
boot

I got grub-1.96 shell... then
chainloader (hd0)+1
boot
and my first disk start....

Have you some idea about this strange issues ?

Thanks in advance and forgive me again for my bat english

#1 lore raw
Quoted 6 lines · Marco Vega Trucillo

I got grub-1.96 shell... then
chainloader (hd0)+1
boot
and my first disk start....

Have you some idea about this strange issues ?

I have a trouble understanding you, but anyway, the "chainloader" command is broken in version 1.96. Please try the current CVS version of GRUB 2.

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw

Am Sat, 03 May 2008 19:03:04 -0400
schrieb Pavel Roskin <[email protected]>:

Quoted 4 lines

I have a trouble understanding you, but anyway, the "chainloader" command is broken in version 1.96. Please try the current CVS version of GRUB 2.

I think he has done that already (he just misspelled cvs as csv). The problem seems to be, that the chainloader does not work for him with grub 2 alone. He has to use grub 1 to load grub2 and then he can use chainloader with grub 2.
As me limited understanding goes: THAT is wierd.

Regards,
Christoph Peltz

#3 lore raw
Quoted 4 lines · Christoph Peltz

I think he has done that already (he just misspelled cvs as csv). The problem seems to be, that the chainloader does not work for him with grub 2 alone. He has to use grub 1 to load grub2 and then he can use chainloader with grub 2.

Yes. I'm using last CVS version fo grub 2 and Chainloader does not work if I boot with it. But if I use grub1 to load grub2 (the same "core"), then chainloader works.

Quoted 1 line

As me limited understanding goes: THAT is wierd.

oh..forgive me, I'll try to write better.
Thanks

Marco

#4 lore raw
In reply to MarcoVega Trucillo
Quoted 8 lines · Marco Vega Trucillo

Hi to all,

I'm marco and I'm new to grub-devel maling list. Forgive me for my bad English. I have a strange issue with chainloader both with 1.96 and last csv version.
I've compiled grub2 and I installed it on a usb stick with

dd if=boot.img of=/dev/sdc dd if=mycore.img of=/dev/sdc seek=1

Use grub-setup/grub-install

#5 lore raw
Quoted 8 lines · Vesa Jääskeläinen
Quoted 7 lines · Marco Vega Trucillo

Hi to all,

I'm marco and I'm new to grub-devel maling list. Forgive me for my bad English. I have a strange issue with chainloader both with 1.96 and last csv version.
I've compiled grub2 and I installed it on a usb stick with

Quoted 4 lines
Quoted 2 lines

dd if=boot.img of=/dev/sdc
dd if=mycore.img of=/dev/sdc seek=1

Use grub-setup/grub-install

Ok thanks I will try this.

But actualy on my usb stick there isn't any partition table nor filesystem. mycore.img is grub2 "core" with a memdisk embedded that contains linux's kernel and few other files.
All the remaining space on the usb stick are raw data: this is the reason because I boot grub in that way without use grub-setup/grub-install