What does “mounting a root file system” exactly means?

转载 2016年08月30日 10:00:06

It says "Root filesystem" because there can be many other filesystems that are mounted at boot time. Root or / is like the C-Drive on Windows. A filesystem is mounted, when it is accessible to the higher level system functions via it's mountpoint.

About the process of mounting... I don't know how technical an answer you want so please don't feel offended by this over-simplification. This is how I would explain it to my customers: Plugging in a Flashdrive.

  1. User connects USB Flashdrive
  2. OS detects "something" is connected to USB-port X
  3. OS probes the port and finds out, that there is a flash drive
  4. OS assigns a device node to the device (let's say /dev/sdb)
  5. OS probes /dev/sdb and find a partition table with on primary partition
  6. OS assigns a device node to the partition (let's say /dev/sdb1)
  7. OS probes /dev/sdb1 and recognizes a FAT32 file system
  8. OS mounts the file system at /dev/sdb1 to a new mountpoint (like /media/pendrive/)
  9. The content of the file system is accessible to the system and thus to the user

The content of the device (raw data) is just a bunch of zeros and ones. When mounting a device, the system adds something like a "read/write-filter" on top of those zeros and ones, that translates the zeros and ones to actual files and vice versa.

For example: When you save "Hello World" to text file at /media/pendrive, then the filter translates this according to the file system's rules and in the end a series of zeros and ones and writes to /dev/sda1.

MIT 6.828 学习笔记3 Lab1实验报告

Lab1实验报告Exercise 31. At what point does the processor start executing 32-bit code? What exactly caus...
  • scnu20142005027
  • scnu20142005027
  • 2016年04月27日 20:25
  • 3419


记录几个最近在项目中遇到的坑,RN版本使用0.29.2。1、在Android平台上Text标签的 lineHeight 需要设置成int ,否则会crash;在iOS平台上没有问题。如下图:com.f...
  • hsbirenjie
  • hsbirenjie
  • 2017年03月16日 11:26
  • 3935

mysql innodb启动失败无法重启的处理方法

本文将介绍mysql innodb出错导致服务不能启动的问题,并根据数据的重要性提供两种不同的处理方法。...
  • fdipzone
  • fdipzone
  • 2016年04月25日 23:12
  • 19880

Redhat 6 Mounting a File System as Encrypted Guide

3.1. Mounting a File System as Encrypted To encrypt a file system with eCryptfs, execute the fo...
  • lively1982
  • lively1982
  • 2015年09月17日 10:29
  • 232

Creating a Root File System for Linux on OMAP35x - 为Linux基于OMAP35x创建根文件系统

本文原载于 http://processors.wiki.ti.com/index.php?title=Creating_a_Root_File_System_for_Linux_on_OMAP35...
  • pro_or_gram
  • pro_or_gram
  • 2012年01月16日 21:19
  • 3370

Creating a Root File System for Linux on OMAP35x

ABSTRACT A Linux kernel is not very useful without a root file system containing applications and se...
  • xiaolei05
  • xiaolei05
  • 2011年01月09日 15:49
  • 1034

What exactly is "iowait"?

What exactly is "iowait"? To summarize it in one sentence, 'iowait' is the percentage of time the C...
  • cszhouwei
  • cszhouwei
  • 2015年04月21日 14:21
  • 468

What exactly is a Neural Network?

Today, computers are greatly evolved machines. They run at blindingly fast processor speeds of aroun...
  • utimes
  • utimes
  • 2013年09月06日 21:57
  • 1633

新目标英语 七下what does he look like

  • 2009年04月29日 19:32
  • 6.56MB
  • 下载

What, exactly, is a Product Manager?

I often get asked what a product manager is. What do they do? Where do they come from? Why do they l...
  • u010566813
  • u010566813
  • 2015年06月01日 10:51
  • 397
您举报文章:What does “mounting a root file system” exactly means?