Lines Matching +full:d +full:- +full:cache +full:- +full:size
7 --------------
10 mechanisms (the page cache and dentry cache) as a dynamically resizable
11 RAM-based filesystem.
19 memory. A similar mechanism (the dentry cache) greatly speeds up access to
23 dentries and page cache as usual, but there's nowhere to write them to.
29 you're mounting the disk cache as a filesystem. Because of this, ramfs is not
34 ------------------
38 device was of fixed size, so the filesystem mounted on it was of fixed
39 size. Using a ram disk also required unnecessarily copying memory from the
40 fake block device into the page cache (and copying changes back out), as well
52 Another reason ramdisks are semi-obsolete is that the introduction of
58 ----------------
66 A ramfs derivative called tmpfs was created to add size limits, and the ability
71 ---------------
87 ------------------
101 - The old initrd was always a separate file, while the initramfs archive is
102 linked into the linux kernel image. (The directory linux-*/usr is devoted
105 - The old initrd file was a gzipped filesystem image (in some file format,
108 see cpio(1) and Documentation/driver-api/early-userspace/buffer-format.rst). The
112 - The program run by the old initrd (which was called /initrd, not /init) did
118 - When switching another root device, initrd would pivot_root and then
121 free up the space (find -xdev / -exec rm '{}' ';'), overmount rootfs
122 with the new root (cd /newmount; mount --move . /; chroot .), attach
131 ---------------------
161 a directory called "initramfs", under the linux-2.6.* directory. See
162 Documentation/driver-api/early-userspace/early_userspace_support.rst for more details.)
169 from usr/gen_init_cpio.c). The kernel's build-time cpio creation code is
170 entirely self-contained, and the kernel's boot-time extractor is also
171 (obviously) self-contained.
180 cpio -i -d -H newc -F initramfs_data.cpio --no-absolute-filenames
190 if [ $# -ne 2 ]
196 if [ -d "$1" ]
199 (cd "$1"; find . | cpio -o -H newc | gzip) > "$2"
207 of filenames is with the find command; you should give find the -depth option
215 --------------------------
224 non-GPL code you'd like to run from initramfs, without conflating it with
227 It can also be used to supplement the kernel's built-in initramfs image. The
229 the built-in initramfs archive. Some distributors also prefer to customize
230 a single kernel image with task-specific initramfs images, without recompiling.
233 ----------------------
235 An initramfs archive is a complete self-contained root filesystem for Linux.
239 http://www.tldp.org/HOWTO/Bootdisk-HOWTO/
240 http://www.tldp.org/HOWTO/From-PowerUp-To-Bash-Prompt-HOWTO.html
248 myself. These are LGPL and GPL, respectively. (A self-contained initramfs
270 gcc -static hello.c -o init
271 echo init | cpio -o -H newc | gzip > test.cpio.gz
273 qemu -kernel /boot/vmlinuz -initrd test.cpio.gz /dev/zero
280 -------------------------
309 explained in buffer-format.txt, created in usr/gen_init_cpio.c, and
311 total of human-readable text.
335 ------------------
349 compressed, encrypted, copy-on-write, loopback mounted, strangely partitioned,
356 The klibc package has now been accepted into Andrew Morton's 2.6.17-mm tree.