Re: Grub problems after RH7.1->FC1 Upgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I found the folution!  I simply needed to do the
following, without which grub couldn't find the
stuff in /boot/grub:
to find the stuff in /boot/grub until I did the
following:

	cd /boot
	ln -s . boot

Not sure why that was.  At any rate, for the record
here are all the steps on how I got my FC1 system 
(upgraded from RH7.1) to successfull upgrade from using 
lilo to using grub:


	[ Install the RPM: ]
rpm -ivh grub-0.93-7.i386.rpm
rehash


	[ Use  this in /boot/grub/grub.conf: ]
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda11
#          initrd /initrd-version.img
#
# NOTE: default=0 means use the first one
#
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptlsmp)
        root (hd0,0)
        kernel /vmlinuz-2.4.22-1.2115.nptlsmp ro root=LABEL=/ hdb=ide-scsi
        initrd /initrd-2.4.22-1.2115.nptlsmp.img


	[ Set up grub conf files...  The boot link was needed 
	  because otherwise it wouldn't find menu.lst ... must 
	  be a better way but I needed this hack to work! ]
chmod 644 /boot/grub/grub.conf
cd /boot/grub/
ln -s ./grub.conf menu.lst
cd /etc
ln -s ../boot/grub/grub.conf .
cd /boot
ln -s . boot



	[ Install grub as the boot loader: ]
grub-install /dev/hda


	[ Confirm successful installation: ]
grub
	[ Then in the grub prompts:
	  root (hd0,0) defines where your boot partition is 
	  [(hd0,0)=hda, (hd0,4)=hd5...].
	  setup (hd0,4) installs grub in hda's MBR: ]
grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> find /boot/grub/stage1
 (hd0,0)

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)"...  15 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded
Done.

grub> quit

	[ Reboot: ]
shutdown -r now


Forwarded message:
> 
> Hi Scott,
> 
> Thanks a lot for your message back.  /boot does have its
> own partition which is in /etc/fstab and was mounted
> at the time of the grub-install.  I am going to
> try some more noodling and googling to see if
> I can figure this out.
> 
> [root@duey1 ~]# grep boot /etc/fstab
> LABEL=/boot             /boot                   ext3    defaults        1 2
> 
> [root@duey1 ~]# df /boot
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda1                38859     12863     23990  35% /boot
> 
> [root@duey1 ~]# ls /boot/grub
> device.map     fat_stage1_5  grub.conf     menu.lst        reiserfs_stage1_5  stage1  vstafs_stage1_5
> e2fs_stage1_5  ffs_stage1_5  jfs_stage1_5  minix_stage1_5  splash.xpm.gz      stage2  xfs_stage1_5
> 
> Steve
> 
> > From talbotscott@xxxxxxx Tue Mar 30 00:41:58 2004
> > Subject: Re: Grub problems after RH7.1->FC1 Upgrade
> > From: Scott Talbot 
> > 
> > On Mon, 2004-03-29 at 18:40, Steve Thorpe wrote:
> > > Greetings,
> > > 
> > > I upgraded an RH7.1 box to FC1 and it went fairly smoothly.
> > > One thing I noticed after the upgrade though -- it was 
> > > still using lilo and grub hadn't been installed.  So I
> > > installed & attempted to configure grub, with only partial
> > > success - it manages to boot to the grub> prompt but then
> > > it waits for me to manually finish the boot procedure by 
> > > entering these commands by hand:
> > > 
> > > 	kernel /vmlinuz-2.4.22-1.2115.nptlsmp root=/dev/hda5 
> > > 	initrd /initrd-2.4.22-1.2115.nptlsmp.img 
> > > 	boot
> > > 
> > > I really really want this to be automated at bootup! 
> > > There must be something really simple that I am missing - 
> > > right? Any advice would be very much appreciated.  Some 
> > > more info on how I installed follows FYI.
> > > 
> > > Thanks a lot,
> > > 
> > 	My best guess is that /boot has not been set up properly.  Did you give
> > it a separate partition when you installed?
> > If you did, put it on its own partition, there should be a reference to
> > it in your /etc/fstab and that needed to be mounted when you ran the
> > grub-install command.
> > 
> > Scott



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux