分页: 1 / 1

ubuntu 重新编译内核之后无法启动的问题

发表于 : 2015-11-08 16:39
ling0qian
hello,
请教一下,我重新下载编译内核,安装之后系统就起不来了,试了好多次了,就是不行。哪位知道是什么原因不??
我的操作步骤是这样的:
1.uname -r 查看当前用版本,然后从官网kernel.org下载对应的或者更高的版本,我还apt-get install linux -sourceXXX 过代码。
2.配置,我先看/boot/config-XXX文件,确定是X86_64的,然后我就make x86_64_defconfig,或者从/boot/config-XXX文件拷过来,命名为.config.
3,make bzImage 编译内核,make modules,编译module
4,make modules_install 安装modules,make install 安装内核。看到grub已经更新了。
5.重启,但是启动不了。我换了不同的系统,不同的版本,都试过了,就是启动不了。请教下是我哪里操作不对么??

非常的感谢!!

Re: ubuntu 重新编译内核之后无法启动的问题

发表于 : 2015-11-08 18:34
poloshiao
增加這個指令看看
sudo update-initramfs -u -k all

Re: ubuntu 重新编译内核之后无法启动的问题

发表于 : 2015-11-08 18:44
ling0qian
@ poloshiao 请教下这个指令什么意思,为什么加这个??

Re: ubuntu 重新编译内核之后无法启动的问题

发表于 : 2015-11-08 18:52
poloshiao
http://manpages.ubuntu.com/manpages/tru ... mfs.8.html
update-initramfs - generate an initramfs image
It keeps track of the existing initramfs archives in /boot.
更新開機檔案

Re: ubuntu 重新编译内核之后无法启动的问题

发表于 : 2015-11-17 20:18
ling0qian
poloshiao 写了:http://manpages.ubuntu.com/manpages/tru ... mfs.8.html
update-initramfs - generate an initramfs image
It keeps track of the existing initramfs archives in /boot.
更新開機檔案

还是开机不了

Re: ubuntu 重新编译内核之后无法启动的问题

发表于 : 2015-11-17 21:04
poloshiao
重新编译内核
參閱

https://help.ubuntu.com/community/Kernel
HowTo Upgrade or Recompile Kernel

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
BuildYourOwnKernel