Permalink
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...
1 parent 7341ef6 commit 97ed5f90fc53aa23558348f8dfbd64c62797c82e @bwalex committed Oct 7, 2011
Showing with 27 additions and 0 deletions.
  1. +27 −0 tcplay.8
View
@@ -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

0 comments on commit 97ed5f9

Please sign in to comment.