no way to compare when less than two revisions
Différences
Ci-dessous, les différences entre deux révisions de la page.
— | informatique:securite:luksfs [2016/06/01 16:35] (Version actuelle) – créée bn8 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Luks FS ====== | ||
+ | |||
+ | ===== Formater la partition ===== | ||
+ | |||
+ | <code bash> | ||
+ | # Format partition | ||
+ | cryptsetup -q --use-urandom luksFormat /dev/vg/lv / | ||
+ | |||
+ | # Creating random keyfile for crypted partition | ||
+ | dd if=/ | ||
+ | |||
+ | # Setting permission on key/pass files | ||
+ | chmod 0500 / | ||
+ | |||
+ | #Add new key on crypted partition | ||
+ | cryptsetup luksAddKey /dev/vg/lv | ||
+ | |||
+ | # Active crypted partition | ||
+ | cryptsetup luksOpen /dev/vg/lv mylv --key-file / | ||
+ | |||
+ | # Creating Ext4 FS on crypted partition | ||
+ | mkfs.ext4 / | ||
+ | </ | ||
+ | |||
+ | ===== Monter la partition chiffré ===== | ||
+ | |||
+ | **Remarque : ** A faire après le // | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | ===== Démonter la partition ===== | ||
+ | |||
+ | <code bash> | ||
+ | cryptsetup close mylv</ | ||
+ | |||