[英]Why doesn't 'mount' use all default options listed in man page?
I'm trying to mount the partition /dev/sda4 like this: 我正在尝试像这样挂载分区/ dev / sda4:
sudo mount /dev/sda4
My /etc/fstab has this line: 我的/ etc / fstab包含以下行:
/dev/sda4 /home/lv/Media ext4 defaults 0 2
But still when I use mount
I get this: 但是仍然当我使用
mount
我得到了:
/dev/sda4 on /home/lv/Media type ext4 (rw)
I read defaults should be equal to rw, suid, dev, exec, auto, nouser, async, and relatime. 我读取的默认值应该等于rw,suid,dev,exec,auto,nouser,async和relatime。 What's the deal with this?
这是怎么回事?
defaults
默认
use default options: rw, suid, dev, exec, auto, nouser, and async.
使用默认选项:rw,suid,dev,exec,auto,nouser和async。
I believe, all these options are default behaviour and thus not shown explicitly (one exception is rw
). 我相信,所有这些选项都是默认行为,因此没有明确显示(一个例外是
rw
)。 If nosuid
is not given, mount defaults to suid
; 如果未给出
nosuid
,则mount默认为suid
; if nodev
is not given, mount defaults to dev
, and so on. 如果未提供
nodev
,则将mount缺省设置为dev
,依此类推。
For example, noexec
option is shown: 例如,显示
noexec
选项:
$ mount /dev/sda1 foo -o noexec
$ ./foo/bin/date
zsh: permission denied: ./foo/bin/date
$ mount | grep foo
/dev/sda1 on /root/foo type ext4 (rw,noexec)
But exec
option is not: 但是
exec
选项不是:
$ mount /dev/sda1 foo -o exec
$ ./foo/bin/date
Tue Jul 28 08:58:36 MSK 2015
$ mount | grep foo
/dev/sda1 on /root/foo type ext4 (rw)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.