bugGNU GRUB - Bugs: bug #10433, Grub 0.95 - Grub Bootable CD-ROM,...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10433: Grub 0.95 - Grub Bootable CD-ROM, no device (cd). Related to Error 21 at stage 1.5

Submitted by:  Brendan Sleight <bmsleight>
Submitted on:  Sat 18 Sep 2004 05:19:03 PM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Non-software Error
Status: PostponedPrivacy: Public
Assigned to: NoneOriginator Name: Brendan Sleight
Open/Closed: ClosedRelease: 0.95
Release: NoneReproducibility: None
Planned Release: None

(Jump to the original submission Jump to the original submission)

Sat 15 Dec 2007 04:38:58 PM UTC, comment #6:

We've moved to GRUB 2 as a development platform. Please can you check if this bug still applies there, and if it does, reopen it?

Thanks

Robert Millan <robertmh>
Project Administrator
Wed 02 Mar 2005 10:55:21 PM UTC, comment #5:

We have an ugly hack, initial testing is promising, we are undertaking further testing - as part of the new Kanotix, Clusterix and Morphix releases.

We are not satisfied with the ugly approach and are looking at other ways around. In fact we have had quite alot of discussion about grub_printf statement running three times, error reporting and other nicer solutions such as:-
cdrp.size = sizeof (cdrp) - sizeof (cdrp.dummy);
if (cdrp.drive_no == drive)

This for now is a nice safe patch which will also work for 0.96

I am not taking the credit for this hard work. This patch was generated by Kanotix, Morphix and Clusterix developers. slh, kano, locsmif, g1powermac to name just a few.

--- grub-0.95.orig/stage2/bios.c 2004-03-27 17:34:04.000000000 +0100
+++ grub-0.95/stage2/bios.c 2005-03-02 01:02:29.192582200 +0100
@@ -147,6 +147,7 @@
grub_memset (&cdrp, 0, sizeof (cdrp));
cdrp.size = sizeof (cdrp) - sizeof (cdrp.dummy);
err = biosdisk_int13_extensions (0x4B01, drive, &cdrp);
+ err = 0; /* really ugly hack to circumvent faulty BIOS versions like Acer 292LMi */
if (! err && cdrp.drive_no == drive)
{
if ((cdrp.media_type & 0x0F) == 0)

Brendan Sleight <bmsleight>
Sun 10 Oct 2004 12:47:03 AM UTC, comment #4:

Hello.
I also try to make a morphix based distro.
I try to both stage2_eltorito and iso9660_stage1_5, both of them works fine in my computer (athlon1700+), but none of them works in my friend P2. I will give you the Bios model as I get it.

The simptoms he gets are these :
When using iso9660_stage1_5, he get "error 17".
When using stage2_eltorito, he get the rub command line, with no ability to mount the (cd) device.

I guess this is BIOS bugs, but I think that GRUB should handle those too, because I can't tell people to upgrade their bioses after so much time they worked well...

Thanks in advance,
Nir Misgav

Nir Misgav <nirro_>
Tue 21 Sep 2004 03:26:29 PM UTC, comment #3:

Ok. Your previous description was really confusing, since you said only iso9660_stage1_5 but not stage2_eltorito at all.

Then, see this thread of the mailing list:

http://lists.gnu.org/archive/html/bug-grub/2004-07/msg00010.html

Yoshinori K. Okuji <okuji>
Project Administrator
Tue 21 Sep 2004 03:05:20 PM UTC, comment #2:

Quoting the follow up comment:-
Date: Mon 09/20/04 at 21:12 By: Yoshinori K. Okuji
Read the manual. Use stage2_eltorito.

I did! Read my original comments.partially copied below). I tried to carry out as many tests as possible before submitting this to the mailing lists.

Tests
I have also created a cd-rom using grub 0.95 exactly as per the instruction in the documentation. Without any menu or option files.
http://www.gnu.org/software/grub/manual/grub.html#Making%20a%20GRUB%20bootable%20CD-ROM
(no emulation mode in the El Torito specification)
So that I can just boot to grub command line. The devices fd0 and hd0 do exisit but device (cd) does not exist.
For example I do: cat (<<TAB>>
I only get option of hd0. I am unable to access the other files on the iso. '

.

Anonymous
Mon 20 Sep 2004 09:12:15 PM UTC, comment #1:

Read the manual. Use stage2_eltorito.

Yoshinori K. Okuji <okuji>
Project Administrator
Sat 18 Sep 2004 05:19:03 PM UTC, original submission:

Grub 0.95 - Grub Bootable CD-ROM, no device (cd).

I am using an IPC - Webnote. (IPC Archtec 503-060)
http://www.tickpc.co.uk/products.asp?sid=932333980&viewItem=1113

Background
I am a (minor) developer with Morphix.org - a GNU/Linux LiveCD ( http://en.wikipedia.org/wiki/Livecd ) We have moved away from using Grub with floppy disk emulation. To booting w/o emulation, using iso9660_stage1_5 (So that we have space for kernel, long menu lists and graphics). When using this option, I get Error 21 (disk does not exist) during stage 1.5

There are no other BIOS upgrades (google suggestion) available for my machine, currently on highest version. Other Laptop have reported the same problem:-
acer TravelMate 290
Packard Bell Easynote E3269 (+ Another User - Packard Bell)
Toshiba Tecra S1 1.6ghz
(http://savannah.nongnu.org/bugs/?func=detailitem&item_id=10027)
(http://www.morphix.org/modules/newbb/viewtopic.php?topic_id=1514&forum=2&jump=1)

Tests
A have also tried making a new iso without the -boot-load-size 4 This has no effect on the error.

I have also created a cd-rom using grub 0.95 exactly as per the instruction in the documentation. Without any menu or option files.
http://www.gnu.org/software/grub/manual/grub.html#Making%20a%20GRUB%20bootable%20CD-ROM
(no emulation mode in the El Torito specification)
So that I can just boot to grub command line. The devices fd0 and hd0 do exisit but device (cd) does not exist.
For example I do: cat (<<TAB>>
I only get option of hd0. I am unable to access the other files on the iso.

A bug report that is mentions Error 21 (HD not CD-ROM), suggest down grading to 0.93.
http://savannah.gnu.org/bugs/?func=detailitem&item_id=6846
I have tried this, but I get a compile error :-
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef -O2 -I../lib -DGRUB_UTIL=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_JFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -fwritable-strings -g -c -o libgrub_a-fsys_reiserfs.o `test -f fsys_reiserfs.c || echo './'`fsys_reiserfs.ccc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
fsys_reiserfs.c:115: error: long, short, signed or unsigned used invalidly for `j_mount_id'
fsys_reiserfs.c: In function `next_key':
fsys_reiserfs.c:761: warning: operation on `depth' may be undefined
make[1]: *** [libgrub_a-fsys_reiserfs.o] Error 1
make[1]: Leaving directory `/home/bms/grub_i/grub-0.92/stage2'
make: *** [install-recursive] Error 1
(Sorry I am not very good at compile errors - I'm still learning)

Summary
I would be greatful for any sugestions on what other tests I can try. Looks like there is a problem between BIOS, GNU/Grub on CD when not using floppy emulation. Seen in other laptops.

Best Regards,
Brendan M. Sleight

Real email: me.spam[**]barwap.com

Brendan Sleight <bmsleight>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by robertmh (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 15 Dec 2007 04:38:58 PM UTCrobertmhOpen/ClosedOpen=>Closed
    Sun 10 Oct 2004 12:47:03 AM UTCnirro_Carbon-Copy-=>Added nirro_
    Tue 21 Sep 2004 03:26:29 PM UTCokujiStatusInvalid=>Postponed
      Open/ClosedClosed=>Open
    Mon 20 Sep 2004 09:12:15 PM UTCokujiStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sat 18 Sep 2004 05:19:03 PM UTCbmsleightCarbon-Copy-=>Added me --DOT-- spam --AT-- barwap --DOT-- com

    Back to the top


    Powered by Savane 3.1-cleanup1