Editing Ploop/Mount helpers

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
Despite the fact that ploop is not a file system, a trick exist
 
Despite the fact that ploop is not a file system, a trick exist
to make it look and feel like so i.e. to use usual <code>mount</code>
+
to make it look and feel like so -- i.e. to use usual <code>mount</code>
 
and <code>umount</code> commands rather than the {{Man|ploop|8}} tool.
 
and <code>umount</code> commands rather than the {{Man|ploop|8}} tool.
This article describes how it works and can be used.
+
This article describes why and how, and lists caveats and limitation.
  
 
== Introduction ==
 
== Introduction ==
Line 21: Line 21:
  
 
== Mounting ==
 
== Mounting ==
 +
 +
Normally, ploop is mounted by <code>ploop mount</code> command.
  
 
You can use the following syntax to mount a ploop device and the filesystem inside it:
 
You can use the following syntax to mount a ploop device and the filesystem inside it:
Line 42: Line 44:
 
== Unmounting ==
 
== Unmounting ==
  
To unmount, DiskDescriptor can be specified:
+
Normally, ploop is unmounted by <code>ploop umount</code> command.
  
umount /path/to/DiskDescriptor.xml
+
But if the following is true, usual <code>umount</code> can be used:
 +
# /etc/mtab is a separate file (not a symlink to /proc/mounts);
 +
# mounting should have been done using <code>mount</code> (not <code>ploop mount</code>).
  
A mount point can be used as well:
+
Any of the following can be used:
  
 +
umount /path/to/DiskDescriptor.xml
 
  umount /mount/point
 
  umount /mount/point
  
== Limitations ==
+
[[Category: ploop]]
 
 
Note that umount can only work if:
 
# /etc/mtab is a separate file (not a symlink to /proc/mounts);
 
# mounting was done using <code>mount</code> (not <code>ploop mount</code>).
 
 
 
Otherwise, umount binary will not be able to find <code>ploop</code> as the "filesystem"
 
field in /etc/mtab, and will not call <code>umount.ploop</code> helper. As a result,
 
file system will be unmounted, but ploop device itself will stay mounted.
 
 
 
== Alternative ==
 
 
 
<code>ploop mount</code> and <code>ploop umount</code> commands,
 
as described in {{Man|ploop|8}} man page.
 
 
 
== See also ==
 
 
 
* [[Ploop]]
 
* {{Bug|2817}}
 
 
 
[[Category: Storage]]
 

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: