This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
doc:x200 [2013/05/19 23:31] stwn [Without LVM] +uuid in crypttab |
doc:x200 [2013/05/28 09:17] (current) stwn +backup luks header |
||
|---|---|---|---|
| Line 110: | Line 110: | ||
| * Check UUID of that partition. <code># blkid /dev/mapper/yes2</code> | * Check UUID of that partition. <code># blkid /dev/mapper/yes2</code> | ||
| * Edit /etc/fstab. <code># nano /etc/fstab</code><code>/dev/mapper/yes2 /media/crypt2 ext4 relatime 0 2</code>or<code>UUID=XXXXYYYYZZZZ /media/crypt2 ext4 relatime 0 2</code>Change the XXXXYYYYZZZZ with the output of blkid command before this step. | * Edit /etc/fstab. <code># nano /etc/fstab</code><code>/dev/mapper/yes2 /media/crypt2 ext4 relatime 0 2</code>or<code>UUID=XXXXYYYYZZZZ /media/crypt2 ext4 relatime 0 2</code>Change the XXXXYYYYZZZZ with the output of blkid command before this step. | ||
| + | |||
| + | ==== Backup LUKS Header ==== | ||
| + | |||
| + | * Run this command for doing LUKS header backup. <code># cryptsetup luksHeaderBackup --header-backup-file mymachine.sdaX /dev/sdaX</code> | ||
| + | * Run this command for doing LUKS header restore. <code># cryptsetup luksHeaderRestore --header-backup-file mymachine.sdaX /dev/sdaX</code> | ||
| + | |||