Compatible Support Forums: problem w/ grub.conf

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

problem w/ grub.conf

#1 User is offline   Mirrix16 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 25-November 03

Posted 25 November 2003 - 09:53 PM

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
0

#2 User is offline   blueworm 

  • member
  • Group: Members
  • Posts: 169
  • Joined: 02-March 03

Posted 27 November 2003 - 08:02 PM

This is what your grub.conf should look like...
Code:
default 4 
timeout 10
splashimage=(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.22
root (hd0,0)
kernel (hd0,0)/boot/bzImage.2.4.22 root=/dev/hda6 acpi=off

title=linux-2.6.0test7
root (hd0,0)
kernel (hd0,0)/boot/bzImage.2.6.0test7 root=/dev/hda6 acpi=off

title=linux-2.6.0test9
root (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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users