meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:fs:btrfs:encrypted [2025/03/23 10:23] niziaklinux:fs:btrfs:encrypted [2025/03/23 15:50] (current) niziak
Line 7: Line 7:
 blkid /dev/nvme0n1p4 blkid /dev/nvme0n1p4
 </code> </code>
 +
 +Consider [[https://wiki.niziak.spox.org/linux:backup:luks|luks header backup]]
  
 <file ini /etc/crypttab> <file ini /etc/crypttab>
Line 13: Line 15:
  
 <code bash> <code bash>
-cryptsetup luksDump /dev/nvme0n1p4 +cryptdisk_start home2
-cryptsetup luksOpen --allow-discards UUID=aad5d877-2bc5-460b-8441-32b89c0462e6 home2+
 dmsetup table dmsetup table
  
Line 24: Line 25:
 cd .. cd ..
 umount /home2 umount /home2
 +cryptdisks_stop home2
 </code> </code>
  
Line 33: Line 35:
 <code bash> <code bash>
 systemctl daemon-reload systemctl daemon-reload
-cryptsetup luksClose home2 
  
-</code>+cryptdisks_start home2 
 +mount /home2 
 +... 
 +umount /home2 
 +cryptdisks_stop home2
  
 update-initramfs -u -k all update-initramfs -u -k all
 +</code>