LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 03-21-2009, 10:01 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 273

Rep: Reputation: 25
Is it possible to install a custom kernel without booting to the drive?


Is it possible to install a custom kernel without booting to the drive you're installing it to? I've got a 2GB SSD which I'm using for the root partition for fast boots on which I've installed Xubuntu 8.10. I've made a custom kernel but when I tried installing it I found that there wasn't enough free space (there's about 700MB free). Is it possible to install the kernel to it from a Live CD? Is it just a matter of putting files in specific directories and editing config files?
 
Old 03-21-2009, 03:57 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
How big is your kernel and how did you try to install it?
 
Old 03-21-2009, 05:43 PM   #3
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 273

Original Poster
Rep: Reputation: 25
I installed it from the deb files. The headers .deb file is 6.4MiB in size, the image 189.3 MiB. It got most of the way through installing the image before it ran out of space.
 
Old 03-21-2009, 09:03 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
The short answer is "yes" - grub will accept fully specified path for the kernel (and initrd if required). Lilo might too but I haven't used that in years.
Don't know about a disk based boot referencing a CD for the kernel though ... A bit pointless I would have thought if you are doing all this for "fast boots".
 
Old 03-22-2009, 06:57 AM   #5
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 273

Original Poster
Rep: Reputation: 25
Quote:
Don't know about a disk based boot referencing a CD for the kernel though ... A bit pointless I would have thought if you are doing all this for "fast boots".
No, I was just wondering if I could drop the files onto the drive using a live CD.

So can I just put the files in /boot and point GRUB's menu.lst at them? Is there a way of extracting the files I need from the deb files or would I need to install the kernel to a larger drive first and then copy them? Thanks for your help syg00.
 
Old 03-22-2009, 08:57 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Quote:
Originally Posted by Mark_667 View Post
So can I just put the files in /boot and point GRUB's menu.lst at them?
Yes
Quote:
Is there a way of extracting the files I need from the deb files or would I need to install the kernel to a larger drive first and then copy them?
I never like the copying option - something always gets forgotten. Lilo is a particular PITA because you have to also remember to re-run the lilo command.
If you can install to a larger drive, just reference it directly from there. As for extracting from the deb, I don't know - hopefully someone else can answer that.
 
Old 03-22-2009, 11:08 AM   #7
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
There's a lot that can be said about all of this,but I don't want to complicate things.Also,you didn't answer my question completely.
Anyway,what I've found is that you can extract files from a .deb package like this;
Code:
ar vx mypackage.deb
Then extract the contents of data.tar.gz using tar:
Code:
tar -xzvf data.tar.gz

Last edited by alan_ri; 03-22-2009 at 11:23 AM.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic while booting custom compiled 2.6.24 kernel on RHEL 4 AS samkraju Red Hat 4 02-10-2008 01:55 AM
errors while booting a custom compiled kernel can't figure out wich module? krmane Linux - Kernel 1 08-18-2006 02:09 AM
Booting a 2.6.12 Custom Kernel in Debian pfizur Linux - Kernel 4 07-26-2006 08:39 PM
Compiled Custom Kernel booting problem _flaab_ Mandriva 3 11-13-2003 07:34 AM
How do I make sure Im booting onto my custom kernel? Kramer Linux - General 10 10-21-2003 01:43 PM


All times are GMT -5. The time now is 05:00 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration