Linux Format

Mounting your filesystem­s

-

One of the first things init does is mount your filesystem­s. The kernel will have mounted the root filesystem when it started, but it’s often mounted read-only. Mounting filesystem­s is controlled by the contents of /etc/fstab , which lists the devices to mount, their mount points and any options to use when mounting them. The root filesystem is remounted read-write, then the other local filesystem­s, including swap, are mounted. Any filesystem­s with the noauto option set aren’t mounted and network filesystem­s are left until the network is available. While this task was traditiona­lly handled by init , things have changed recently. It can no longer be guaranteed that everything needed for early boot is on the root filesystem, particular­ly on systems that use a separate filesystem for /usr , so most distros now mount the local filesystem­s, or at least the critical ones, from the initramfs before passing control to init .

Newspapers in English

Newspapers from Australia