public inbox for cryptsetup@lists.linux.dev
 help / color / mirror / Atom feed
* Problem after detaching the header
@ 2023-06-29 19:17 Darek Hisc
  2023-06-30  2:50 ` Arno Wagner
  2023-07-01  7:50 ` Milan Broz
  0 siblings, 2 replies; 8+ messages in thread
From: Darek Hisc @ 2023-06-29 19:17 UTC (permalink / raw)
  To: cryptsetup

Hi

I am trying to move my current included header from sda2 to a separate raw (no file system) partition of device sdb1, but after removing the original header the system does not start and stops at the initramfs console.

OS: LMDE 5 (Linux Mint Debian Edition = de facto Debian 11)
Standard LVM installation on LUKS2

I did the following steps:
1. cryptsetup luksHeaderBackup /dev/sda2 --header-backup-file /header.img
2. dd if=/header.img of=/dev/sdb1
3. option luks,discard,tries=3,header=/dev/sdb1 > /etc/crypttab
4. update-initramfs -u -k all
5. cryptsetup luksErase /dev/sda2

Up to this point, everything works fine and the system boots up properly
When, according to the instructions in the https://gitlab.com/cryptsetup/cryptsetup/-/blob/main/FAQ.md I do:
6. cryptsetup luksDump /dev/sdb1 > Data segments: offfset: 16777216 bytes
7. dd bs=512 count=32768 if=/dev/zero of=/dev/sda2
the system no longer starts.

Have I screwed something up or am I missing a step?
Please help!

Darek



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-04 16:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-29 19:17 Problem after detaching the header Darek Hisc
2023-06-30  2:50 ` Arno Wagner
2023-06-30  9:04   ` Darek Hisc
2023-06-30 10:54     ` Arno Wagner
2023-07-01  7:50 ` Milan Broz
2023-07-01 17:06   ` Darek Hisc
2023-07-01 21:00     ` Milan Broz
2023-07-04 16:58       ` Darek Hisc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox