【问题标题】:Initramfs, why is required for the mount root filesystem? [closed]Initramfs,为什么需要挂载根文件系统? [关闭]
【发布时间】:2014-11-11 12:17:28
【问题描述】:

为什么操作系统需要initramfs,为什么没有这个文件就不能挂载根文件系统? 为什么我们不能直接挂载root fileststem,而是需要一些中介(intramfs)? 以及如何从内核级别(内核端)挂载文件系统?

【问题讨论】:

  • 我们需要它吗?不,初始 ramdisk 是可选的。

标签: linux linux-kernel filesystems mount initrd


【解决方案1】:

要回答您的问题,您需要了解、引导过程以及操作系统如何确定和理解根 fs(它为出现的其余服务存储配置、bin、数据等,当系统已启动),与硬件通信所需的驱动程序(例如:存储设备或硬盘)。因此,您需要在 initramfs 中捆绑至少基本的必需模块(如文件系统和设备驱动程序等),以启动系统并挂载根 fs .这也是Is it possible to boot the Linux kernel without creating an initrd image?的副本

【讨论】:

  • 感谢您的回答。
猜你喜欢
  • 2015-08-14
  • 1970-01-01
  • 2010-11-11
  • 2012-04-02
  • 2014-09-06
  • 2014-03-28
  • 2013-07-19
  • 2011-05-10
  • 2014-06-21
相关资源
最近更新 更多