• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wenyu1001
V2EX  ›  程序员

How to copy kernel from one machine to another?

  •  
  •   wenyu1001 ·
    wenyuace · Apr 14, 2016 · 3187 views
    This topic created in 3680 days ago, the information mentioned may be changed or developed.

    请教把一台 ubuntu kernel 拷贝到另一台

    • 拷贝哪些文件(/boot, /lib/module, ....)
    • 需要注意什么

    对内核比较陌生,谢谢。

    6 replies    2016-04-15 11:11:54 +08:00
    bitsjx
        1
    bitsjx  
       Apr 14, 2016 via Android
    要改改 grub.cfg 配置什么的,毕竟内核和 initramfs 名字不一样了,其它的不清楚了
    whatot
        2
    whatot  
       Apr 14, 2016
    到 /var/cache/apt/下面找到一个可用的内核 deb 包,拷贝安装一下,然后 update-grub
    zhangchioulin
        3
    zhangchioulin  
       Apr 15, 2016
    点进来发现时中文,尿了
    wenyu1001
        4
    wenyu1001  
    OP
       Apr 15, 2016
    @zhangchioulin 不是也掺杂着英文 2333333
    wenyu1001
        5
    wenyu1001  
    OP
       Apr 15, 2016
    /boot/System.map-version
    /boot/config-version
    /boot/initrd.img-version
    /boot/vmlinuz-version

    /lib/modules/version
    @bitsjx @whatot 已完成。
    whatot
        6
    whatot  
       Apr 15, 2016
    这样是简单情况,如果内核 deb 包在安装时执行了一些类似于 dkms 这样的 hook ,你就要手动执行这样的操作,特别是安装过虚拟机的情况下。但如果机器环境比较简单可以这样拷贝。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1234 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 17:30 · PVG 01:30 · LAX 10:30 · JFK 13:30
    ♥ Do have faith in what you're doing.