LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 09:01 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Rep: Reputation: 30
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, 02: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, 04:43 PM   #3
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
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, 08:03 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
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, 05:57 AM   #5
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
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, 07:57 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
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, 10: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 10:23 AM.
 
  


Reply



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 12:55 AM
errors while booting a custom compiled kernel can't figure out wich module? krmane Linux - Kernel 1 08-18-2006 01:09 AM
Booting a 2.6.12 Custom Kernel in Debian pfizur Linux - Kernel 4 07-26-2006 07:39 PM
Compiled Custom Kernel booting problem _flaab_ Mandriva 3 11-13-2003 06:34 AM
How do I make sure Im booting onto my custom kernel? Kramer Linux - General 10 10-21-2003 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:59 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
Open Source Consulting | Domain Registration