Gentoo Archives: gentoo-user

From: "Boyd Stephen Smith Jr." <bss03@××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ramfs - is it necessary ???
Date: Wed, 21 Feb 2007 23:23:24
Message-Id: 200702211716.46842.bss03@volumehost.net
In Reply to: [gentoo-user] ramfs - is it necessary ??? by pat
1 On Wednesday 21 February 2007, pat <pat@××××××××.org> wrote
2 about '[gentoo-user] ramfs - is it necessary ???':
3 > And if it is necessary where I can find good documentation
4 > (samples, explanation, etc.).
5
6 Pretty much all of the documenation on "early userspace" is in the kernel
7 tree. You might even want to emerge the kernel with the 'doc' use flag,
8 to get full (HTML?) documentation, although some of it is in simple plain
9 text (rather than docbook) and available w/o that flag.
10
11 > And next question is: hat is difference between ramfs and initrd ??? Is
12 > it the same thing or not ... ???
13
14 initrd is the old way. A compressed (usually ext2) filesystem used to load
15 kernel modules, or otherwise initialize things before mounting the root
16 filesystem.
17
18 initramfs is the new way. A compressed series of cpio archives (with some
19 special treatment) for the same purpose.
20
21 Both use ram-backed block devices. initrd doesn't need ramfs or tmpfs. I
22 think an initramfs can use either, but it might require ramfs. An
23 initramfs can be compiled into the kernel, either can be a separate file
24 loaded by grub/lilo/xen.
25
26 ramfs is a fixed-size ram-backed file system. tmpfs is a newer, better way
27 to do this. It has a maximum size (which can be changed by a remount) but
28 will only allocate enough ram to hold what is currently placed on the
29 filesystem.
30
31 --
32 Boyd Stephen Smith Jr. ,= ,-_-. =.
33 bss03@××××××××××.net ((_/)o o(\_))
34 ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
35 http://iguanasuicide.org/ \_/
36 New GPG Key! Old key expires 2007-03-25. Upgrade NOW!

Replies

Subject Author
Re: [gentoo-user] ramfs - is it necessary ??? pat <pat@××××××××.org>