rootfs 指“根文件系统”(root filesystem):在 Linux/类 Unix 系统中,作为系统启动后挂载在根目录 / 上的文件系统,包含最基本的目录结构与关键程序/库(如 /bin、/sbin、/etc、/lib 等)。在嵌入式 Linux 或 initramfs 场景里,rootfs 也常指启动阶段使用的那套最小文件系统。
/ˈruːtˌɛfˌɛs/
The device boots, then mounts the rootfs as read-only.
设备启动后,把 rootfs 以只读方式挂载。
After loading the kernel, the initramfs provides a temporary rootfs until the real disk root filesystem is mounted.
内核加载完成后,initramfs 会提供一个临时的 rootfs,直到真正的磁盘根文件系统被挂载。
rootfs 是技术缩写:root(根目录 /)+ fs(filesystem 的缩写,文件系统)。在 Linux 文档与源码语境中常用这种简写来指代“根文件系统”。