#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:56+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man4/initrd.4:35 #, no-wrap msgid "INITRD" msgstr "" #. type: TH #: man-pages/man4/initrd.4:35 #, no-wrap msgid "2010-09-04" msgstr "" #. type: TH #: man-pages/man4/initrd.4:35 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man4/initrd.4:35 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man4/initrd.4:36 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:38 msgid "initrd - boot loader initialized RAM disk" msgstr "" #. type: SH #: man-pages/man4/initrd.4:38 #, no-wrap msgid "CONFIGURATION" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:51 msgid "" "The I is a read-only block device assigned major number 1 and " "minor number 250. Typically I is owned by I with " "mode 0400 (read access by root only). If the Linux system does not have I already created, it can be created with the following commands:" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:56 #, no-wrap msgid "" "B<\n" " mknod -m 400 /dev/initrd b 1 250\n" " chown root:disk /dev/initrd>\n" "\n" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:71 msgid "" "Also, support for both \"RAM disk\" and \"Initial RAM disk\" (e.g., " "B and B) must be compiled " "directly into the Linux kernel to use I. When using I, the RAM disk driver cannot be loaded as a module." msgstr "" #. type: SH #: man-pages/man4/initrd.4:71 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:80 msgid "" "The special file I is a read-only block device. This device is " "a RAM disk that is initialized (e.g., loaded) by the boot loader before the " "kernel is started. The kernel then can use I's contents for a " "two-phase system boot-up." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:93 msgid "" "In the first boot-up phase, the kernel starts up and mounts an initial root " "filesystem from the contents of I (e.g., RAM disk initialized " "by the boot loader). In the second phase, additional drivers or other " "modules are loaded from the initial root device's contents. After loading " "the additional modules, a new root filesystem (i.e., the normal root " "filesystem) is mounted from a different device." msgstr "" #. type: SS #: man-pages/man4/initrd.4:93 #, no-wrap msgid "Boot-up operation" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:97 msgid "When booting up with B, the system boots as follows:" msgstr "" #. type: IP #: man-pages/man4/initrd.4:97 man-pages/man4/initrd.4:323 man-pages/man4/initrd.4:430 #, no-wrap msgid "1." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:101 msgid "" "The boot loader loads the kernel program and I's contents into " "memory." msgstr "" #. type: IP #: man-pages/man4/initrd.4:101 man-pages/man4/initrd.4:331 man-pages/man4/initrd.4:441 #, no-wrap msgid "2." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:109 msgid "" "On kernel startup, the kernel uncompresses and copies the contents of the " "device I onto device I and then frees the memory " "used by I." msgstr "" #. type: IP #: man-pages/man4/initrd.4:109 man-pages/man4/initrd.4:339 man-pages/man4/initrd.4:458 #, no-wrap msgid "3." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:113 msgid "" "The kernel then read-write mounts the device I as the initial " "root filesystem." msgstr "" #. type: IP #: man-pages/man4/initrd.4:113 man-pages/man4/initrd.4:343 #, no-wrap msgid "4." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:118 msgid "" "If the indicated normal root filesystem is also the initial root filesystem " "(e.g., I) then the kernel skips to the last step for the usual " "boot sequence." msgstr "" #. type: IP #: man-pages/man4/initrd.4:118 man-pages/man4/initrd.4:349 #, no-wrap msgid "5." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:130 msgid "" "If the executable file I is present in the initial root " "filesystem, I is executed with UID 0. (The file I must " "have executable permission. The file I can be any valid " "executable, including a shell script.)" msgstr "" #. type: IP #: man-pages/man4/initrd.4:130 man-pages/man4/initrd.4:358 #, no-wrap msgid "6." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:142 msgid "" "If I is not executed or when I terminates, the normal " "root filesystem is mounted. (If I exits with any filesystems " "mounted on the initial root filesystem, then the behavior of the kernel is " "B. See the NOTES section for the current kernel behavior.)" msgstr "" #. type: IP #: man-pages/man4/initrd.4:142 man-pages/man4/initrd.4:360 #, no-wrap msgid "7." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:173 msgid "" "If the normal root filesystem has a directory I, the device I is moved from I to I. Otherwise, if the directory I does not exist, the device I is unmounted. (When moved " "from I to I, I is not unmounted and therefore " "processes can remain running from I. If directory I " "does not exist on the normal root filesystem and any processes remain " "running from I when I exits, the behavior of the kernel " "is B. See the NOTES section for the current kernel behavior.)" msgstr "" #. type: IP #: man-pages/man4/initrd.4:173 man-pages/man4/initrd.4:363 #, no-wrap msgid "8." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:180 msgid "" "The usual boot sequence (e.g., invocation of I) is performed on " "the normal root filesystem." msgstr "" #. type: SS #: man-pages/man4/initrd.4:180 #, no-wrap msgid "Options" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:184 msgid "" "The following boot loader options, when used with B, affect the " "kernel's boot-up operation:" msgstr "" #. type: TP #: man-pages/man4/initrd.4:184 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:199 msgid "" "Specifies the file to load as the contents of I. For " "B this is a command-line option. For B you have to use this " "command in the B configuration file I. The filename " "specified with this option will typically be a gzipped filesystem image." msgstr "" #. type: TP #: man-pages/man4/initrd.4:199 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:214 msgid "" "This boot option disables the two-phase boot-up operation. The kernel " "performs the usual boot sequence as if I was not initialized. " "With this option, any contents of I loaded into memory by the " "boot loader contents are preserved. This option permits the contents of I to be any data and need not be limited to a filesystem image. " "However, device I is read-only and can be read only one time " "after system startup." msgstr "" #. type: TP #: man-pages/man4/initrd.4:214 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:232 msgid "" "Specifies the device to be used as the normal root filesystem. For " "B this is a command-line option. For B this is a boot time " "option or can be used as an option line in the B configuration file I. The device specified by the this option must be a " "mountable device having a suitable root filesystem." msgstr "" #. type: SS #: man-pages/man4/initrd.4:232 #, no-wrap msgid "Changing the normal root filesystem" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:252 msgid "" "By default, the kernel's settings (e.g., set in the kernel file with " "B(8) or compiled into the kernel file), or the boot loader option " "setting is used for the normal root filesystems. For an NFS-mounted normal " "root filesystem, one has to use the B and B " "boot options to give the NFS settings. For more information on NFS-mounted " "root see the kernel documentation file B. For more information on setting the root filesystem see also the " "B and B documentation." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:284 msgid "" "It is also possible for the I executable to change the normal root " "device. For I to change the normal root device, I must be " "mounted. After mounting I, I changes the normal root " "device by writing into the proc files I, I, and I. For " "a physical root device, the root device is changed by having I " "write the new root filesystem device number into I. For an NFS root filesystem, the root device is changed by having " "I write the NFS setting into files I and I and then writing 0xff (e.g., " "the pseudo-NFS-device number) into file I. " "For example, the following shell command line would change the normal root " "device to I:" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:287 #, no-wrap msgid " echo 0x365 E/proc/sys/kernel/real-root-dev\n" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:294 msgid "" "For an NFS example, the following shell command lines would change the " "normal root device to the NFS directory I on a local networked " "NFS server with IP number 193.8.232.7 for a system with IP number 193.8.232." "2 and named \"idefix\":" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:300 #, no-wrap msgid "" " echo /var/nfsroot E/proc/sys/kernel/nfs-root-name\n" " echo 193.8.232.2:193.8.232.7::255.255.255.0:idefix \\e\n" " E/proc/sys/kernel/nfs-root-addrs\n" " echo 255 E/proc/sys/kernel/real-root-dev\n" msgstr "" #. FIXME the manual page should describe the pivot_root mechanism. #. type: Plain text #: man-pages/man4/initrd.4:317 msgid "" "B: The use of I to change the root " "filesystem is obsolete. See the Linux kernel source file I as well as B(2) and B(8) for " "information on the modern method of changing the root filesystem." msgstr "" #. type: SS #: man-pages/man4/initrd.4:317 #, no-wrap msgid "Usage" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:321 msgid "" "The main motivation for implementing B was to allow for modular " "kernel configuration at system installation." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:323 msgid "A possible system installation scenario is as follows:" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:331 msgid "" "The loader program boots from floppy or other media with a minimal kernel (e." "g., support for I, I, and the ext2 filesystem) and " "loads I with a gzipped version of the initial filesystem." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:339 msgid "" "The executable I determines what is needed to (1) mount the normal " "root filesystem (i.e., device type, device drivers, filesystem) and (2) the " "distribution media (e.g., CD-ROM, network, tape, ...). This can be done by " "asking the user, by auto-probing, or by using a hybrid approach." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:343 msgid "" "The executable I loads the necessary modules from the initial root " "filesystem." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:349 msgid "" "The executable I creates and populates the root filesystem. (At " "this stage the normal root filesystem does not have to be a completed system " "yet.)" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:358 msgid "" "The executable I sets I, unmount " "I, the normal root filesystem and any other filesystems it has " "mounted, and then terminates." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:360 msgid "The kernel then mounts the normal root filesystem." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:363 msgid "" "Now that the filesystem is accessible and intact, the boot loader can be " "installed." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:372 msgid "" "The boot loader is configured to load into I a filesystem with " "the set of modules that was used to bring up the system. (e.g., Device I can be modified, then unmounted, and finally, the image is written " "from I to a file.)" msgstr "" #. type: IP #: man-pages/man4/initrd.4:372 #, no-wrap msgid "9." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:375 msgid "" "The system is now bootable and additional installation tasks can be " "performed." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:381 msgid "" "The key role of I in the above is to reuse the configuration " "data during normal system operation without requiring initial kernel " "selection, a large generic kernel or, recompiling the kernel." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:394 msgid "" "A second scenario is for installations where Linux runs on systems with " "different hardware configurations in a single administrative network. In " "such cases, it may be desirable to use only a small set of kernels (ideally " "only one) and to keep the system-specific part of configuration information " "as small as possible. In this case, create a common file with all needed " "modules. Then, only the I file or a file executed by I " "would be different." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:401 msgid "" "A third scenario is more convenient recovery disks. Because information " "like the location of the root filesystem partition is not needed at boot " "time, the system loaded from I can use a dialog and/or auto-" "detection followed by a possible sanity check." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:418 msgid "" "Last but not least, Linux distributions on CD-ROM may use B for easy " "installation from the CD-ROM. The distribution can use B to " "directly load I from CD-ROM without the need of any floppies. " "The distribution could also use a B boot floppy and then bootstrap a " "bigger RAM disk via I from the CD-ROM." msgstr "" #. type: SH #: man-pages/man4/initrd.4:418 #, no-wrap msgid "FILES" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:420 msgid "I" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:422 msgid "I" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:424 msgid "I" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:429 msgid "I" msgstr "" #. type: SH #: man-pages/man4/initrd.4:429 #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:441 msgid "" "With the current kernel, any filesystems that remain mounted when I is moved from I to I continue to be accessible. However, " "the I entries are not updated." msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:458 msgid "" "With the current kernel, if directory I does not exist, then I will B be fully unmounted if I is used by any process " "or has any filesystem mounted on it. If I is B fully " "unmounted, then I will remain in memory." msgstr "" #. .SH AUTHORS #. The kernel code for device #. .BR initrd #. was written by Werner Almesberger and #. Hans Lermen . #. The code for #. .BR initrd #. was added to the baseline Linux kernel in development version 1.3.73. #. type: Plain text #: man-pages/man4/initrd.4:474 msgid "" "Users of I should not depend on the behavior give in the above " "notes. The behavior may change in future versions of the Linux kernel." msgstr "" #. type: SH #: man-pages/man4/initrd.4:474 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:480 msgid "B(1), B(1), B(4), B(8), B(8)" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:484 msgid "" "I in the Linux kernel source tree, the LILO " "documentation, the LOADLIN documentation, the SYSLINUX documentation" msgstr "" #. type: SH #: man-pages/man4/initrd.4:484 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: man-pages/man4/initrd.4:492 msgid "" "This page is part of release 3.70 of the Linux I project. A " "description of the project, information about reporting bugs, and the latest " "version of this page, can be found at \\%http://www.kernel.org/doc/man-pages/" "." msgstr ""