LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   To install multiple kernels on ubuntu machine (https://www.linuxquestions.org/questions/linux-general-1/to-install-multiple-kernels-on-ubuntu-machine-943223/)

Mayurapriyan 05-04-2012 04:11 AM

To install multiple kernels on ubuntu machine
 
Hi,
I wanted to have another kernel 3.0.4 on ubuntu 11.04, with my own configuration options(not a pre built kernel).For that i followed the steps below.

1) Downloaded the kernel-3.0.4
2) make menuconfig
3) make
4) sudo make install


and the contents of my boot is as follows:

cd /boot

abi-2.6.38-8-generic
config-3.0.4
initrd.img-2.6.38-8-generic
memtest86+_multiboot.bin
System.map-3.0.4
vmlinuz-2.6.38-8-generic
config-2.6.38-8-generic
grub
memtest86+.bin
System.map-2.6.38-8-generic
vmcoreinfo-2.6.38-8-generic
vmlinuz-3.0.4


In the boot prompt, the new linux kernel version comes.When i select it and try to boot with that,not able to boot.A blank screen only appears.I am not getting what is the mistake i am making.Please throw some light on this.

thanks
mayur

pan64 05-04-2012 04:16 AM

boot the old kernel 2.6.38 and see the logs

k3lt01 05-04-2012 04:27 AM

Quote:

Originally Posted by Mayurapriyan (Post 4670080)
with my own configuration options(not a pre built kernel).

Looks like you left an important configuration out.It is always best, if you don't do this often, to use a working config (in other words one that is already on your system) as a base to start from. That way you should at least be able to boot to a working system.

Try this method (of course you will need to change the file paths/names to suit your system)
Code:

1. cd into the extracted folder.
2. cp /boot/config-3.2.0-2-amd64 .config
3. make menuconfig
4. select exit on make menuconfig, unless you need to enable things like non-free drivers etc in which case you will need to go through the lists and select the things you need. Make sure you save the config after enabling anything.
5. fakeroot make-kpkg --jobs=2 --initrd --append-to-version=-custom --revision=yyyymmdd kernel_image kernel_headers modules_image Change the bold to suit your purpose, append-to-version=-custom is what you want to call itmake sure you keep the - infront of the name. revision= is the date you compile on write it in this order year month date yyyymmdd.
6. let it work through the process and if there are no errors listed at the end install the debs.



All times are GMT -5. The time now is 08:50 AM.