That explains things.  I don't recall having to setup a boot partition
in the manual.  That is an error on my part.  I recall that RH and
Mandrake don't use a /boot partition which was the reason for my
actions.  I haven't got any errors with the grub commands root and setup
and with a reboot I only got the message:
GRUB hard disk error

### end of boot ###


this is what I got even after removing the line in fstab:

grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  16 sectors are
embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p
(hd0,0)/boot/grub/stage2
/boot/grub/grub.conf"... succeeded
Done.

grub>
### end of grub ###

Might the bzImage be bad.  How would I check or see more info. to
diagnose the problem?


Kevin Anderson wrote:
> 
> out of curiosity, if you type mount and confirm that /boot is NOT mounted,
> then you do an ls -alh /boot, is the grub subdirectory there still?
> 
> Your root and boot partitions are the same.  /dev/hda1.  They should be hda1
> for boot, hda2 for swap and 3 for root (this is from memory)  They will all
> be different though.  On your fstab, the first 2 lines show hda1 being
> loaded as root, and as boot.  That is incorrect.
> 
> Ok, I read back through some of your previous posts.  From the sound of it,
> you've made only a swap and a root partition.  You don't have a boot
> partition.  That is fine, but then the first line of your fstab should be
> removed.  At this point, I'm starting to guess a bit, but I suspect you'll
> have a /boot and a /grub directory right off root.  You'll need to move
> /grub to be a subdirectory of /boot.
> 
> Now, when you did the root(hd0,0) and the setup(hd0) did you get any errors?
> When you restart, does the initial grub menu come up?
> 
> Kev.
> 
> ----- Original Message -----
> From: "Jason Louie" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 21, 2003 12:36 PM
> Subject: Re: (clug-talk) Gentoo Grub help
> 
> > Here is the fstab:
> >
> > /dev/hda1               /boot           ext3
> > noauto,noatime          1 1
> > /dev/hda1               /               ext3
> > noatime                 0 0
> > /dev/hda2               none            swap
> > sw                      0 0
> > /dev/cdroms/cdrom0      /mnt/cdrom      iso9660
> > noauto,ro               0 0
> >
> > none                    /proc           proc
> > defaults                0 0
> >
> > none                    /dev/shm        tmpfs
> > defaults                0 0
> > ### End of fstab ###
> >
> > Yes it was a late night.  Vacation can skew your schedule like that :-)
> >
> >
> > Shawn Grover wrote:
> > >
> > > You need to do something like this:
> > >
> > > mount /dev/hda1 /boot
> > >
> > > before you copy your image to the boot partition, and before you setup
> Grub.
> > > In your fstab file, the default is to NOT mount the /boot partition when
> the
> > > system comes up.  So, if you don't do the mount first, then you are
> simply
> > > putting the files into a directory - not on the boot partition.
> > >
> > > (looks like you had a LATE night.... :D )
> > >
> > > HTH
> > >
> > > Shawn
> > >
> > > -----Original Message-----
> > > From: Jason Louie [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 21, 2003 10:49 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: (clug-talk) Gentoo Grub help
> > >
> > > So do I need to make a boot partition?  I did the following:
> > >
> > > grub> root (hd0,0)
> > > grub> setup (hd0)
> > >
> > > Here is the grub.conf file:
> > >
> > > timeout 30
> > > default 0
> > > fallback 1
> > >
> > > # Splash Image
> > > splashimage=(hd0,0)/boot/grub/splash.xpm.gz
> > > title  GNU/Linux
> > > root (hd0,0)
> > > kernel (hd0,0)/boot/bzImage root=/dev/hda1
> > >
> > > # For installing GRUB into the hard disk
> > > title Install GRUB into the hard disk
> > > root    (hd0,0)
> > > setup   (hd0)
> > >
> > > # Change the colors.
> > > title Change the colors
> > > color light-green/brown blink-red/blue
> > > ### end of grub file ###
> > >
> > > Here is the /boot/ listing:
> > > lrwxrwxrwx    1 root     root            1 Aug 14 00:41 boot -> .
> > > -rw-r--r--    1 root     root      1333181 Aug 21 02:46 bzImage
> > > drwxr-xr-x    2 root     root         4096 Aug 21 11:19 grub
> > > ### End of listing ###
> > >
> > > # /etc/mtab
> > > /dev/hda1 / ext3 rw,noatime 0 0
> > > /dev/hda1 /boot ext3 rw,noatime 0 0
> > > ### end of mtab ###
> > >
> > > Was it correct copying the grub directory into /boot/?
> > >
> > > Shawn Grover wrote:
> > > >
> > > > Sounds like you forgot to mount the /boot partition before going
> through
> > > the
> > > > Grub setup.  I've done this a couple of times when recompiling my
> kernel.
> > > > Posting your grub.conf file will help some, but I think the problem is
> in
> > > > how/when grub got installed.
> > > >
> > > > Shawn
> > > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, August 21, 2003 2:34 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: (clug-talk) Gentoo Grub help
> > > >
> > > > Hello all, I've just spent the last little while installing Gentoo and
> > > have
> > > > ran into a little snag.  I'm not very formilar with grub or the
> details of
> > > > the boot process so bare with me.  After I install gentoo and reboot
> the
> > > > computer I get the following output:
> > > > GRUB hard disk error
> > > >
> > > > I've gone through the installation manual and looked to google to find
> a
> > > > solution but couldn't diagnose the problem.  I've complied the kernel
> and
> > > > copied the bzImage to the /boot directory on /dev/hda1 and installed
> grub
> > > as
> > > > my bootloader.  I have two partitions
> > > >
> > > > /dev/hda1 >> /
> > > > /dev/hda2 >> swap
> > > >
> > > > I've set /dev/hda1 to be bootable using cfdisk.
> > > > One odd thing I noticed was that when I installed grub, /grub/ was
> created
> > > > rather than /boot/grub/ as mentioned in all the gentoo examples I've
> seen.
> > > > I've tried linking to the /grub/ directory and even copied the
> directory
> > > > recursivly into the /boot/ directory but the same problem exists.  I'm
> out
> > > > of ideas here and any help is apprieciated.  Thx.
> > > >
> > > > Jason
> >
> >

Reply via email to