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

Welcome to the DM-Crypt-Helper-Scripts !

Create container

$ sudo /__dmc/_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): ext4 Fast fill container 0+0 записей получено 0+0 записей отправлено скопировано 0 байт (0 B), 0,000205616 c, 0,0 kB/c Enter passphrase: Shreding [20M] space on [/tmp/Container1.dmc] ... (please wait) Formatting cryptocontainer... mke2fs 1.42.12 (29-Aug-2014) Creating filesystem with 20480 1k blocks and 5136 inodes Filesystem UUID: ab93fd82-79c6-46ef-8eb9-91b5d74ce946 Superblock backups stored on blocks: 8193

Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done Writing superblocks and filesystem accounting information: done

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

Unmount container

$ sudo /__dmc/_dmc.sh /tmp/Container1.dmc stop ----- Unmount CryptoContainer [/tmp/Container1.dmc] -------------------- <Br\> ----- Unmount CryptoContainer Complete ! ---------

Mount Container

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

Clone this wiki locally