Skip to content
Aminux edited this page Aug 15, 2015 · 12 revisions

Welcome to the DM-Crypt-Helper-Scripts !

Create container

$ sudo _dmc.sh /tmp/Container1.dmc create

----- CREATE NEW CryptoContainer --------------------- You start to CREATE dm-crypt container. Continue (Yes/No)? Yes OK, continue... Enter internal volume label for new container: My_Container Enter volume size (1048576, 1024K, 100M, 2G): 20M Supported filesystems on your machine:

-rwxr-xr-x. 1 root root 337804 июн 23 17:53 /sbin/mkfs.btrfs -rwxr-xr-x. 1 root root 31896 май 22 15:03 /sbin/mkfs.cramfs -rwxr-xr-x. 5 root root 111548 май 1 04:38 /sbin/mkfs.ext2 -rwxr-xr-x. 5 root root 111548 май 1 04:38 /sbin/mkfs.ext3 -rwxr-xr-x. 5 root root 111548 май 1 04:38 /sbin/mkfs.ext4 -rwxr-xr-x. 5 root root 111548 май 1 04:38 /sbin/mkfs.ext4dev -rwxr-xr-x. 1 root root 27836 ноя 14 2014 /sbin/mkfs.fat -rwxr-xr-x. 1 root root 32296 авг 17 2014 /sbin/mkfs.hfsplus -rwxr-xr-x. 1 root root 36180 май 22 15:03 /sbin/mkfs.minix lrwxrwxrwx. 1 root root 8 ноя 14 2014 /sbin/mkfs.msdos -> mkfs.fat lrwxrwxrwx. 1 root root 16 май 22 23:14 /sbin/mkfs.ntfs -> /usr/sbin/mkntfs lrwxrwxrwx. 1 root root 8 ноя 14 2014 /sbin/mkfs.vfat -> mkfs.fat -rwxr-xr-x. 1 root root 403540 авг 19 2014 /sbin/mkfs.xfs

Enter filesystem type (ext2 as default): btrfs Fast fill container 0+0 записей получено 0+0 записей отправлено скопировано 0 байт (0 B), 0,000203312 c, 0,0 kB/c Enter passphrase: Shreding [20M] space on [/tmp/Container1.dmc] ... (please wait) Formatting cryptocontainer... SMALL VOLUME: forcing mixed metadata/data groups btrfs-progs v4.1 See http://btrfs.wiki.kernel.org for more information.

Label: My_Container UUID: 9adf52d7-8d7c-4462-88de-3f0ac64df66f Node size: 4096 Sector size: 4096 Filesystem size: 20.00MiB Block group profiles: Data+Metadata: single 2.00MiB System: single 4.00MiB SSD detected: no Incompat features: mixed-bg, extref, skinny-metadata Number of devices: 1 Devices: ID SIZE PATH 1 20.00MiB /dev/mapper/Container1.dmc

Label :: [Container1.dmc] ; /tmp/Container1.dmc --> /media/My_Container ; [on /dev/loop3], SIZE: [20M] ----- New CryptoContainer mounted succesfully ! ---------

Unmount container

$ sudo /__dmc/_dmc.sh /tmp/Container1.dmc stop

----- Unmount CryptoContainer [/tmp/Container1.dmc] -------------------- ----- Unmount CryptoContainer Complete ! ---------

Mount Container

$ sudo /__dmc/_dmc.sh /tmp/Container1.dmc ----- Mount CryptoContainer [/tmp/Container1.dmc] --------------------- Enter passphrase: Label :: [Container1.dmc] ; /tmp/Container1.dmc --> /media/Disk__Container1.dmc ; [on /dev/loop1] ----- Mount CryptoContainer Complete ! ---------

Clone this wiki locally