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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

re-compile kernel; simple boot (grub) problem

Status
Not open for further replies.

pollux0

IS-IT--Management
Mar 20, 2002
262
US
I am getting this error on boot:

"Please append a correct "root=" boot option...."

I have a newly installed scsi box with RH 9. I am trying to recompile a newer kernel and can’t seem to get it to boot properly. Can anyone tell me the correct parameters in grub.conf?


********
"df" gives me this:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 8768128 887600 7435128 11% /
/dev/sda1 101089 11356 84514 12% /boot
********
here is the grub.conf(the first entry is the one that does not work):

title TEST_2.4.22
root (hd0,0)
kernel /bzImage ro root=/dev/sda1
initrd /initrd-2.4.22.img
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img

********

 
According to
Code:
df
, your root is
Code:
/dev/sdb1
, not
Code:
/dev/sda1
.

//Daniel
 
that is what I thought(I didn't know if that particular argument was looking for the root partition or the boot partition).... However, I have tried both "root=/dev/sda1" and "root=/dev/sdb1" and I still get the same error..

anything else wrong?

I notice that in "/lib/mod*/2.4.22/kernel/drivers/scsi" There is only the directory "aic7xxx" but nothing else. In the original kernel path, "kernel/drivers/scsi" there is the "aic7xxx" directory and a bunch of *.o files, one being "sd_mod.o". Do I need this module as well to get scsi working properly?

Do I need the --with=<module> argument when I do the mkinitrd command?

thanks again
 
let me restate what I just said...

I built the SCSI support into the kernel. does that mean I dont need to do the &quot;mkinitrd&quot; command? Or do I have to build scsi support as modules?

thanks again
 
Did you rename the kernel as bzImage? Which normally should be called vmlinuz-2.4.22 after you make install into /boot...

Have you tried this: kernel /vmlinuz-2.4.22 ro root=/dev/sdb1 (3rd line)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top