[dm-crypt] Need help with sync'ing dmsetup info to disk

Bryan Kadzban cryptsetup at kdzbn.homelinux.net
Thu Jul 14 05:36:24 CEST 2011

Johann Burkard wrote:
> Do you know how I can save the dmsetup tables to disk?

That's not how it works.  dmsetup does not save tables to disk.

cryptsetup reads the LUKS header off disk (if you use LUKS).  See the
FAQ for the layout of this header (and where the key slots go).  But if
you use non-luks, there is no metadata saved anywhere; the initrd will
have to reconstruct everything from its configuration (and possibly keys
read from the user).

More information about the dm-crypt mailing list