hmalkan
asked on
Recompiling Red Hat Enterprise Linux 4 kernel (2.6 kernel)
I want to restore Red Hat Entrprise Linux 4 system from a backup of another machine. Sine the hardware is different on my restore machine, the system is not coming up. I want to recompile the kernel to match the hardware
You need a boot disk, a floppy usually, to get up and running first. Then you can can patch the kernel manually until you can make it boot from the hard drive. You should have a generic bare.i or bareacpi.i and make the bookdisk. You may also need ramdisks.
ASKER
Let me provide you with details of my problem.
I had a RedHatEnterprise Linux 4 Update 2 installed on a slower Pentium III machine for establishing vpn connections to various locations. Now i have a faster Pentium 4 machine and i want to restore the backup of my old PIII machine to P 4 machine. I am using dump and restore . The restore on new p4 machine was successful (all filesystems / /boot /usr /var restored) But i boot the system it hangs at the grub loader with error unable to locate file and the display is all greyed/blurry.
I tried recompiling the kernel (all references for recompiling kerenel say /usr/src/linux but in RHEL4 it is /usr/src/kernels/ kernel-version/) after booting from cd with Linux rescure mode , chroot /mnt/sysimage but it fails . Here is what i did
cd /usr/src/kernels/kernel-ve rsion
make mrproper ( fails)
make && make modules (fails)
Thanks for suggestions. More help is appreciated
I had a RedHatEnterprise Linux 4 Update 2 installed on a slower Pentium III machine for establishing vpn connections to various locations. Now i have a faster Pentium 4 machine and i want to restore the backup of my old PIII machine to P 4 machine. I am using dump and restore . The restore on new p4 machine was successful (all filesystems / /boot /usr /var restored) But i boot the system it hangs at the grub loader with error unable to locate file and the display is all greyed/blurry.
I tried recompiling the kernel (all references for recompiling kerenel say /usr/src/linux but in RHEL4 it is /usr/src/kernels/ kernel-version/) after booting from cd with Linux rescure mode , chroot /mnt/sysimage but it fails . Here is what i did
cd /usr/src/kernels/kernel-ve
make mrproper ( fails)
make && make modules (fails)
Thanks for suggestions. More help is appreciated
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
While recompiling the kernel, the 'make menuconfig' step helps you to tune the kernel according to hardware etc. The file being modified is .config in the kernel source tree.