Grub problems after RH7.1->FC1 Upgrade
Steve Thorpe
thorpe at cnidr.org
Tue Mar 30 02:40:45 UTC 2004
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,
Steve Thorpe
[ Installed grub RPM: ]
rpm -ivh grub-0.93-7.i386.rpm
[ I set up /boot/grub/grub.conf as shown below, then: ]
chmod 644 /boot/grub/grub.conf
cd /etc
ln -s ../boot/grub/grub.conf .
cd /boot/grub
ln -s ./grub.conf menu.lst
[ Installed grub as the boot loader as follows: ]
grub-install /dev/hda
grub
[ Then, in the grub prompts: ]
root (hd0,0)
setup (hd0)
quit
[ Reboot: ]
shutdown -r now
--------------------------------
Contents of /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.2174.nptlsmp)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2174.nptlsmp ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.22-1.2174.nptlsmp.img
title Fedora Core (2.4.22-1.2174.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.22-1.2174.nptl.img
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
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.22-1.2115.nptl.img
---------------------------------------------------
Output from "ls -al /etc/grub.conf /boot /boot/grub":
---------------------------------------------------
lrwxrwxrwx 1 root root 22 Mar 29 15:00 /etc/grub.conf -> ../boot/grub/grub.conf
/boot:
total 8379
drwxr-xr-x 5 root root 2048 Mar 29 17:36 .
drwxr-xr-x 21 root root 4096 Mar 29 18:49 ..
drwxr-xr-x 3 root root 1024 Mar 29 14:44 boot
-rw-r--r-- 1 root root 512 Oct 19 2000 boot.0300
-rw-r--r-- 1 root root 5824 Aug 20 2003 boot.b
-rw-r--r-- 1 root root 612 Aug 20 2003 chain.b
-rw-r--r-- 1 root root 49619 Oct 29 15:38 config-2.4.22-1.2115.nptl
-rw-r--r-- 1 root root 49637 Oct 29 15:29 config-2.4.22-1.2115.nptlsmp
-rw-r--r-- 1 root root 49567 Feb 18 16:47 config-2.4.22-1.2174.nptl
-rw-r--r-- 1 root root 49568 Feb 18 16:34 config-2.4.22-1.2174.nptlsmp
drwxr-xr-x 2 root root 1024 Mar 29 18:47 grub
-rw-r--r-- 1 root root 162738 Mar 26 16:56 initrd-2.4.22-1.2115.nptl.img
-rw-r--r-- 1 root root 163854 Mar 26 16:57 initrd-2.4.22-1.2115.nptlsmp.img
-rw-r--r-- 1 root root 162661 Mar 28 14:54 initrd-2.4.22-1.2174.nptl.img
-rw-r--r-- 1 root root 163897 Mar 28 14:54 initrd-2.4.22-1.2174.nptlsmp.img
-rw-r--r-- 1 root root 553 Mar 26 17:11 kernel.h
drwxr-xr-x 2 root root 12288 Oct 19 2000 lost+found
-rw------- 1 root root 98304 Mar 29 14:52 map
-rw-r--r-- 1 root root 23108 Feb 23 2001 message
-rw-r--r-- 1 root root 21282 Feb 23 2001 message.ja
lrwxrwxrwx 1 root root 19 Oct 19 2000 module-info -> module-info-2.4.2-2
-rw-r--r-- 1 root root 640 Aug 20 2003 os2_d.b
lrwxrwxrwx 1 root root 32 Mar 29 17:36 System.map -> System.map-2.4.22-1.2115.nptlsmp
-rw-r--r-- 1 root root 583022 Oct 29 15:38 System.map-2.4.22-1.2115.nptl
-rw-r--r-- 1 root root 607977 Oct 29 15:29 System.map-2.4.22-1.2115.nptlsmp
-rw-r--r-- 1 root root 571730 Feb 18 16:47 System.map-2.4.22-1.2174.nptl
-rw-r--r-- 1 root root 597201 Feb 18 16:34 System.map-2.4.22-1.2174.nptlsmp
lrwxrwxrwx 1 root root 41 Mar 26 16:56 vmlinux-2.4.22-1.2115.nptl -> ../lib/modules/2.4.22-1.2115.nptl
/vmlinux
lrwxrwxrwx 1 root root 44 Mar 26 16:57 vmlinux-2.4.22-1.2115.nptlsmp -> ../lib/modules/2.4.22-1.2115.n
ptlsmp/vmlinux
lrwxrwxrwx 1 root root 41 Mar 28 14:54 vmlinux-2.4.22-1.2174.nptl -> ../lib/modules/2.4.22-1.2174.nptl
/vmlinux
lrwxrwxrwx 1 root root 44 Mar 28 14:53 vmlinux-2.4.22-1.2174.nptlsmp -> ../lib/modules/2.4.22-1.2174.n
ptlsmp/vmlinux
lrwxrwxrwx 1 root root 26 Mar 28 14:54 vmlinuz -> vmlinuz-2.4.22-1.2174.nptl
-rw-r--r-- 1 root root 1239821 Oct 29 15:38 vmlinuz-2.4.22-1.2115.nptl
-rw-r--r-- 1 root root 1325447 Oct 29 15:29 vmlinuz-2.4.22-1.2115.nptlsmp
-rw-r--r-- 1 root root 1240023 Feb 18 16:47 vmlinuz-2.4.22-1.2174.nptl
-rw-r--r-- 1 root root 1326212 Feb 18 16:34 vmlinuz-2.4.22-1.2174.nptlsmp
/boot/grub:
total 209
drwxr-xr-x 2 root root 1024 Mar 29 18:47 .
drwxr-xr-x 5 root root 2048 Mar 29 17:36 ..
-rw-r--r-- 1 root root 80 Mar 29 18:29 device.map
-rw-r--r-- 1 root root 7584 Mar 29 18:47 e2fs_stage1_5
-rw-r--r-- 1 root root 7248 Mar 29 18:47 fat_stage1_5
-rw-r--r-- 1 root root 6688 Mar 29 18:47 ffs_stage1_5
-rw-r--r-- 1 root root 1119 Mar 29 15:11 grub.conf
-rw-r--r-- 1 root root 8192 Mar 29 18:47 jfs_stage1_5
lrwxrwxrwx 1 root root 11 Mar 29 18:09 menu.lst -> ./grub.conf
-rw-r--r-- 1 root root 6848 Mar 29 18:47 minix_stage1_5
-rw-r--r-- 1 root root 9056 Mar 29 18:47 reiserfs_stage1_5
-rw-r--r-- 1 root root 35300 Oct 30 12:22 splash.xpm.gz
-rw-r--r-- 1 root root 512 Mar 29 18:47 stage1
-rw-r--r-- 1 root root 104072 Mar 29 18:47 stage2
-rw-r--r-- 1 root root 6336 Mar 29 18:47 vstafs_stage1_5
-rw-r--r-- 1 root root 9128 Mar 29 18:47 xfs_stage1_5
--------------------------------------------------------------
Steve Thorpe Email: thorpe at cnidr.org
Systems Programmer / Analyst Phone: (919) 248-1161
MCNC Research and Development Institute Fax: (919) 248-1101
Advanced Networking Research Division
Center for Networked Information Discovery and Retrieval
--------------------------------------------------------------
More information about the users
mailing list