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 8:05:29 PM
Subject: Re: Windows,grub and grub2

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 · 35 lines
Bean

Hi,

I have dumped the biosdisk information also

data->drive=0x80
data->cylinders=0x3ff
data->heads=0xff
data->sectors=0x3f
data->flag=0x1

Chainloading from a file doesnt help either

dd if=/dev/hda1 of=chainload.txt bs=512 count=1

In the grub2 command:

set root=(hd0,1)
chainloader (hd0,4)/boot/chainload.txt

No effect :( same error

Viswesh



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



      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
#1 lore raw
Quoted 37 lines · Viswesh S

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

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.

--
Bean

Hi,

I have dumped the biosdisk information also

data->drive=0x80
data->cylinders=0x3ff
data->heads=0xff
data->sectors=0x3f
data->flag=0x1

Quoted 8 lines

Chainloading from a file doesnt help either

dd if=/dev/hda1 of=chainload.txt bs=512 count=1

In the grub2 command:

set root=(hd0,1)
chainloader (hd0,4)/boot/chainload.txt

Hi,

Perhaps you can upload the boot sector file ? I can dissemble it to see where the error is printed.

Signature · 1 line
Bean