Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KaAVD-0002GJ-Pt for mharc-grub-devel@gnu.org; Mon, 01 Sep 2008 10:35:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaAVB-0002FA-Ki for grub-devel@gnu.org; Mon, 01 Sep 2008 10:35:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaAVA-0002EZ-G7 for grub-devel@gnu.org; Mon, 01 Sep 2008 10:35:32 -0400 Received: from [199.232.76.173] (port=36947 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaAVA-0002EI-8r for grub-devel@gnu.org; Mon, 01 Sep 2008 10:35:32 -0400 Received: from ti-out-0910.google.com ([209.85.142.189]:48668) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KaAVA-0006xQ-0S for grub-devel@gnu.org; Mon, 01 Sep 2008 10:35:32 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1145182tia.10 for ; Mon, 01 Sep 2008 07:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=BcB6qCmMtefWd8oDuW4gUNLgNyBP2M7je5cFz+afbg4=; b=XwGUqf14xjyYUXXrx+VajQLMuRExn1TgcvkS9wRDWdp9NewWUncGRVByImeuYzu0V3 991DdbkIUpYNMW4+guOLab8VHuPdz+6Y7xJn9UfNi1gWZrH/fIKbIc0be3slJdZb+cPI E0xFnljifLmsrzGgfyupq9xfPrc+XD1GwCdTg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lVke9v4twjNO+5CJL9t72/9wim9zWHUIbijdOAtO4Hc9PBGTquG7xxgVwHcOjIyPOY RfNO7sIa96Ww0u+SkHszsgHpf3f29Zh3wBBK3ekqTuIK6koxlhFfSCkUwnsRh1ytbt1G 0z8eHqeyLQLRHnz3Zv0+HR5vnmN3TJBgtLpgw= Received: by 10.110.57.6 with SMTP id f6mr7879705tia.38.1220279729141; Mon, 01 Sep 2008 07:35:29 -0700 (PDT) Received: by 10.110.57.17 with HTTP; Mon, 1 Sep 2008 07:35:29 -0700 (PDT) Message-ID: Date: Mon, 1 Sep 2008 22:35:29 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <955987.29469.qm@web31601.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <955987.29469.qm@web31601.mail.mud.yahoo.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Windows,grub and grub2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 14:35:34 -0000 On Mon, Sep 1, 2008 at 9:53 PM, Viswesh S wrote: > > > ----- Original Message ---- > From: Bean > To: The development of GRUB 2 > 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 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 ... 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