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.


  • nideshijian
  • nideshijian
  • 2017年01月09日 16:53
  • 950

What Is The Meaning of In Routing Table?

What Is The Meaning of In Routing Table? by NIX CRAFT on JULY 16, 2009 · 1 COMMENT· L...
  • u012436149
  • u012436149
  • 2014年03月15日 23:30
  • 482


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


580.What does the SCN represent? A. The system change number, which is a point in time relative to ...
  • rlhua
  • rlhua
  • 2013年09月22日 23:47
  • 3528

centos7 oracle 12c 安装问题记录

centos7 oracle 12c 安装问题记录 CentOS 机器: Exception in thread "main" java.lang.NoClassDefFoundError...
  • hknaruto
  • hknaruto
  • 2015年09月30日 16:53
  • 3304

React异步请求数据出现setState(...): Can only update a mounted or mounting component...

  • dengdengda
  • dengdengda
  • 2017年09月08日 10:36
  • 1007

linux挂载硬盘重启后出现an error occurred during the file system check错误最有效的解决办法

本来是磁盘不够用,新增磁盘的,结果出现问题,找了许久解决了, 利用『 mount -n -o remount,rw / 』重新挂载根目录, 这之后就把刚才错误的地方修改一下,注意,这个时...
  • a2615381
  • a2615381
  • 2016年10月19日 15:16
  • 665

linux9.0安装VMware Tools问题解决

用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用su...
  • m8396017
  • m8396017
  • 2016年06月21日 10:15
  • 2542

Component template should contain exactly one root element. If you are using v-if on multiple elemen

上面的提示大概意思就是:vue模板智能有一个跟对象 这和个是错误的写法这个是正确的写法(模板内的标签只能被一个标签所包含)...
  • like_jack
  • like_jack
  • 2017年11月01日 18:03
  • 177

ofSetVerticalSync– what does it do exactly?

It synchronizes the redraw of the screen to the vertical refresh of your screen. The monitor or proj...
  • sac761
  • sac761
  • 2016年12月12日 10:41
  • 313
您举报文章:What does “mounting a root file system” exactly means?