System information

It is also possible to 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
Un b in d ab le Mo u n t
In order to prevent a given mount point from being duplicated whatsoever, an unbindable
mount is used. To change the type of a mount point to an unbindable mount, type the
following at a shell prompt:
mo unt --make-unbi nd abl e 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-runbi nd abl e mount_point
See Example 18.7, “ Creating an Unbindable Mount Point” for an example usage.
Examp le 18.7. Creat in g an Un b in d ab le Mo u n t Po in t
To prevent the /med i a directory from being shared, as ro o t, type the following at a
shell prompt:
~]# mo unt --bi nd /med i a /med i a
~]# mo unt --make-unbi nd abl e /med i a
This way, any subsequent attempt to make a duplicate of this mount will fail with an error:
~]# mo unt --bi nd /med i a /mnt
mount: wrong fs type, bad option, bad superblock on /media,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
18.2.4 . Moving a Mount Point
To change the directory in which a file system is mounted, use the following command:
mo unt --mo ve old_directory new_directory
See Example 18.8, “ Moving an Existing NFS Mount Point” for an example usage.
Examp le 18.8. Mo ving an Exist in g NFS Mo u n t Po in t
Red Hat Ent erprise Lin ux 6 St orage Admin ist rat io n G uide
14 0