Jump to content
Compatible Support Forums
Sign in to follow this  
Mirrix16

problem w/ grub.conf

Recommended Posts

Ok, I am not sure if my problem is with the grub.conf, but that is my guess.

 

Let me say that I am a noob when it comes to Linux.

 

Currently I am running Red Hat 9 and i just installed a 3com NIC and ran a make config to try to get it to work. I compiled the kernal and copied it into my /boot/ directory.

 

Now this is what I added to the grub.conf

 

title Red Hat Linux (2.4.20-8_Nov25a)

root (hd0,0)

kernel /Nov25a ro root=LABEL=/

initrd /initrd-2.4.20-8.img

 

this is what I get when I do a reboot and choose this kernal.

 

ERROR: /bin/insmod exited abnormally!

Mounting /proc filesystem

Creating block devices

Creating root device

Mounting root filesystem

mount: error 19 mounting ext3

pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2

umount /initrd/proc failed: 2

Freeing unusd kernel memory: 132k freed

Kernel panic: No init found. Try passing init=option to kernel.

 

Any ideas or help would be appreciated.

 

Thanks.

 

Steve

Share this post


Link to post

This is what your grub.conf should look like...

Code:
default 4 timeout 10splashimage=(hd0,0)/boot/grub/splash.xpm.gz#title=linux-2.4.21 #root (hd0,0)#kernel (hd0,0)/boot/bzImage.2.4.21 root=/dev/hda6 hdc=ide-scsi title=linux-2.4.22root (hd0,0)kernel (hd0,0)/boot/bzImage.2.4.22 root=/dev/hda6 acpi=offtitle=linux-2.6.0test7root (hd0,0)kernel (hd0,0)/boot/bzImage.2.6.0test7 root=/dev/hda6 acpi=offtitle=linux-2.6.0test9root (hd0,0)kernel (hd0,0)/boot/bzImage.2.6.0test9 root=/dev/hda6 acpi=off

Yours reads...

Code:
title Red Hat Linux (2.4.20-8_Nov25a)root (hd0,0)kernel /Nov25a ro root=LABEL=/initrd /initrd-2.4.20-8.img 

Should read...

Code:
title Red Hat Linux (2.4.20-8_Nov25a)root (hd0,0)kernel (hd0,0)/boot/Nov25a root=/dev/hdaX #(note X is whereevre your root partition is) 

Make sure the name of your kernel matches the name in grub.conf

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×