Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

man page - Further examples

 * Add some full examples for mapping and mounting a file-based volume
   on both Linux and DragonFly.
  • Loading branch information...
commit 97ed5f90fc53aa23558348f8dfbd64c62797c82e 1 parent 7341ef6
@bwalex authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 tcplay.8
View
27 tcplay.8
@@ -228,6 +228,33 @@ using the keyfile
.Fl -device Ns = Ns Cm /dev/vn0
.Fl -keyfile Ns = Ns Cm hidden.key
.Ed
+.Pp
+Map and mount the volume in the file
+.Pa secvol
+on Linux:
+.Bd -ragged -offset indent
+.Sy losetup Cm /dev/loop1 Cm secvol
+.Ed
+.Bd -ragged -offset indent
+.Nm Fl -map Ns = Ns Cm secv
+.Fl -device Ns = Ns Cm /dev/loop1
+.Ed
+.Bd -ragged -offset indent
+.Sy mount Cm /dev/mapper/secv Cm /mnt
+.Ed
+.Pp
+Similarly on
+.Dx :
+.Bd -ragged -offset indent
+.Sy vnconfig Cm vn1 Cm secvol
+.Ed
+.Bd -ragged -offset indent
+.Nm Fl -map Ns = Ns Cm secv
+.Fl -device Ns = Ns Cm /dev/vn1
+.Ed
+.Bd -ragged -offset indent
+.Sy mount Cm /dev/mapper/secv Cm /mnt
+.Ed
.Sh SEE ALSO
.Xr crypttab 5 ,
.Xr cryptsetup 8
Please sign in to comment.
Something went wrong with that request. Please try again.