无需重新分区即可构建 Linux 内核
我应该如何在不重新分区系统的情况下构建和测试 Linux 内核,或者如果我想维持当前的设置,这是一个要求吗?
How should I go about building and testing the Linux kernel without repartitioning my system, or is that a requirement if I want to maintain my current setup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将数百个内核放入
/boot/
目录中,前提是您在对驱动器进行分区时创建的目录足够大。如果/boot
不是它自己的文件系统,那么它将共享您的根/
,其大小通常为 8-12 GB,并且通常有 4 到 6 GB免费,它将容纳很多内核。 :)如果对内核的修改确实有可能损坏数据,您可能希望使用 kvm +qemu 用于测试内核。当然,以这种方式测试硬件是相当困难的;当您执行硬件驱动程序测试时,没有什么比拥有一个没有重要数据的“崩溃箱”更好的了。
You can stuff several hundred kernels into your
/boot/
directory, assuming you created it large enough when you partitioned your drive. If/boot
isn't its own filesystem, then it will share your root/
, and that is typically 8-12 gigabytes in size, and frequently has four to six gigabytes free, which will hold a lot of kernels. :)If the modifications to your kernel have the very real potential to corrupt data, you might wish to use kvm+qemu for your testing kernels. Of course, it's quite hard to test hardware this way; there's nothing quite like having a 'crashbox' with no important data on it when you're performing hardware-driver testing.