A fascinating GRUB adventure

Kevin Kevin.Baradon at wanadoo.fr.invalid
Fri Jan 2 12:06:26 PST 2004


Try to install grub natively with 'install' command and the 'd' option.
I had got the same problem and it worked for me.

"T.B. van der Molen" <tbm at home.nl> a écrit dans le message de
news:20031210215841.GA1052 at tbm.yi.org...
> On Thu,  4 Dec 2003 22:29:49 +0100, Richard A Downing FBCS thus wrote:
> > On Thu, 4 Dec 2003 18:45:39 +0100
> > "T.B. van der Molen" <tbm at home.nl> wrote:
> >
> > > On Tue,  2 Dec 2003 07:45:09 +0100, Richard A Downing FBCS thus
> > > wrote:
> > > > On Mon, 1 Dec 2003 23:26:40 +0100
> > > > "T.B. van der Molen" <tbmathome.nl at tbm.yi.org> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I have searched the usual resources for answers to the following
> > > > > problem, but they appeared to be of no help, so I'm afraid I'm
> > > > > going to bother you with it.
> > > > >
> > > > > I have a finished LFS 5.0 on /dev/hda6 (reiserfs) but when I
> > > > > reboot GRUB yields a very friendly "GRUB Read Error" and leaves
> > > > > it to that.
> > > > >
> > > > > Naturally, I followed all instructions regarding GRUB: I copied
> > > > > the stage1, stage2 and all *stage1_5 files to /boot/grub,
> > > > > created a menu.lst in /boot/grub and executed "root (hd0,5)" and
> > > > > "setup (hd0)" in the GRUB shell. All these actions gave the
> > > > > impression of being successful.
> > > > >
> > > > > Booting from the GRUB floppy gives no problems, however. It
> > > > > loads the stage2 file, I type "root (hd0,5)", "kernel
> > > > > /boot/lfskernel root=/dev/hda6" and "boot" and there is a kernel
> > > > > booting.
> > > > >
> > > > > I tried to install GRUB on the MBR from the GRUB floppy - as
> > > > > described in the GRUB documentation - but this resulted in the
> > > > > same error.
> > > > >
> > > > > Also I copied the GRUB files (stage1, stage2, *stage1_5) to
> > > > > /boot/grub on /dev/hda2 (ext3) where an LFS 4.1 system lives.
> > > > > Then I tried to install GRUB on the MBR using "root (hd0,1)".
> > > > > This did not help either.
> > > > >
> > > >
> > > > It might help if you also post the partition table for the disk?
> > > > Type:
> > > >
> > > > fdisk -l /dev/hda > somefile
> > >
> > > Behold:
> > >
> > > ###
> > >
> > > Disk /dev/discs/disc0/disc: 8455 MB, 8455200768 bytes
> > > 255 heads, 63 sectors/track, 1027 cylinders
> > > Units = cylinders of 16065 * 512 = 8225280 bytes
> > >
> > >                 Device Boot    Start       End    Blocks   Id
> > >                 System
> > > /dev/discs/disc0/part1             1       250   2008093+   6  FAT16
> > > /dev/discs/disc0/part2           251       500   2008125   83  Linux
> > > /dev/discs/disc0/part3           501      1000   4016250    5
> > > Extended/dev/discs/disc0/part4          1001      1027    216877+
> > > 82  Linux swap/dev/discs/disc0/part5           501       750
> > > 2008093+  83  Linux/dev/discs/disc0/part6           751      1000
> > > 2008093+  83  Linux
> > >
> > > ###
> > >
> > > part6 (i.e. hda6) is reiserfs and holds LFS 5.0, part2 and part5 are
> > > ext3 with part2 being LFS 4.1.
> > >
> > > GRUB correctly identifies these partitions as is demonstrated below:
> > >
> > > ###
> > >
> > > grub> root (hd0,
> > >  Possible partitions are:
> > >    Partition num: 0,  Filesystem type is fat, partition type 0x6
> > >    Partition num: 1,  Filesystem type is ext2fs, partition type 0x83
> > >    Partition num: 3,  Filesystem type unknown, partition type 0x82
> > >    Partition num: 4,  Filesystem type is ext2fs, partition type 0x83
> > >    Partition num: 5,  Filesystem type is reiserfs, partition type
> > >    0x83
> > >
> > > ###
>
> Sorry for my very late reply...
>
> > How do you get to see the grub partitions?  You said that only stage 1
> > loaded and that it failed in stage-1_5/stage2 loading.  Or is this a
> > print by the floppy version?  We know the floppy version can read the
> > disk, as you can boot with it.
>
> I started GRUB from the chroot environment.
>
> > I suspect that your bios is strange in some way, either not doing lba
> > properly or mistaken about the disk geometry.
> >
> > You might try some extra parameters to the setup command, or use the
> > lower level 'install' command which has even more parameters.
> >
> > To do this you need to note the exact information reported by grub
> > when you type 'setup (hd0)'.  You'll see that this actually calls two
> > other low level commands.  You are going to have to check these out in
> > the grub manual:
> >
> > http://www.gnu.org/software/grub/manual/html_mono/grub.html
> >
> > The command I think you may need is install with the d option, or
> > --force-lba.
>
> I'll dive into it. The day on which I will be installing lilo in despair
> won't be near...
>
> Thanks for the information.
>
> -- 
> Blessed is a world that is based upon a binary foundation.
>





More information about the lfs-support mailing list