Mount­ing your filesys­tems

Linux Format - - ESCAPE WINDOWS -

One of the first things init does is mount your filesys­tems. The ker­nel will have mounted the root filesys­tem when it started, but it’s of­ten mounted read-only. Mount­ing filesys­tems is con­trolled by the con­tents of /etc/fstab , which lists the de­vices to mount, their mount points and any op­tions to use when mount­ing them. The root filesys­tem is re­mounted read-write, then the other lo­cal filesys­tems, in­clud­ing swap, are mounted. Any filesys­tems with the noauto op­tion set aren’t mounted and net­work filesys­tems are left un­til the net­work is avail­able. While this task was tra­di­tion­ally han­dled by init , things have changed re­cently. It can no longer be guar­an­teed that ev­ery­thing needed for early boot is on the root filesys­tem, par­tic­u­larly on sys­tems that use a sep­a­rate filesys­tem for /usr , so most dis­tros now mount the lo­cal filesys­tems, or at least the crit­i­cal ones, from the initramfs be­fore pass­ing con­trol to init .

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.