On Mon, Sep 1, 2008 at 9:53 PM, Viswesh S <[EMAIL PROTECTED]> wrote: > > > ----- Original Message ---- > From: Bean <[EMAIL PROTECTED]> > To: The development of GRUB 2 <grub-devel@gnu.org> > Sent: Monday, 1 September, 2008 6:32:28 PM > Subject: Re: Windows,grub and grub2 > > On Mon, Sep 1, 2008 at 6:48 PM, Viswesh S <[EMAIL PROTECTED]> wrote: >> >> > > 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 > |................| > 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. -- Bean _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel