why can't i see *all* mounts with "mount"?
Mikkel L. Ellertson
mikkel at infinity-ltd.com
Fri Mar 7 17:38:08 UTC 2008
Robert P. J. Day wrote:
> i'm curious as to why the "mount" command won't show me all the
> mounts that i can view via /proc/mounts. for example, "mount" doesn't
> show me the usbfs mount, or the selinuxfs mount, or ... well, you get
> the idea.
>
> were these mount types left out of the output of mount for a reason?
> just curious.
>
> rday
>
Mount uses /etc/mtab - it is possible to mount file systems without
writing to mtab. Also, the file systems mounted before the root file
system is remounted r/w will not get written. On the other hand,
/proc/mounts shows all the mounts the kernel knows about.
I suspect the reason that mount does not use /proc/mounts is for a
couple of reasons. First of all, when it was written, there was not
a /proc file system. I believe you can also run a Linux system
without a /proc file system.
Mikkel
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080307/62f7dbec/attachment-0001.sig>
More information about the fedora-list
mailing list