Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Double mount entry?
Date: Mon, 16 May 2011 15:40:03
Message-Id: BANLkTimV0pj-VOfFyk1vxexwrmAehkvLnQ@mail.gmail.com
In Reply to: [gentoo-user] Double mount entry? by Pandu Poluan
1 On Mon, May 16, 2011 at 6:45 AM, Pandu Poluan <pandu@××××××.info> wrote:
2 > What's rootfs?
3
4 /usr/src/linux/Documentation/filesystems/ramfs-rootfs-initramfs.txt
5
6 [snip]
7 What is rootfs?
8 ---------------
9
10 Rootfs is a special instance of ramfs (or tmpfs, if that's enabled), which is
11 always present in 2.6 systems. You can't unmount rootfs for approximately the
12 same reason you can't kill the init process; rather than having special code
13 to check for and handle an empty list, it's smaller and simpler for the kernel
14 to just make sure certain lists can't become empty.
15
16 Most systems just mount another filesystem over rootfs and ignore it. The
17 amount of space an empty instance of ramfs takes up is tiny.
18 [/snip]