Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] ramfs - is it necessary ??? "Boyd Stephen Smith Jr." <bss03@××××××××××.net>