LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   problem compiling kernel 2.6 on RedHat (https://www.linuxquestions.org/questions/red-hat-31/problem-compiling-kernel-2-6-on-redhat-156995/)

Thetargos 06-02-2004 05:16 PM

When I encounter such problems I try to trouble shoot them by going trhough a test compile of the kernel with a minimalistic set of features and disable altogether the option that causes the problem, then build my way up adding one option at a time (and re-compile... I know this is quite time consuming, but you may learn a LOT)... Other than that, check the documentation on the option that's causing you trouble for any additional information there.

kenji1903 06-02-2004 09:05 PM

Hmm... worth a try :D
Thats what time is for, to learn and grow up ;)

Thanks!
~WiLL~

Thetargos 06-03-2004 02:17 AM

You're welcome!

kenji1903 06-03-2004 03:33 AM

Oh yeah, does it matter if I have upgraded the kernel from 2.4.20-8 to 2.4.20-31 first then upgrade it again to 2.6.x?

Thetargos 06-03-2004 03:46 AM

Not really...

kenji1903 06-03-2004 03:50 AM

OK...
I'm trying to get my Linux to boot right now, maybe I messed up the mbr a little bit too much, haha ;)

After i get this RAID thingy to work, it will be kernel time again! :D

Thetargos 06-03-2004 03:55 AM

What do you mean by the MBR? If indeed you did, you can easily fix it by booting into a rescue console with CD1 and chroot to your installation and issuing grub-install mbr /dev/hda (or similar)...

kenji1903 06-03-2004 04:38 AM

I was doing these test on RAID1 with my two 40GB seagate...

Here's what I did:
* I took out hdc drive
* formatted it under windows
* in the mean time, hda alone boots fine
* after that reinstall hdc
* sfdisk-ed it so it will have identical partitions with hda
* then raidhotadd to add it back in to the RAID array
Now, hdc works fine...

I did it again with hda, hdc boots fine by itself... but when i did the remaining steps and reboot, I get this:
I was doing these test on RAID1 with my two 40GB seagate...

Here's what I did:
* I took out hdc drive
* formatted it under windows
* in the mean time, hda alone boots fine
* after that reinstall hdc
* sfdisk-ed it so it will have identical partitions with hda
* then raidhotadd to add it back in to the RAID array
Now, hdc works fine...

I did it again with hda, hdc boots fine by itself... but when i did the remaining steps and reboot, I get this:
I was doing these test on RAID1 with my two 40GB seagate...

Here's what I did:
* I took out hdc drive
* formatted it under windows
* in the mean time, hda alone boots fine
* after that reinstall hdc
* sfdisk-ed it so it will have identical partitions with hda
* then raidhotadd to add it back in to the RAID array
Now, hdc works fine...

I did it again with hda, hdc boots fine by itself... but when i did the remaining steps and reboot, I get this:
Error loading operating system

Hope you get what I said above, haha :D

Oh yeah, before I ran those test, I did this in GRUB:
Code:

device (hd0) /dev/hdc
root (hd0,0)
setup (hd0)


kenji1903 06-03-2004 05:20 AM

I tried grub-install /dev/hda also hdc and md0, i got:
/dev/md0 does not have any corresponding BIOS device

What you reckon I did wrong? :D

Thetargos 06-03-2004 12:17 PM

The previous error: cannot load operating system was given by GRUB or your BIOS did not find any drive with a valid MBR? My bet is GRUB. Are you following some kind of HowTo?

kenji1903 06-03-2004 05:59 PM

Well, I unplugged my hda and now I can boot into Linux again... :scratch:

I followed this:
http://lists.us.dell.com/pipermail/l...ly/014331.html

kenji1903 06-03-2004 06:14 PM

I guess its due to my GRUB as well...

Still trying to figure out how to fix this... the HowTo is not helping much :(

kenji1903 06-03-2004 09:54 PM

This is so weird... i keep getting this error with or without RAID... :scratch:

[root@linux9server linux]# make install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.4/arch/i386/boot/install.sh 2.6.4-test1 arch/i386/boot/bzImage System.map ""
No module raid1 found for kernel 2.6.4-test1
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2


Hmm... just wondering whether i got the order correct... maybe I should upgrade the kernel first then do RAID?

Thetargos 06-04-2004 12:02 AM

I'm not a RAID savvy guy (never tried it)... maybe some other guys could assit you if you make another thread? Maybe in Linux software general or right here at the Red Hat forum?
The way I see it, it deffinetly has got to do with system configuration rather than kernel configuration alone, but since I've never tried RAID before (in Windows or Linux) I'm really not the best person to assist you there.

kenji1903 06-05-2004 07:12 AM

No worries, mate~ :)
I have posted another thread on RAID in Linux - General, no replies yet though...

I have some queries on networking, Samba and XP's access and
permissions, mind if I ask you? ;)

Anyway, thanks for the advice! :D


All times are GMT -5. The time now is 04:26 PM.