<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.wiki.gioo.info/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://www.wiki.gioo.info/index.php?action=history&amp;feed=atom&amp;title=LUKS</id>
		<title>LUKS - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://www.wiki.gioo.info/index.php?action=history&amp;feed=atom&amp;title=LUKS"/>
		<link rel="alternate" type="text/html" href="https://www.wiki.gioo.info/index.php?title=LUKS&amp;action=history"/>
		<updated>2026-04-10T13:19:23Z</updated>
		<subtitle>Historique pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>https://www.wiki.gioo.info/index.php?title=LUKS&amp;diff=202&amp;oldid=prev</id>
		<title>Gio le 5 juin 2013 à 14:35</title>
		<link rel="alternate" type="text/html" href="https://www.wiki.gioo.info/index.php?title=LUKS&amp;diff=202&amp;oldid=prev"/>
				<updated>2013-06-05T14:35:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Version précédente&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version du 5 juin 2013 à 14:35&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 7 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 7 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Création du Luks ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Création du Luks ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Formater la partition luks&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Formater la partition luks&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; cryptsetup luksFormat -c aes-xts-plain -&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;s 512 &lt;/del&gt;/dev/sdb2&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; cryptsetup luksFormat -c aes-xts-plain -&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;h sha256 &lt;/ins&gt;/dev/sdb2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Ouvrir la partition luks. Cette commande va créer le fichier privatekey sous /dev/mapper/ et nous permettre de gérer notre partition luks.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Ouvrir la partition luks. Cette commande va créer le fichier privatekey sous /dev/mapper/ et nous permettre de gérer notre partition luks.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 35 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 35 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Création du Luks ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Création du Luks ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; cryptsetup luksFormat -c aes-xts-plain -&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;s 512 &lt;/del&gt;/dev/vg00/lv_private&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; cryptsetup luksFormat -c aes-xts-plain -&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;h sha256 &lt;/ins&gt;/dev/vg00/lv_private&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; cryptsetup luksDump /dev/vg00/lv_private&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; cryptsetup luksDump /dev/vg00/lv_private&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gio</name></author>	</entry>

	<entry>
		<id>https://www.wiki.gioo.info/index.php?title=LUKS&amp;diff=201&amp;oldid=prev</id>
		<title>Gio : Page créée avec « Linux Unified Key Setup permet de chiffrer une partition via l'utilitaire cryptsetup.  Tout d'abord, il va falloir installer le paquet cryptsetup  apt-get install cryptsetup ... »</title>
		<link rel="alternate" type="text/html" href="https://www.wiki.gioo.info/index.php?title=LUKS&amp;diff=201&amp;oldid=prev"/>
				<updated>2013-06-05T12:24:47Z</updated>
		
		<summary type="html">&lt;p&gt;Page créée avec « Linux Unified Key Setup permet de chiffrer une partition via l&amp;#39;utilitaire cryptsetup.  Tout d&amp;#39;abord, il va falloir installer le paquet cryptsetup  apt-get install cryptsetup ... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Linux Unified Key Setup permet de chiffrer une partition via l'utilitaire cryptsetup.&lt;br /&gt;
&lt;br /&gt;
Tout d'abord, il va falloir installer le paquet cryptsetup&lt;br /&gt;
 apt-get install cryptsetup&lt;br /&gt;
&lt;br /&gt;
= Partition standard chiffrée =&lt;br /&gt;
== Création du Luks ==&lt;br /&gt;
Formater la partition luks&lt;br /&gt;
 cryptsetup luksFormat -c aes-xts-plain -s 512 /dev/sdb2&lt;br /&gt;
&lt;br /&gt;
Ouvrir la partition luks. Cette commande va créer le fichier privatekey sous /dev/mapper/ et nous permettre de gérer notre partition luks.&lt;br /&gt;
 cryptsetup luksOpen /dev/sdb2 privatekey&lt;br /&gt;
&lt;br /&gt;
Mettre en place le système de fichier (ici ext4). On formate le container luks avec le système de fichier voulu.&lt;br /&gt;
 mkfs.ext4 /dev/mapper/privatekey&lt;br /&gt;
&lt;br /&gt;
== Montage de la partition ==&lt;br /&gt;
 cryptsetup luksOpen /dev/sdb2 privatekey&lt;br /&gt;
 mount /dev/mapper/privatekey /mnt/private&lt;br /&gt;
On peut effectuer toutes les actions que l'on souhaite dans notre partition /mnt/private. Ajout de fichiers, suppression... L'ensemble des fichiers ainsi ajoutés seront chiffrés sur la partition et uniquement accessible via la saisi du mot de passe.&lt;br /&gt;
&lt;br /&gt;
== Démontage de la partition ==&lt;br /&gt;
 umount /mnt/private&lt;br /&gt;
 cryptsetup luksClose privatekey&lt;br /&gt;
&lt;br /&gt;
= Partition LVM chiffrée =&lt;br /&gt;
L'avantage de cette méthode est que l'on pourra utiliser les fonctionnalités de LVM pour ainsi redimensionner la taille de notre volume chiffré.&lt;br /&gt;
== Création du LVM ==&lt;br /&gt;
 pvcreate /dev/sdb1&lt;br /&gt;
 vgcreate vg00 /dev/sdb1&lt;br /&gt;
 vgdisplay&lt;br /&gt;
&lt;br /&gt;
On créé notre LogicalVolume à 1G&lt;br /&gt;
 lvcreate -n lv_private -L 1G vg00&lt;br /&gt;
&lt;br /&gt;
== Création du Luks ==&lt;br /&gt;
 cryptsetup luksFormat -c aes-xts-plain -s 512 /dev/vg00/lv_private&lt;br /&gt;
 cryptsetup luksDump /dev/vg00/lv_private&lt;br /&gt;
&lt;br /&gt;
On formate la partition LVM après l'avoir ouverte via Luks :&lt;br /&gt;
 cryptsetup luksOpen /dev/vg00/lv_private privatekey&lt;br /&gt;
 mkfs.ext4 /dev/mapper/privatekey&lt;br /&gt;
&lt;br /&gt;
== Montage de la partition ==&lt;br /&gt;
 cryptsetup luksOpen /dev/vg00/lv_private privatekey&lt;br /&gt;
 mount /dev/mapper/privatekey /mnt/private&lt;br /&gt;
&lt;br /&gt;
== Démontage de la partition ==&lt;br /&gt;
 umount /mnt/private&lt;br /&gt;
 cryptsetup luksClose privatekey&lt;br /&gt;
&lt;br /&gt;
== Redimensionner la partition Luks ==&lt;br /&gt;
 lvextend -L +1G /dev/mapper/vg00-lv_private&lt;br /&gt;
&lt;br /&gt;
Il faut faire le resize2fs sur le point de montage luks.&lt;br /&gt;
 cryptsetup luksOpen /dev/vg00/lv_private privatekey&lt;br /&gt;
 resize2fs /dev/mapper/privatekey&lt;/div&gt;</summary>
		<author><name>Gio</name></author>	</entry>

	</feed>