LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Install a kernel from command line (https://www.linuxquestions.org/questions/linux-newbie-8/install-a-kernel-from-command-line-914878/)

Blasphemous 11-22-2011 04:29 AM

Install a kernel from command line
 
During Debian Testing 64 installation, it said
Quote:

no kernel in apt sources,continue anyway? It is possibie to install the kernel later (for expert users)
(or something similar)

I chose to continue, the installation went fine, but now I've got an OS with no kernel inside.

I can use a shell with the "rescue mode" in Debian CD in order to install it, but I don't know how to do it (I'd like the 3.1 version) from command line!

Any idea?

sycamorex 11-22-2011 04:36 AM

Can you boot the system? If you can boot the system it means that the kernel has been installed.
I guess what was meant by that was that no kernel SOURCES were installed. The sources are used to compile all sorts of stuff. Ordinary users might not need them. You can always install the sources later on.

Blasphemous 11-22-2011 04:41 AM

I can't boot the system.
At first I thought it was a grub error, so I restore grub from a live CD, but when I update grub with
Quote:

update-grub
It did not find any kernel to boot, so it is a kernel problem.

Actually, when I boot the PC i get "Grub minimal line" (something similar) with only a boot> option

Blasphemous 11-23-2011 03:57 AM

bump

basica 11-23-2011 04:20 AM

This should pretty much get you started..

http://www.linuxquestions.org/questi...9/#post4530614

ukiuki 11-23-2011 04:30 AM

You will need a Debian live cd then with chroot you can install the missing kernel,
check this link out: http://www.linuxfromscratch.org/lfs/...06/chroot.html
it doesn't mean you will do things exactly as you see there but will give you some ideas.

Regards

Blasphemous 11-23-2011 05:05 AM

Solved with chroot using Debian live,
thanks!


All times are GMT -5. The time now is 01:22 AM.