[ Kernel not booting up ]
Hi all, Recently I compiled and tried installing kernel (2.6.39.3), which I downloaded from kernel.org All the activity that I did was to copy the .config file of my distro (Ubuntu 10.10), then the following commands : - make menuconfig ( I exited, keeping the default configuration ) - make modules - make install_modules - make install - update grub All of the above commands got executed without any errors, and the new kernel version was also shown in the grub menu. But it showed some errors and didn't login. When I tried logging to my Ubuntu distro, a blue login box(which is normally violet in color) appeared. After giving password, it came back again to the same screen without going inside. Only thing I was able to do was to dropping in root mode (from Ubuntu's recovery mode u\in the grub menu) and looking at all of my data through terminal without a GUI. Can anyone tell how can I recover my compiled kernel and distro's kernel? Thankyou. -- ~Cheers!! Ashish Raste Anyone who has never made a mistake has never tried anything new. -Sir Albert Einstein
On Sat, Aug 20, 2011 at 11:18 AM, ashish raste <rasteashish@gmail.com>wrote:
Hi all,
Recently I compiled and tried installing kernel (2.6.39.3), which I downloaded from kernel.org All the activity that I did was to copy the .config file of my distro (Ubuntu 10.10), then the following commands :
- make menuconfig ( I exited, keeping the default configuration ) - make modules - make install_modules - make install - update grub
All of the above commands got executed without any errors, and the new kernel version was also shown in the grub menu. But it showed some errors and didn't login.
When I tried logging to my Ubuntu distro, a blue login box(which is normally violet in color) appeared. After giving password, it came back again to the same screen without going inside.
Only thing I was able to do was to dropping in root mode (from Ubuntu's recovery mode u\in the grub menu) and looking at all of my data through terminal without a GUI.
Can anyone tell how can I recover my compiled kernel and distro's kernel?
I think you should rather ask this question on ubuntu mailing list. it hardly seems a kernel issue. its mostly an X related problem. secondly, try to look into log messages e.g. dmesg and /var/log/message(not sure about the location on ubuntu though) thirdly, its possible that .config is incorrect. with this info, one can hardly tell what is going on.
Thankyou.
-- ~Cheers!! Ashish Raste
Anyone who has never made a mistake has never tried anything new. -Sir Albert Einstein
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Ashish, On Sat, Aug 20, 2011 at 3:48 PM, ashish raste <rasteashish@gmail.com> wrote:
Hi all,
Recently I compiled and tried installing kernel (2.6.39.3), which I downloaded from kernel.org All the activity that I did was to copy the .config file of my distro (Ubuntu 10.10), then the following commands :
- make menuconfig ( I exited, keeping the default configuration )
You can execute 'make localmodconfig' after this, to ensure that you have all the necessary components enabled in the .config file. It also strips off all the unnecessary ones, which will speed up your compilation. Did you forget to run 'make' after this stage? - make modules
- make install_modules
I run 'make modules_install' here... - make install
- update grub
All of the above commands got executed without any errors, and the new kernel version was also shown in the grub menu. But it showed some errors and didn't login.
When I tried logging to my Ubuntu distro, a blue login box(which is normally violet in color) appeared. After giving password, it came back again to the same screen without going inside.
Only thing I was able to do was to dropping in root mode (from Ubuntu's recovery mode u\in the grub menu) and looking at all of my data through terminal without a GUI.
Do you see a prompt like this ?: grub>
If yes, you can try to boot your kernel by manually specifying the path to your kernel image, initrd etc. Eg: grub> kernel /path/to/vmlinuz root=/dev/sda1 grub> root (hd0,0) grub> initrd /path/to/initramfs_image grub> boot Note that you'll have to replace /dev/sda1 with path to your root partition. And similarly replace hd0,0 with the value appropriate in your computer's configuration. [ hd0,0 refers to Hard-disk 0, partition 0, that is, the first partition on your first hard disk. ] Once you are able to boot into your OS fully, check your grub entries to see if anything seems to be wrong and fix them. The relevant file would be /boot/grub/menu.lst if you are using the old version of Grub (and not Grub2). Can anyone tell how can I recover my compiled kernel and distro's kernel?
Regards, Srivatsa S. Bhat
Hi Srivatsa, On 8/20/11, Srivatsa Bhat <bhat.srivatsa@gmail.com> wrote:
Hi Ashish,
On Sat, Aug 20, 2011 at 3:48 PM, ashish raste <rasteashish@gmail.com> wrote:
Hi all,
Recently I compiled and tried installing kernel (2.6.39.3), which I downloaded from kernel.org All the activity that I did was to copy the .config file of my distro (Ubuntu 10.10), then the following commands :
- make menuconfig ( I exited, keeping the default configuration )
You can execute 'make localmodconfig' after this, to ensure that you have all the necessary components enabled in the .config file. It also strips off all the unnecessary ones, which will speed up your compilation.
I didn't do a 'make localmodconfig' after this.
Did you forget to run 'make' after this stage?
- make modules
- make install_modules
Yes, I ran make and make install_modules after this stage. Forgot writing it in my previous mail.
I run 'make modules_install' here...
- make install
- update grub
All of the above commands got executed without any errors, and the new kernel version was also shown in the grub menu. But it showed some errors and didn't login.
When I tried logging to my Ubuntu distro, a blue login box(which is normally violet in color) appeared. After giving password, it came back again to the same screen without going inside.
Only thing I was able to do was to dropping in root mode (from Ubuntu's recovery mode u\in the grub menu) and looking at all of my data through terminal without a GUI.
Do you see a prompt like this ?: grub>
I didn't see a prompt of grub> Instead the following errors were listed on the black screen : [ 2.4331....] Error: Driver 'mdio-gpio' is already registered. aborting... [ 2.8364... ] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ ......... ] Pid: 1. comm: swapper Not tainted 2.6.39.3 #1 [ ...... ] Call Trace: and list of errors in this trace. -- ~Cheers!! Ashish Raste Anyone who has never made a mistake has never tried anything new. -Sir Albert Einstein
On Sun, Aug 21, 2011 at 1:45 AM, ashish raste <rasteashish@gmail.com> wrote:
Hi Srivatsa,
On 8/20/11, Srivatsa Bhat <bhat.srivatsa@gmail.com> wrote:
Hi Ashish,
On Sat, Aug 20, 2011 at 3:48 PM, ashish raste <rasteashish@gmail.com> wrote:
Hi all,
Recently I compiled and tried installing kernel (2.6.39.3), which I downloaded from kernel.org All the activity that I did was to copy the .config file of my distro (Ubuntu 10.10), then the following commands :
- make menuconfig ( I exited, keeping the default configuration )
You can execute 'make localmodconfig' after this, to ensure that you have all the necessary components enabled in the .config file. It also strips off all the unnecessary ones, which will speed up your compilation.
I didn't do a 'make localmodconfig' after this.
Did you forget to run 'make' after this stage?
- make modules
- make install_modules
Yes, I ran make and make install_modules after this stage. Forgot writing it in my previous mail.
I run 'make modules_install' here...
- make install
- update grub
All of the above commands got executed without any errors, and the new kernel version was also shown in the grub menu. But it showed some errors and didn't login.
When I tried logging to my Ubuntu distro, a blue login box(which is normally violet in color) appeared. After giving password, it came back again to the same screen without going inside.
Only thing I was able to do was to dropping in root mode (from Ubuntu's recovery mode u\in the grub menu) and looking at all of my data through terminal without a GUI.
Do you see a prompt like this ?: grub>
I didn't see a prompt of grub> Instead the following errors were listed on the black screen :
[ 2.4331....] Error: Driver 'mdio-gpio' is already registered. aborting... [ 2.8364... ] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ ......... ] Pid: 1. comm: swapper Not tainted 2.6.39.3 #1 [ ...... ] Call Trace:
and list of errors in this trace.
Hi Ashish, I am not sure if this will help but you can try burning a system rescue CD and using it to fix the issue. I believe you will be able to get back atleast your original Ubuntu with full GUI.. Here is the link: http://www.sysresccd.org/Download Regards, Srivatsa S. Bhat
Hi Srivatsa,
I am not sure if this will help but you can try burning a system rescue CD and using it to fix the issue. I believe you will be able to get back atleast your original Ubuntu with full GUI..
Here is the link: http://www.sysresccd.org/Download
I have tried rescuing, with sysrescue cd by burning it to a flash drive and making it bootable. But it showed at boot that "no kernel image found" Anyways I have installed Ubuntu on the same partition and will try compiling the kernel again! Thankyou. -- ~Cheers!! Ashish Raste Anyone who has never made a mistake has never tried anything new. -Sir Albert Einstein
On Sun, Aug 21, 2011 at 12:15 AM, ashish raste <rasteashish@gmail.com> wrote:
Hi Srivatsa,
On 8/20/11, Srivatsa Bhat <bhat.srivatsa@gmail.com> wrote:
Hi Ashish,
On Sat, Aug 20, 2011 at 3:48 PM, ashish raste <rasteashish@gmail.com> wrote:
Hi all,
Recently I compiled and tried installing kernel (2.6.39.3), which I downloaded from kernel.org All the activity that I did was to copy the .config file of my distro (Ubuntu 10.10), then the following commands :
- make menuconfig ( I exited, keeping the default configuration )
You can execute 'make localmodconfig' after this, to ensure that you have all the necessary components enabled in the .config file. It also strips off all the unnecessary ones, which will speed up your compilation.
I didn't do a 'make localmodconfig' after this.
Did you forget to run 'make' after this stage?
- make modules
- make install_modules
Yes, I ran make and make install_modules after this stage. Forgot writing it in my previous mail.
I run 'make modules_install' here...
- make install
- update grub
All of the above commands got executed without any errors, and the new kernel version was also shown in the grub menu. But it showed some errors and didn't login.
When I tried logging to my Ubuntu distro, a blue login box(which is normally violet in color) appeared. After giving password, it came back again to the same screen without going inside.
Only thing I was able to do was to dropping in root mode (from Ubuntu's recovery mode u\in the grub menu) and looking at all of my data through terminal without a GUI.
Do you see a prompt like this ?: grub>
I didn't see a prompt of grub> Instead the following errors were listed on the black screen :
[ 2.4331....] Error: Driver 'mdio-gpio' is already registered. aborting... [ 2.8364... ] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ ......... ] Pid: 1. comm: swapper Not tainted 2.6.39.3 #1 [ ...... ] Call Trace:
and list of errors in this trace.
-- ~Cheers!! Ashish Raste
Anyone who has never made a mistake has never tried anything new. -Sir Albert Einstein
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Arshish! Looks like you forgot to add support for your ATA/SATA controller. I suppose you should boot up with any working kernel (maybe provided with LiveCD) and use this config as starting point for your custom building: zcat /proc/config.gz > .config make and so on...
On Saturday, August 20, 2011, ashish raste <rasteashish@gmail.com> wrote:
Hi all,
Recently I compiled and tried installing kernel (2.6.39.3), which I downloaded from kernel.org All the activity that I did was to copy the .config file of my distro (Ubuntu 10.10), then the following commands :
- make menuconfig ( I exited, keeping the default configuration ) - make modules - make install_modules - make install - update grub
All of the above commands got executed without any errors, and the new kernel version was also shown in the grub menu. But it showed some errors and didn't login.
When I tried logging to my Ubuntu distro, a blue login box(which is normally violet in color) appeared. After giving password, it came back again to the same screen without going inside.
Only thing I was able to do was to dropping in root mode (from Ubuntu's recovery mode u\in the grub menu) and looking at all of my data through terminal without a GUI.
Can anyone tell how can I recover my compiled kernel and distro's kernel?
Any mistake in the configuration of your new kernel should not stop you from booting from old kernel. It seems from your mail that even your old kernel has stopped working !!! .. If this is correct then this could be a problem of grub configuration.
Thankyou.
-- ~Cheers!! Ashish Raste
Anyone who has never made a mistake has never tried anything new. -Sir Albert Einstein
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Ashish, On Sun, Aug 21, 2011 at 7:24 PM, Kaustubh Ashtekar <ksashtekar@gmail.com> wrote:
On Saturday, August 20, 2011, ashish raste <rasteashish@gmail.com> wrote:
Hi all,
Recently I compiled and tried installing kernel (2.6.39.3), which I downloaded from kernel.org All the activity that I did was to copy the .config file of my distro (Ubuntu 10.10), then the following commands :
- make menuconfig ( I exited, keeping the default configuration ) - make modules - make install_modules - make install - update grub
All of the above commands got executed without any errors, and the new kernel version was also shown in the grub menu. But it showed some errors and didn't login.
Please try this method: http://www.howtoforge.com/kernel_compilation_ubuntu
Hi Prashant,
Please try this method:
I have installed Ubuntu again and try the method posted on this link! Thankyou. -- ~Cheers!! Ashish Raste Anyone who has never made a mistake has never tried anything new. -Sir Albert Einstein
participants (6)
-
Anuz Pratap Singh Tomar -
ashish raste -
Kaustubh Ashtekar -
Prashant Shah -
Srivatsa Bhat -
Vladimir Murzin