LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Is it possible to install a custom kernel without booting to the drive? (https://www.linuxquestions.org/questions/linux-kernel-70/is-it-possible-to-install-a-custom-kernel-without-booting-to-the-drive-713360/)

Mark_667 03-21-2009 09:01 AM

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?

alan_ri 03-21-2009 02:57 PM

How big is your kernel and how did you try to install it?

Mark_667 03-21-2009 04:43 PM

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.

syg00 03-21-2009 08:03 PM

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".

Mark_667 03-22-2009 05:57 AM

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.

syg00 03-22-2009 07:57 AM

Quote:

Originally Posted by Mark_667 (Post 3483862)
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.

alan_ri 03-22-2009 10:08 AM

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


All times are GMT -5. The time now is 10:48 AM.