System information
~]# l s /mnt/cd ro m
EFI GPL isolinux LiveOS
Also verify that file systems mounted in the /mnt directory are not reflected in /med i a.
For instance, if a non-empty USB flash drive that uses the /d ev/sd c1 device is plugged
in and the /mnt/fl ashd i sk/ directory is present, type:
~]# mo unt /d ev/sd c1 /mnt/fl ashd i sk
~]# l s /med i a/fl ashd i sk
~]# l s /mnt/fl ashd i sk
en-US publican.cfg
Privat e Mo u n t
A private mount is the default type of mount, and unlike a shared or slave mount, it does not
receive or forward any propagation events. To explicitly mark a mount point as a private
mount, type the following at a shell prompt:
mo unt --make-pri vate mount_point
Alternatively, it is possible to change the mount type for the selected mount point and all
mount points under it:
mo unt --make-rpri vate mount_point
See Example 18.6, “ Creating a Private Mount Point” for an example usage.
Examp le 18.6 . Creat in g a Privat e Mo u n t Po in t
Taking into account the scenario in Example 18.4, “ Creating a Shared Mount Point” ,
assume that a shared mount point has been previously created by using the following
commands as ro o t:
~]# mo unt --bi nd /med i a /med i a
~]# mo unt --make-shared /med i a
~]# mo unt --bi nd /med i a /mnt
To mark the /mnt directory as “ private” , type:
~]# mo unt --make-pri vate /mnt
It is now possible to verify that none of the mounts within /med i a appears in /mnt. For
example, if the CD-ROM drives contains non-empty media and the /med i a/cd ro m/
directory exists, run the following commands:
~]# mo unt /d ev/cd ro m /med ia/cd ro m
~]# l s /med i a/cd ro m
EFI GPL isolinux LiveOS
~]# l s /mnt/cd ro m
~]#
Chapt er 1 8 . Using t he mount Command
139