Chinaunix首页 | 论坛 | 博客
  • 博客访问: 837051
  • 博文数量: 116
  • 博客积分: 1472
  • 博客等级: 上尉
  • 技术积分: 1725
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-06 11:45
文章分类

全部博文(116)

文章存档

2015年(1)

2014年(42)

2013年(5)

2012年(19)

2011年(49)

我的朋友

分类: 嵌入式

2014-02-06 11:14:17

What is rootfs?

---------------

Rootfs is a special instance of ramfs (or tmpfs, if that's enabled), which is always present in 2.6 systems. You can't unmount rootfs for approximately the same reason you can't kill the init process; rather than having special code to check for and handle an empty list, it's smaller and simpler for the kernel to just make sure certain lists can't become empty.

rootfs是一个特殊的ramfs(或tmpfs)实例,在2.6的内核中必然存在rootfs不能被卸载(与其添加特殊代码用来维护空的链表,不如把rootfs节点始终加入,因此便于kernel维护:简单、精炼。rootfs是ramfs的一个空实例,占用空间极小)。


Most systems just mount another filesystem over rootfs and ignore it. The amount of space an empty instance of ramfs takes up is tiny.

大部分其他的文件系统挂载(安装)于rootfs之上。一个空白ramfs所占用的内存空间总量是极小的。

If CONFIG_TMPFS is enabled, rootfs will use tmpfs instead of ramfs by default. To force ramfs, add "rootfstype=ramfs" to the kernel command line.


重要认识:

  1. rootfs是特殊的ramfs(或tmpfs)


阅读(664) | 评论(0) | 转发(0) |
0

上一篇:ramfs and tmpfs

下一篇:initramfs

给主人留下些什么吧!~~