RH 9 Problem Booting with Grub
Hi,
I have the 2.4.20-8 version of Redhat installed on both my laptop and desktop machines. I use Grub to boot both machines. My laptop works fine, however, I can't boot my desktop machine from my /boot partition on my harddrive. My Kernel command is kernel /vmlinuz-2.4.20-8 ro root=LABEL=/dev/hdf2 hdc=ide-scsi and the initrd command is initrd /initrd-2.4.20-8.img. Both the kernel and initrd commands seem to load from the Grub command line. When I enter the boot command the machine freezes. I tried setting my root to the floppy drive, since I can boot from the floppy, and load the kernel from the floppy. Again, it seems to load and so does the initrd but my machine freezes when I type boot.
I can boot my desktop from the boot diskette, which I don't believe uses Grub, but I have no luck trying to boot from the HD (using Grub).
Equipment:
- Two 120 GB Maxtor Drives
- Maxtor/Promise ATA133 PCI HD adapter (Primary Master and Slave on Maxtor/Promise controller).
- Plextor 16/10/40 CDR (Primary Master on MB)
- Intel 850MV Motherboard (up to date BIOS)
-1.8 GHz Pentium IV
- Geforce2 MX440 AGP Graphics Card
- 1 GB RDRAM
Any help will be greatly appreciated.
ScottyM
more info re: my grub problem ( post #2)
I made a grub boot diskette and attempted to boot from my diskette. I get the same result when booting from grub off the HD.
After selecting my Linux installation from the grub menu, I see the following output:
" Booting 'Red Hat Linux (2.4.20-9)'
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
[Linux-bzImage, setup=0x1400, size-0x11098a]
initrd /initrd-2.4.20-8.img
[Linux-initrd @ 0x37fcc000, 0x23c23 bytes]"
after the preceding message is displayed, the computer hangs.
My grub.conf file follows:
[root@localhost smollica]# cat /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 (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdf2
# initrd /initrd-version.img
#boot=/dev/hdf1
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd1,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1
[root@localhost smollica]#
The layout for my two hard drives follows:
[smollica@localhost smollica]# fdisk -l /dev/hde
Disk /dev/hde: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hde1 * 1 10791 86678676 7 HPFS/NTFS
/dev/hde2 10792 14945 33366973+ 7 HPFS/NTFS
[smollica@localhost smollica]# fdisk -l /dev/hdf
Disk /dev/hdf: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdf1 * 1 13 104391 83 Linux
/dev/hdf2 14 14692 117909067+ 83 Linux
/dev/hdf3 14693 14946 2040255 82 Linux swap
and, finally, I also included the output of my `grub-install` command:
[smollica@localhost smollica]# grub-install /dev/fd0
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hde
(hd1) /dev/hdf
Thanks again,
Scott
Last edited by scottym; 08-05-2003 at 07:25 PM.
|