LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-04-2012, 04:11 AM   #1
Mayurapriyan
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Rep: Reputation: Disabled
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
 
Old 05-04-2012, 04:16 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,570

Rep: Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811
boot the old kernel 2.6.38 and see the logs
 
Old 05-04-2012, 04:27 AM   #3
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Quote:
Originally Posted by Mayurapriyan View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple kernels mbvo Linux - Kernel 3 02-17-2010 10:37 PM
Multiple kernels SI_TW Linux - Kernel 5 10-23-2008 02:42 PM
Running Multiple Kernels unosaso Slackware 2 04-05-2005 11:50 AM
Multiple Kernels apocolpse Linux - Newbie 3 03-17-2005 03:09 AM
Multiple kernels, one partition -- possible? Tino27 Linux - Newbie 2 11-05-2003 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration