Skip to contentSkip to conversation

Windows,grub and grub2

DISCUSSION Viswesh S 2 participants 2 messages Sep 1, 2008

lore
Share & tools
lore

Viswesh S

author
#0 lore raw

----- Original Message ----
From: Bean <[email protected]>
To: The development of GRUB 2 <[email protected]>
Sent: Monday, 1 September, 2008 6:32:28 PM
Subject: Re: Windows,grub and grub2

Quoted 2 lines · Viswesh S

Hi,

I doubt that this is caused by int 13, as grub2 doesn't change it. Besides, the boot sector is read properly in grub2, so int 13 should be working.

I have thought of another possible reason for this. In grub2, %dh is 0, perhaps it should be set to the partition number. Please test if the new patch works.

Signature · 43 lines
Bean


Hi,

To get more insight and see whether the values are proper,I dumped the structure members.

So for the commands:

set root=(hd0,1)
chainloader +1

This is disk and partition strucure member values.

disk->name=(hd0,1)
disk->has_partitions=1
disk->id=0x80

For the partition p,

p->offset=0
p->index=0
p->data=0
p->start=0x3f
p->len = 0x0
p->offset=0x4e1edec
p->partmap->name=(null)
part_addr=0x7be

And this is the dump from the mbr:

000001b0   00 00 00 00 00 00 00 00     81 eb 09 00 00 00 80 01  |................|
000001c0   01 00 07 fe  ff ff 3f 00          00 00 ec ed e1 04 00 fe  |......?.........|
000001d0   ff ff 07 fe ff ff 00 f0               e1 04 00 18 30 0b 00 fe  |............0...|
000001e0   ff ff 82 fe ff ff cf 0e               12 10 33 91 3b 00 00 fe  |..........3.;...|
000001f0    ff ff 83 fe ff ff 02 a0              4d 10 bf ea 53 02 55 aa  |........M...S.U.|

Viswesh

ps:-The previous patch also didnt work :-(


      Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.webmessenger.yahoo.com/
#1 lore raw
Quoted 55 lines · Viswesh S

----- Original Message ----
From: Bean <[email protected]>
To: The development of GRUB 2 <[email protected]>
Sent: Monday, 1 September, 2008 6:32:28 PM
Subject: Re: Windows,grub and grub2

Quoted 2 lines · Viswesh S

Hi,

I doubt that this is caused by int 13, as grub2 doesn't change it. Besides, the boot sector is read properly in grub2, so int 13 should be working.

I have thought of another possible reason for this. In grub2, %dh is 0, perhaps it should be set to the partition number. Please test if the new patch works.

--
Bean

Hi,

To get more insight and see whether the values are proper,I dumped the structure members.

So for the commands:

set root=(hd0,1)
chainloader +1

This is disk and partition strucure member values.

disk->name=(hd0,1)
disk->has_partitions=1
disk->id=0x80

For the partition p,

p->offset=0
p->index=0
p->data=0
p->start=0x3f
p->len = 0x0
p->offset=0x4e1edec
p->partmap->name=(null)
part_addr=0x7be

And this is the dump from the mbr:

000001b0 00 00 00 00 00 00 00 00 81 eb 09 00 00 00 80 01

Quoted 9 lines
|................|
000001c0   01 00 07 fe  ff ff 3f 00          00 00 ec ed e1 04 00 fe
|......?.........|
000001d0   ff ff 07 fe ff ff 00 f0               e1 04 00 18 30 0b 00 fe
|............0...|
000001e0   ff ff 82 fe ff ff cf 0e               12 10 33 91 3b 00 00 fe
|..........3.;...|
000001f0    ff ff 83 fe ff ff 02 a0              4d 10 bf ea 53 02 55 aa
|........M...S.U.|

Hi,

Perhaps you can dump the biosdisk information as well

#include <grub/machine/biosdisk.h>

...

struct grub_biosdisk_data *data = (struct grub_biosdisk_data *) dev->disk->data

then print its members (drive, cylinders, heads, sectors, flags). Also, please try copy the boot sector to a file and chainload it.

Signature · 1 line
Bean