Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CentOS cannot boot

Status
Not open for further replies.

handle789

Technical User
Feb 21, 2007
41
0
0
US
Hi,

Can someone help with this booting issue?

My PC has 2 hard drives, one IDE and one Sata, with several disk partitions on the Sata drive and with both Windows XP and CentOS residing on the same larger Sata drive. It could dual boot into either CentOS or Windows XP until recently.

I recently installed a newer version of CentOS over the same old Linux partition. When booting up there is now a "grub>" prompt and nothing happens after this.

I typed boot and got:

Error 8: Kernel most be loaded before booting.

I boot into the Rescue mode using CD 1 of CentOS. Here is the output of fdisk -l, /boot/grub/device.map, /boot/grub/grub.conf, df -h. What changes are needed so that grub will display a boot menu instead of the grub prompt and will boot properly? Thank you.

fdisk -l
=========
Disk /dev/hdc: 40.0 GB .... (this is the small IDE Windows data drive)
...

Disk /dev/sda: 250.0 GB ... (this is the larger Sata drive with the two OS)

Device Boot Start End Blocks Id System
/dev/sda1 * 7 HPFS/NTFS
/dev/sda2 b W95 FAT32
/dev/sda3 f W95 Ext'd (LBA)
/dev/sda5 7 HPFS/NTFS
/dev/sda6 7 HPFS/NTFS
/dev/sda7 640K blk 83 Linux
/dev/sda8 65,954K blk 8e Linux LVM

/boot/grub/device.map
======================
(hd0) /dev/hdc
(hd1) /dev/sda

/boot/grub/grub.conf
=====================
default=0
timeout=5
splashimage=(hd1,6)/grub/splash.xpm.gz
hiddenmenu

title CentOS (2.6.18-194.el5xen)
root (hd1,6)
kernel /xen.gz-2.6.18-194.el5
module /vmlinuz-2.6.18-194.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
module /initrd-2.6.18-194.el5xen.img

title CentOS-base (2.6.18-194.el5)
root (hd1,6)
module /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-194.el5.img

title Other
rootnoverify (hd0,0)
chainloader +1

df -h
=======
/dev/VolGroup00/LogVol00 58 G (mounted on /)
/dev/sda7 578 M (mounted on /boot)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top