grub problem
Let's open a discussion here:
I am tryin to install a Real Time kernel on my Ubuntu 11.04 Server machine with size 4GB. Before this, I am tryin to install a minimal kernel required in my Ubuntu 11.4 Desktop, but you know, the boot loader cannot load my new kernel. I have also tried the instruction on my Red Hat (CentOS 6) machine and ... again the same problem. boot loader stucks in loading my kernel, (i recall it was saying error with image number) Here were the instructions: 1. tar xzf linux-2.6.31.6.tar 2. gunzip patch-2.6.31.6-rt19 3. cd linux-2.6.31.6 && patch p1 < ../patch-.6.31.6-rt19 4. make menuconfig (as I need a minimal kernel, I create .config using cat >> .config first) 5. make 6. make modules 7. make modules_install 8. make install (though this give the below output n finishes, but a window prompts n says that fglrx-8.840 cannot be installed or upgraded) Code:
Generating grub.cfg ... Code:
sudo update-initramfs -c -k 2.6.31.6-rt19 Code:
update-grub Code:
cd linux-2.6.31.6 && patch p1 < ../patch-.6.31.6-rt19 but again it cannot load my kernel. Could anyone help me please to compile my new kernel. Quote:
|
what do you mean cannot load kernel? are you getting any error messages or just a black screen. the problem could be that the fglrx module still has to be built against the new kernel with maybe a newer fglxr driver. Try removing you /etc/X11/xorg.conf and add nomodeset to the linux line in grub
|
Quote:
I check /etc/X11/xorg.conf, it exists, but I don't know how to add nomodeset to the linux line in grub. can you plz be more precise? |
at the grub boot menu go to the entry you want to boot hit the "e" key, go to the linux line, go out past the root=uuid=??? add nomodeset and hit ctrl-x, in recovery mode what is the message on the screen when it gets stuck,
|
Quote:
in Recovery mode it writes: loading linux 2.6.31.6-rt19 ... loading initial ramdisk ... (it stucks here) I did the following: patch -p1 < ../patch-file make menuconfig make make bzImage make modules make modules_install cp arch/x86/boot/bzImage /boot/vmlilnuz-2.6.31.6-rt19 cp System.map /boot/Systems.map-2.6.31.6-rt19 update-initramfs -c -k 2.6.31.6-rt19 (it failed at the first time, error asked me for the config file in boot. then I did this) cp /usr/src/linux2.6.31.6/.config /boot/config-2.6.31.6-rt19 then it worked fine. and finally update-grub |
It is possible that you don't have all the drivers/modules needed compiled into your kernel to access hard drives and file systems on the system you are trying to boot. That usually causes booting problems with a newly compiled kernel booting. Without knowing anything about the hardware you have and your menuconfig options, I can't help you there. This may help if it is just a initramfs problem.
http://ubuntugenius.wordpress.com/20...re-you-reboot/ |
Are you sure that u are compiling the right kernel
U name -a I think 11.04 comes with 2.6.37 kerenel http://news.softpedia.com/news/Ubunt...4-170228.shtml |
well, my kernel is 2.6.38, 2.6.38-8-generic
but that's not relevant, i can install any version of kernels as custom. I've never heard anything like I can only install a particular kernel. m tryin to install another kernel, this time 3.0.22, i'l let you know bout the result/ |
All times are GMT -5. The time now is 12:37 AM. |