mount 的参数:

-f, --fake

英文解释:
              Causes everything to be done except for the actual system  call;
              if  it’s  not  obvious,  this ‘‘fakes’’ mounting the filesystem.
              This option is useful in conjunction with the -v flag to  deter-
              mine what the mount command is trying to do. It can also be used
              to add entries for devices that were mounted earlier with the -n
              option.  The  -f  option checks for existing record in /etc/mtab
              and fails when the record already exists (with regular  non-fake
              mount, this check is done by kernel).

中文解释:不实际加载设备。可与-v等参数同时使用以查看mount的执行过程。

实验:

1.用该选项挂载光驱

123151186.png

2.查看/etc/fstab文件,发现其中没有挂载光驱的项

123156855.png

 

3.用mount命令查看系统中已经挂载的设备,可以看到光驱已挂载到/mnt目录下面123201901.png

4.查看/etc/mtab,可以看到挂载该设备的详细信息

123207944.png

5.进入挂载点,查看是否则内容,发现只是模拟挂载,并没有真正的挂载

123211689.png