bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug #565] kernel command returns error 18 when grub loads from ntldr.


From: nobody
Subject: [Bug #565] kernel command returns error 18 when grub loads from ntldr.
Date: Thu, 13 Jun 2002 03:35:03 -0400

=================== BUG #565: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=565&group_id=68

Changes by: Yoshinori K. Okuji <address@hidden>
Date: 2002-Jun-13 07:35 (GMT)

------------------ Additional Follow-up Comments ----------------------------
Thanks for your info. That seems to be quite strange.

Next, could you try a later version? 0.90 is very old.
It would be better to get the latest source tree from
the CVS, because any fix is done in the CVS anyway.

If the same problem still occurs, could you test where
the error is emitted? I think it is somewhere in the
function "load_image" in the file "stage2/boot.c".
You can test that by adding something like this:

grub_printf("%s:%d: errnum = %d\n",
            __FILE__, __LINE__, errnum);

Thanks,
Okuji



=================== BUG #565: FULL BUG SNAPSHOT ===================


Submitted by: chrispe                   Project: grub                           
Submitted on: 2002-Jun-08 16:41
Category:  Booting                      Severity:  Major                        
Priority:  None                         Bug Group:  Software Error              
Resolution:  None                       Assigned to:  None                      
Status:  Open                           Release:  0.90                          
Reproducibility:  Every Time            Planned Release:                        

Summary:  kernel command returns error 18 when grub loads from ntldr.

Original Submission:  I'm trying to load Linux from the Win2k bootloader 
(NTLDR), via Grub.

I installed grub stage1 onto a floppy using the following commands:

grub> root (hd1,4)
grub> setup (fd0)
grub> quit

setup found my grub files, failed to embbed stage 1.5 and used the following 
install command:

install /boot/grub/stage1 d (fd0) /boot/grub/stage2 p /boot/grub/menu.lst

This boot floppy successfully boots, runs stage2, pops up the graphical menu, 
with a splash screen and boots Linux from (hd1,4)/bzImage.

Next, I copied this working grub stage 1 from the floppy to my Windows C drive 
(using dd) and set up C:\boot.ini to run it from NTLDR.

Grub runs okay from NTLDR and successfully loads stage2, pops up the graphical 
menu, with a splash screen, but fails to boot Linux from (hd1,4)/bzImage with 
error 18.

This seems strange. How come it can't load bzImage, when it can load the menu & 
splash screen just fine from the same partition?

I used the testload command on (hd1,4)/bzImage and it worked fine (the numbers 
at the end matched). However, when I execute the kernel command, I get error 
18...

grub> kernel (hd1,4)/bzImage root=/dev/hdb7

Error 18: Selected cylinder exceeds max supported by BIOS

I can't find any differences between booting from the floppy MBR & from NTLDR. 
The geometry command returns the same numbers, testload returns the same 
numbers. It is just that the kernel command fails in the NTLDR case.

Chris.

Follow-up Comments
*******************

-------------------------------------------------------
Date: 2002-Jun-13 07:35             By: okuji
Thanks for your info. That seems to be quite strange.

Next, could you try a later version? 0.90 is very old.
It would be better to get the latest source tree from
the CVS, because any fix is done in the CVS anyway.

If the same problem still occurs, could you test where
the error is emitted? I think it is somewhere in the
function "load_image" in the file "stage2/boot.c".
You can test that by adding something like this:

grub_printf("%s:%d: errnum = %d\n",
            __FILE__, __LINE__, errnum);

Thanks,
Okuji

-------------------------------------------------------
Date: 2002-Jun-12 21:30             By: chrispe
Hi Okuji,
Thanks for looking at my problem. Here is the data you asked for...

"geometry (hd1)" from floppy & NTLDR. They are identical.

drive 0x81: C/H/S = 1023/255/63, The number of sectors = 60036480, LBA
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type unknown, partition type 0x82
Partition num: 6, Filesystem type is ext2fs, partition type 0x83

"blocklist (hd1,4)/bzImage" from floppy.

(hd1,4)538+24,564+512,1080+512,1594+512,2108+251

"debug", then "kernel (hd1,4)/bzImage" from NTLDR.

Debugging is on.

Error 18: Selected cylinder exceeds maximum supported by BIOS


Turning debug on didn't make the kernel command come out with any extra 
messages. You didn't ask for the blocklist command in the NTLDR case, but it 
return the same result. The only difference is that the kernel command produces 
that error in the NTLDR case.

I'm a software engineer. If you want me to instrument the code for extra 
debugging, I'm willing.

Regards,
Chris.

-------------------------------------------------------
Date: 2002-Jun-12 11:45             By: okuji
Could you show me results when executing these:

1) Run "geometry (hd1)" when booting GRUB from a floppy.
2) Run "geometry (hd1)" when booting GRUB from NTLDR.
3) Run "blocklist (hd1,4)/bzImage" when booting GRUB from
   a floppy.
4) Run "debug" and "kernel (hd1,4)/bzImage" when booting
   GRUB from NTLDR.

Thanks,
Okuji




No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=565&group_id=68



reply via email to

[Prev in Thread] Current Thread [Next in Thread]