Hi, this is Kunihiro.
Now I understand stage2 (after grub-0.5 it grow) does't fit to Hard
Disk first cylinder area. So in my case (stage1.5 or stage2 have to
exist in first 1024 cylinder area) I have to use stage1.5 for booting
form Hard Disk Drive. But grub-0.5.9X is rotten and it can't work for
me.
So only choice is try CVS version but it can't be compile. Below is
patch for grub/asmstub.c. I've already sent this patch to Mr. Okuji.
*** asmstub.c Thu May 13 03:59:40 1999
--- asmstub.c.new Wed May 12 21:14:40 1999
***************
*** 37,42 ****
--- 37,43 ----
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
+ #include <errno.h>
#ifdef __linux__
# include <sys/ioctl.h> /* ioctl */
After patching, I can compile the latest grub but still it doesn't
work ;-). So I've applied Mr. Brian Brunswick
<[EMAIL PROTECTED]>'s great patch. Some part of the patch is
already applied to the repository, so I've applied rest of them by
hand. Now it works and boot from the Hard Disk Drive.
Then still story continues. stage2 doesn't read menu.lst. I've
changed shared_src/asm.S by hand. I know this is ugly `it works for
me' kind work. But I'm already tired.
Before:
#ifndef CONFIG_FILE_ASM
.string "/boot/grub/menu.lst"
#else /* CONFIG_FILE_ASM */
After:
#ifndef CONFIG_FILE_ASM
.string "(hd0,1)/boot/grub/menu.lst"
#else /* CONFIG_FILE_ASM */
Now my GNU/Hurd and GNU/Linux boot.
I want to suggest some points:
1. How to boot from Hard Disk.
It should be mentioned that how to boot from Hard Disk Drive using
stage1.5. It takes so much time to understand stage2 doesn't fit
to Hard Disk Drive's first cylinder.
2. Installation command description about stage1.5.
There is no documentation about how to install stage1.5.
In my case, I've checked source files. *sigh*
3. Please test snapshot and CVS repository version of grub.
I don't believe anybody has tested grub-0.5.9X's stage1.5. Much
more test is need. Not only floppy boot but also Hard Disk boot.
Maybe I can help.
Off cource I'll investigate config_file detection problem. But I'm
very sleeply and tired. But I'm very happy with I can boot from Hard Disk
Drive. I hope my experience will be help to other grub user.
--
Kunihiro Ishiguro