LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Make a new iso image to install my modified kernel (https://www.linuxquestions.org/questions/linux-software-2/make-a-new-iso-image-to-install-my-modified-kernel-392667/)

biggeorge 12-14-2005 04:04 AM

Make a new iso image to install my modified kernel
 
Hy all!
I have a big problem:
I have a SCSI RAID Adapter: he work with DAC960 Linux driver.
1) The RH EL3 (kernel 2.4) hawe a bug when stress I/O on this SCSI adapter
2) then I try to install CentOS 4.2 (kernel 2.6) but this distribution (and Fedora Core too) have to make a kernel modify for install properly.
3) I have found instuction for modify CentOS's kernel and build new iso DVD/CDs for install him.

4) Hi tried to make this procedure, but in all case when I try to boot the machine with the new iso I retrieve one error (the DAC960 driver is correctly loaded): Anaconda do not mount correcly the DVD format, also if I try to select FTP service for install, anaconda do not recover the correct format.
5) Then, for bypass this problem, I have installed th originale CentOS 4.2 on IDE HD, I have modified, compiled and installed the kernel (for DAC960 support) on this machine, and then I put the IDE HD in the machin whit SCSI adapter
6) The boot from HD IDE work proprely, I have mount the partition from SCSI adapter on temporary mountpoint (example: mount -t ext3 /dev/rd/c0d0p1 /tmp/boot), I have copy the partitions from IDE HD ( /boot, /, /var/log), I have modified grub.conf and device.map. Then I have turn-off the server, removed the IDE HD, set BIOS for boot from SCSI device... and then: power on!
7) Little problem: grub start ok, but hi don't find the / partition and then --> Kernel panic!!

At the last:
the partition of "/" is "/dev/rd/c0d0p2" = "(hd0,1)" and
"/boot" is "/dev/rd/c0d0p1" = "(hd0,0)"

the kernel is correctly find by grub (it's in hd0,0!) but the "/" partition no! ...

Someone help me pls?
:cry: :cry:

bulliver 12-16-2005 01:53 PM

You say you transfered the data from the ide HDD to the scsi one?
So then you need to tell the kernel where "/" is:
In grub.conf:
kernel fookernel root=/dev/sda2

biggeorge 12-20-2005 04:40 AM

I make it, but don't work.

I have bootable partition /boot with kernel: grub start correctly and hi find the kernel.
the problem is witch grub don't find / partition and then do not load S.O.
I try to modify grub configuration for the / mountpoint, but hi don't work:
title Red Hat Enterprise ES (2.4.21-4EL)
root (hd1,0)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
initrd /initrd-2.4.21-4.EL.img

I try also:
kernel /vmlinuz-2.4..21-4.EL ro root=/dev/rd/c0/c0d0p1
were =/dev/rd/c0/c0d0p1 is the mount point /

....


All times are GMT -5. The time now is 03:51 PM.