This is an old revision of the document!


Ramdisk

After performing the initial setup, Linux will try to fork into User Space by starting the init process. For this to happen, the kernel first needs to load a root filesystem. The location of this rootfs is specified as part of the kernel's command line arguments:

$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/mapper/volgrp0-lv_root rw loglevel=3 quiet

Notice in this example how the root variable is not /dev/sda or /dev/nvme0n1, but instead a Logical Volume (i.e.: an intermediate representational layer that abstracts the backing storage devices – see figure below.) Although the kernel has LVM support, the drivers may be compiled as modules to be loaded after booting into User Space. This puts us in an awkward position where we need the LVM drivers to access the root partition but the modules are located on the very same root partition.

Figure 1: Abstraction of storage mediums under LVM.

ass/cursuri/02/theory/01.1689421295.txt.gz · Last modified: 2023/07/15 14:41 by radu.mantu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0