'defaults' マウントオプションが /proc/mounts または mount コマンドに表示されないのはなぜですか?
Issue
- マウントされたファイルシステムのフルマウントオプションを決定するにはどうすればよいですか?
defaultsがasync,auto,dev,exec,nouser,rw,suidのエイリアスを提供する場合、これらのオプションが/etc/mtab、/proc/mounts、またはmountコマンドで報告されないのはなぜですか?- ファイルシステムが、
defaultsのオプションの 1 つを使用してマウントされている場合、他のオプションは適用できますか? - たとえば、
defaultsは以下のようにtmpfsファイルシステムを表示します。
tmpfs /dev/shm tmpfs defaults 0 0
- ただし、
mountコマンドと/proc/mountsは、defaultsのrwのみを報告します。
# mount -v -t tmpfs
tmpfs on /dev/shm type tmpfs (rw)
# cat /proc/mounts | grep tmpfs
tmpfs /dev/shm tmpfs rw,seclabel,nosuid,nodev 0 0
Environment
- Red Hat Enterprise Linux (RHEL)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.