W
W
WerewolfPrankster2011-10-26 16:26:31
linux
WerewolfPrankster, 2011-10-26 16:26:31

How to manually install a linux kernel built on another machine?

There is such a problem. The machine needs to update the kernel, but there is not enough space for this. I can compile the kernel on another machine, but how do I dig out the modules and the kernel itself and install the whole thing correctly? Help me please.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
NiGHt_LEshiY, 2011-10-26
@WerewolfPrankster

Depending on the distribution, build the installation package (deb, rpm, tgz).
Do make help in the kernel source folder and see what works for you.

O
oraz_ra, 2011-10-26
@oraz_ra

If there is no space on the local disk and you are afraid to lose something when copying, then mount the nfs-share with sources and calmly compile the kernel as if locally.

E
Eddy_Em, 2011-10-26
@Eddy_Em

What distribution and why don't you use the repository?
In general, everything is done quite simply: copy initramfs and vmlinuz to /boot, edit grub (if you want to be able to load the old kernel in which case) - and that's it. True, you will not have a tree of header files that you need if you suddenly want to build some kernel module.

D
Denis, 2011-10-26
@uscr

Put the kernel in /boot Build an initrd
for it . Don't forget to move the initrd to /boot too if you build it in a different directory. Add a new kernel to the boot menu. If you have grub, then this is done by simply editing /boot/grub/menu.lst - just by analogy with other kernels, just describe yours. If Grub2, then adding a new kernel is a little more difficult.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question