Hi Dirk,

From: Dirk Ritter <[EMAIL PROTECTED]>
Subject: GRUB 0.5.92 testing
Date: Sat,  7 Aug 1999 18:11:26 +0200 (CEST)

> Well - Grub still is rather Hurdish so I just carelessly postet this
> to the list in order to let others know about possible problems.

  That's good, very good, but please post your mail to bug-grub as
well, whenever appropriate. Usually I don't read any mail in
debian-hurd very carefully but read everything in bug-grub very
seriously, as I'm the co-maintainer of GNU GRUB but not any member of
the Hurd core team. Therefore, it's possible for me to forget your
report if you don't post your report to bug-grub, even if it is very
important.

  BTW if you assume GRUB is Hurdish, that's quite wrong. In fact, GRUB
supports GNU/Linux much better than GNU/Hurd at the moment.

> (hd0) configured as SCSI disk, (hd0,0) with ext2-fs:
> install= (hd0,0)/grub/stage1_lba d (hd0) (hd0,0)/grub/stage2
>          0x8000 p (hd0,0)/grub/menu.lst
> - does result in "Error: LBA", requires Ctrl-Alt-Del

  Hmm... what you did seems to be correct... Could you test this patch
attached below? Applying this patch to grub-0.5.92, try the command
"geometry= (hd0)" in the ``native'' grub.

> (fd0), ext2-fs:
> install= (fd0)/grub/stage1_lba d (fd0) (fd0)/grub/stage2
>          0x8000 p (fd0)/grub/menu.lst
> - does result in "Error: LBA", requires Ctrl-Alt-Del

  That's the correct result. AFAIK, any floppy drive does not allow
LBA access.

> (hd0) configured as IDE disk, (hd0,0) with ext2-fs:
> install= (hd0,0)/grub/stage1_lba d (hd0) (hd0,0)/grub/stage2
>          0x8000 p (hd0,0)/grub/menu.lst
> - works, i.e. stage2 is loaded (this shuts a lot of guesswork
>   out I suppose, so I gave it a try today)

  That's good to know.

> Yet another issue - is scrolling of lists with more than 12
> menu entries supposed to work?

  I fixed the problem some months ago.

> - Loading OS/2 (v3.0, also known as Warp) from an HPFS formatted
>   partition worked nicely, just use "root=(hd?,?)" and then
>   "chainloader= +1"  (No - I am unable to ever test this again
>   since I nuked all proprietory stuff.  Perhaps one needs to use
>   "rootnoverify" instead, but even "root" should do.)

  Thanks. I'll fix the example.

> - Using 'makeactive' seems not to be needed with various versions
>   of DOS as well - I tried "chainloader= +1" with Novell DOS 7.0,
>   DOS'95 and DOS-NT -- there have not been any problems so far
>   (primary partitions only, I never used anything else)

  I don't know if there is still any bootloader which looks for the
active flag in a boot drive, but it is not bad to set the flag.

----------------------------------------------------------------------
OKUJI Yoshinori  <[EMAIL PROTECTED]>           ^o-o^
http://duff.kuicr.kyoto-u.ac.jp/~okuji (in English)     m /
--- grub-0.5.92.orig/stage2/cmdline.c   Thu Jul 15 20:22:18 1999
+++ grub-0.5.92/stage2/cmdline.c        Sun Aug  8 11:55:02 1999
@@ -661,6 +661,33 @@
       grub_printf (" The quit command is ignored in Stage2\n");
 #endif
     }
+  else if (substring ("geometry", cur_heap) < 1)
+    {
+      set_device (cur_cmdline);
+      
+      if (! errnum)
+       {
+         struct geometry geom;
+         
+         if (get_diskinfo (current_drive, &geom))
+           errnum = ERR_NO_DISK;
+         else
+           {
+             char *msg;
+             
+             if (geom.flags & BIOSDISK_FLAG_LBA_EXTENSION)
+               msg = "LBA";
+             else
+               msg = "CHS";
+             
+             grub_printf ("drive 0x%x: C/H/S = %d/%d/%d, "
+                          "The number of sectors = %d, %s\n",
+                          current_drive,
+                          geom.cylinders, geom.heads, geom.sectors,
+                          geom.total_sectors, msg);
+           }
+       }
+    }
   else if (*cur_heap && *cur_heap != ' ')
     errnum = ERR_UNRECOGNIZED;
   

Reply via email to