Jerry Geis
2005-Jun-14 15:05 UTC
[CentOS] Help rebuilding kernel get mount error on reboot
I am attempting to recompile the kernel with the following steps. Install kernel-sourcecode rpm cd /usr/src/linux-2.6.9-11.EL cp /boot/config-2.6.9-11.EL .config make menuconfig Device Drivers -> Character Devices -> Serial Drivers change Max number of non legacy 8250_NR_UARTS to 36 make bzImage make modules_install make install Then after rebooting and selecting my -custom image from the above compile "mount: error 19 mounting ext3" "mount: error 2 mounting none" Then the machine stops of source. What happended? How do I get my custom kernel to boot. Jerry
On Tue, Jun 14, 2005 at 10:05:36AM -0500, Jerry Geis wrote:> I am attempting to recompile the kernel with the following steps. > > Install kernel-sourcecode rpm > > cd /usr/src/linux-2.6.9-11.EL > cp /boot/config-2.6.9-11.EL .config > make menuconfig > Device Drivers -> Character Devices -> Serial Drivers > change Max number of non legacy 8250_NR_UARTS to 36 > make bzImage > make modules_install > make installyou forgot to rebuild the ramdisk ? mkinitrd ... Tru -- Tru Huynh (CentOS-3 i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20050614/c6ca0b19/attachment-0003.sig>
Jerry Geis
2005-Jun-14 15:27 UTC
[CentOS] Help rebuilding kernel get mount error on reboot
That is supposed to happen in the "make install". In fact I looked at /boot and it is there. Jerry On Tue, Jun 14, 2005 at 10:05:36AM -0500, Jerry Geis wrote:>/ I am attempting to recompile the kernel with the following steps./>/ />/ Install kernel-sourcecode rpm />/ />/ cd /usr/src/linux-2.6.9-11.EL />/ cp /boot/config-2.6.9-11.EL .config />/ make menuconfig />/ Device Drivers -> Character Devices -> Serial Drivers />/ change Max number of non legacy 8250_NR_UARTS to 36 />/ make bzImage />/ make modules_install />/ make install / you forgot to rebuild the ramdisk ? mkinitrd ... Tru --
Jerry Geis
2005-Jun-14 15:30 UTC
[CentOS] Help rebuilding kernel get mount error on reboot
THe size of the ramdisk is not even close to the original. Which since I am using the same config I would have thought it to be the same size. initrd.2.6.9-11.ELcustom 307K initrd.2.6.9-11.EL 390K Jerry ------------------------ That is supposed to happen in the "make install". In fact I looked at /boot and it is there. Jerry On Tue, Jun 14, 2005 at 10:05:36AM -0500, Jerry Geis wrote:>// I am attempting to recompile the kernel with the following steps.//>/ />/ Install kernel-sourcecode rpm />/ />/ cd /usr/src/linux-2.6.9-11.EL />/ cp /boot/config-2.6.9-11.EL .config />/ make menuconfig />/ Device Drivers -> Character Devices -> Serial Drivers />/ change Max number of non legacy 8250_NR_UARTS to 36 />/ make bzImage />/ make modules_install />/ make install / you forgot to rebuild the ramdisk ? mkinitrd ... Tru -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20050614/980e6990/attachment-0003.html>
Johnny Hughes
2005-Jun-14 15:32 UTC
[CentOS] Help rebuilding kernel get mount error on reboot
On Tue, 2005-06-14 at 10:05 -0500, Jerry Geis wrote:> I am attempting to recompile the kernel with the following steps. > > Install kernel-sourcecode rpm > > cd /usr/src/linux-2.6.9-11.EL > cp /boot/config-2.6.9-11.EL .config > make menuconfig > Device Drivers -> Character Devices -> Serial Drivers > change Max number of non legacy 8250_NR_UARTS to 36 > make bzImage > make modules_install > make install > > Then after rebooting and selecting my -custom image from the above compile > > "mount: error 19 mounting ext3" > "mount: error 2 mounting none" > > Then the machine stops of source. > > What happended? How do I get my custom kernel to boot.Jerry, The kernel-sourcecode package (it is no-arch) doesn't always apply all kernel patches for the arch in question. I actually think it is kind of worthless and we will probably stop including it. Try this instead :) Download the kernel-xxxxx.src.rpm do: rpm -Uvh kernel-xxxxx.src.rpm go to the SPECS directory and do this: rpmbuild -bp --target i686 kernel-xxx.spec then go to the BUILD directory and go down to the kernel directory and build there. (substitute the versions for xxxxx ... also use the correct --target for the kernel you are trying to compile) This will get all the target related patches applied. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20050614/f9ba2362/attachment-0003.sig>
Jerry Geis
2005-Jun-14 15:38 UTC
[CentOS] Help rebuilding kernel get mount error on reboot
John, Thanks for the info. I am having trouble with the downloading of the src.rpm. Is that just on the mirrors somewhere or is there an easy place to grab the i686.src.rpm? I tried "rpm -Uvh kernel-2.6.9-11.EL.src.rpm" and got an error. Where on the mirrors is the i686.src.rpm? THanks, Jerry On Tue, 2005-06-14 at 10:05 -0500, Jerry Geis wrote:>/ I am attempting to recompile the kernel with the following steps./>/ />/ Install kernel-sourcecode rpm />/ />/ cd /usr/src/linux-2.6.9-11.EL />/ cp /boot/config-2.6.9-11.EL .config />/ make menuconfig />/ Device Drivers -> Character Devices -> Serial Drivers />/ change Max number of non legacy 8250_NR_UARTS to 36 />/ make bzImage />/ make modules_install />/ make install />/ />/ Then after rebooting and selecting my -custom image from the above compile />/ />/ "mount: error 19 mounting ext3" />/ "mount: error 2 mounting none" />/ />/ Then the machine stops of source. />/ />/ What happended? How do I get my custom kernel to boot. / Jerry, The kernel-sourcecode package (it is no-arch) doesn't always apply all kernel patches for the arch in question. I actually think it is kind of worthless and we will probably stop including it. Try this instead :) Download the kernel-xxxxx.src.rpm do: rpm -Uvh kernel-xxxxx.src.rpm go to the SPECS directory and do this: rpmbuild -bp --target i686 kernel-xxx.spec then go to the BUILD directory and go down to the kernel directory and build there. (substitute the versions for xxxxx ... also use the correct --target for the kernel you are trying to compile) This will get all the target related patches applied.
Jerry Geis
2005-Jun-14 16:46 UTC
[CentOS] Help rebuilding kernel get mount error on reboot
john, when installing the src.rpm for the kernel it says bad key ID. jerry On Tue, 2005-06-14 at 10:32 -0500, Johnny Hughes wrote:>/ On Tue, 2005-06-14 at 10:05 -0500, Jerry Geis wrote:/>/ > I am attempting to recompile the kernel with the following steps. />/ > />/ > Install kernel-sourcecode rpm />/ > />/ > cd /usr/src/linux-2.6.9-11.EL />/ > cp /boot/config-2.6.9-11.EL .config />/ > make menuconfig />/ > Device Drivers -> Character Devices -> Serial Drivers />/ > change Max number of non legacy 8250_NR_UARTS to 36 />/ > make bzImage />/ > make modules_install />/ > make install />/ > />/ > Then after rebooting and selecting my -custom image from the above compile />/ > />/ > "mount: error 19 mounting ext3" />/ > "mount: error 2 mounting none" />/ > />/ > Then the machine stops of source. />/ > />/ > What happended? How do I get my custom kernel to boot. />/ />/ Jerry, />/ />/ The kernel-sourcecode package (it is no-arch) doesn't always apply all />/ kernel patches for the arch in question. I actually think it is kind of />/ worthless and we will probably stop including it. />/ />/ Try this instead :) />/ />/ Download the kernel-xxxxx.src.rpm />/ />/ do: />/ />/ rpm -Uvh kernel-xxxxx.src.rpm />/ />/ go to the SPECS directory and do this: />/ />/ rpmbuild -bp --target i686 kernel-xxx.spec />/ />/ then go to the BUILD directory and go down to the kernel directory and />/ build there. />/ />/ (substitute the versions for xxxxx ... also use the correct --target for />/ the kernel you are trying to compile) This will get all the target />/ related patches applied./ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20050614/54ec990d/attachment-0003.html>
Jerry Geis
2005-Jun-14 16:58 UTC
[CentOS] Help rebuilding kernel get mount error on reboot
I must have had an incomplete download- I downloaded again and no more error. Jerry ------------ john, when installing the src.rpm for the kernel it says bad key ID. jerry On Tue, 2005-06-14 at 10:32 -0500, Johnny Hughes wrote:>// On Tue, 2005-06-14 at 10:05 -0500, Jerry Geis wrote://>/ > I am attempting to recompile the kernel with the following steps. />/ > />/ > Install kernel-sourcecode rpm />/ > />/ > cd /usr/src/linux-2.6.9-11.EL />/ > cp /boot/config-2.6.9-11.EL .config />/ > make menuconfig />/ > Device Drivers -> Character Devices -> Serial Drivers />/ > change Max number of non legacy 8250_NR_UARTS to 36 />/ > make bzImage />/ > make modules_install />/ > make install />/ > />/ > Then after rebooting and selecting my -custom image from the above compile />/ > />/ > "mount: error 19 mounting ext3" />/ > "mount: error 2 mounting none" />/ > />/ > Then the machine stops of source. />/ > />/ > What happended? How do I get my custom kernel to boot. />/ />/ Jerry, />/ />/ The kernel-sourcecode package (it is no-arch) doesn't always apply all />/ kernel patches for the arch in question. I actually think it is kind of />/ worthless and we will probably stop including it. />/ />/ Try this instead :) />/ />/ Download the kernel-xxxxx.src.rpm />/ />/ do: />/ />/ rpm -Uvh kernel-xxxxx.src.rpm />/ />/ go to the SPECS directory and do this: />/ />/ rpmbuild -bp --target i686 kernel-xxx.spec />/ />/ then go to the BUILD directory and go down to the kernel directory and />/ build there. />/ />/ (substitute the versions for xxxxx ... also -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20050614/b83f1bb3/attachment-0003.html>
Jerry Geis
2005-Jun-14 17:23 UTC
[CentOS] Help rebuilding kernel get mount error on reboot
Still no go.... I have downloaded the SRC rpm for kernel-2.6.9-11.EL.src.rpm <http://mirror.centos.org/centos/4.1/os/SRPMS/kernel-2.6.9-11.EL.src.rpm> I did rpm -i kernel....src.rpm cd /usr/src/redhat/SPECS rpmbuild -bp --target i686 kernel.xxx.src.rpm cd /usr/src/redhat/BUILD/kernel.XXX/linux.XXX make bzImage make modules_install make install When I reboot I get the same error about "mount: error 19 mounting ext3" Where should I go from here? Thanks, Jerry