linux参数-f参数是,linux命令中的mount -f参数

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.用该选项挂载光驱

5644796588570b73141d0d057b8eef9c.png

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

60e41e6b10aa7525543f5301440c2824.png

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

40ef197f8d7378a947937679bf462f6f.png

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

820de6c67ec1d4fbc50d8a0fc5703b9e.png

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

6d09f9ce3abda8747665f9655236914a.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值