[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grub-help
Subject:    Re: error: attempt to read or write outside of disk 'hd0'
From:       vinayak holikatti <vinholikatti () gmail ! com>
Date:       2013-06-06 5:17:28
Message-ID: CAKVbJB8ptgXxpD89zv7O27SFkDfS7b3rpe9Wze9K5tyuP=HToA () mail ! gmail ! com
[Download RAW message or body]

Hi Andrey,

I have found the problem with INT 13h 48h function. The number sectors was
wrongly updated. Now Linux Fedora 17 is booting fine.

Thanks for the help Andrey.



On Tue, Jun 4, 2013 at 11:55 AM, vinayak holikatti
<vinholikatti@gmail.com>wrote:

> Hi Andrey,
>
> I will check the INT13h 48h function, Where it is going wrong. Thanks for
> the help.
>
>
>
> On Mon, Jun 3, 2013 at 6:43 PM, Andrey Borzenkov <arvidjaar@gmail.com>wrote:
>
>> В Mon, 3 Jun 2013 17:26:04 +0530
>> vinayak holikatti <vinholikatti@gmail.com> пишет:
>>
>> > Hi All,
>> >
>> > I am developing an Legacy Option ROM for our controller. We are facing
>> > issue in loading FC 17 installed on our device. Windows 8 Installs and
>> > boots fine. But for FC 17 32-bit we find an error message during
>> booting as
>> > below
>> >
>> > *"error: attempt to read or write outside of disk 'hd0'
>> > *
>> > *Entering rescue mode...
>> > *
>> > *grub_rescue>*
>> >
>> >
>> > I am suspecting that INT13 routine with function 48h ( Get Extended
>> Drive
>> > parameters). If we disable  extended functions then FC 17 boots.
>> >
>> >
>> > I would like to know in what circumstances we get the error message.
>>
>> a) attempt to read or write outside of disk :)
>> b) attempt to read or write past 8MB in on BIOS in CHS mode
>>
>> You probably hit the latter. Apparently, grub does not like what you
>> return from INT13 48h and falls back to CHS.
>>
>> >                                                                     If
>> it
>> > needs to be corrected then what should it be.
>> >
>>
>> See grub-core/disk/i386/pc/biosdisk.c, specifically function
>> grub_biosdisk_get_diskinfo_real().
>>
>> > Thanks in Advance.
>> >
>>
>>
>
>
> --
> Regards,
> Vinayak Holikatti
>
>


-- 
Regards,
Vinayak Holikatti

[Attachment #3 (text/html)]

<div dir="ltr"><div><div>Hi Andrey,<br><br></div>I have found the problem with INT \
13h 48h function. The number sectors was wrongly updated. Now Linux Fedora 17 is \
booting fine.<br><br></div>Thanks for the help Andrey.<br> <br></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 4, 2013 at 11:55 AM, \
vinayak holikatti <span dir="ltr">&lt;<a href="mailto:vinholikatti@gmail.com" \
target="_blank">vinholikatti@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>Hi Andrey,<br><br></div>I will check the \
INT13h 48h function, Where it is going wrong. Thanks for the help.<br> <br></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 6:43 PM, \
Andrey Borzenkov <span dir="ltr">&lt;<a href="mailto:arvidjaar@gmail.com" \
target="_blank">arvidjaar@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">В Mon, 3 Jun 2013 17:26:04 +0530<br> vinayak holikatti \
&lt;<a href="mailto:vinholikatti@gmail.com" \
target="_blank">vinholikatti@gmail.com</a>&gt; пишет:<br> <br>
&gt; Hi All,<br>
&gt;<br>
&gt; I am developing an Legacy Option ROM for our controller. We are facing<br>
&gt; issue in loading FC 17 installed on our device. Windows 8 Installs and<br>
&gt; boots fine. But for FC 17 32-bit we find an error message during booting as<br>
&gt; below<br>
&gt;<br>
&gt; *&quot;error: attempt to read or write outside of disk &#39;hd0&#39;<br>
&gt; *<br>
&gt; *Entering rescue mode...<br>
&gt; *<br>
&gt; *grub_rescue&gt;*<br>
&gt;<br>
&gt;<br>
&gt; I am suspecting that INT13 routine with function 48h ( Get Extended Drive<br>
&gt; parameters). If we disable   extended functions then FC 17 boots.<br>
&gt;<br>
&gt;<br>
&gt; I would like to know in what circumstances we get the error message.<br>
<br>
a) attempt to read or write outside of disk :)<br>
b) attempt to read or write past 8MB in on BIOS in CHS mode<br>
<br>
You probably hit the latter. Apparently, grub does not like what you<br>
return from INT13 48h and falls back to CHS.<br>
<br>
&gt;                                                                                  \
If it<br> &gt; needs to be corrected then what should it be.<br>
&gt;<br>
<br>
See grub-core/disk/i386/pc/biosdisk.c, specifically function<br>
grub_biosdisk_get_diskinfo_real().<br>
<br>
&gt; Thanks in Advance.<br>
&gt;<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br \
clear="all"><br>-- <br>Regards,<br>Vinayak Holikatti<br><br><input \
type="hidden"><input type="hidden"><div></div> </font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vinayak \
Holikatti<br><br><input type="hidden"><input type="hidden"><div></div> </div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic