Giter Club home page Giter Club logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Backup of LUKS header is easy, something like that (not much tested:-):

DEVICE=/dev/sdg
BACKUP_FILE=tst
SECTORS=$(cryptsetup luksDump $DEVICE | grep 'Payload offset' | sed 's/^.*\W//')

dd if=$DEVICE of=$BACKUP_FILE bs=512 count=$SECTORS

luksRestore is simple dd file back.

Maybe is internal luksBackup/Restore (to provided filespec) enough?

Original comment by [email protected] on 20 Jul 2009 at 7:16

  • Added labels: Type-Enhancement, Priority-Low
  • Removed labels: Type-Defect, Priority-Medium

from cryptsetup.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Hey,

I know that it's that simple to backup the luks header, but I guess that people 
would
be more satisfied with implemented luksBackup/luksRestore actions in cryptsetup.

Maybe the luksBackup action could prompt for confirmation after printing a big 
fat
warning that dumping the luks header to a filesystem is unsecure and that 
people need
to be really careful with the header backup.
(i.e. best to write it directly to a usb device, and if it's burned to 
cd/dvd/...
then at least /tmp should be encrypted)

In another bugreport in debian (bugs.debian.org/432150) we got a request for
something like a luksRepair function, which fixes broken luks headers (for sure
that's only possible if both the master key and at least one slot are still 
available).

greetings,
 jonas

PS: thanks for taking care of cryptsetup, i've the impression that you do a 
really
good job :-)

Original comment by [email protected] on 21 Jul 2009 at 10:25

from cryptsetup.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
I added luksHeaderBackup and luksHeaderRestore commands.
(if just stores header + keyslot are, so it is compatible with dd above)

Backup also wipes unused area between header and keyslot area, so 
backup->restore can
be used for basic repair for LUKS header including e.g. old swap signature.
(Alsready fixed problem, but old header need not-too-user-friendly hack with dd 
to
fix this.)

I added some warning to man page about possible security problems... If you have
better formulation, please send a patch:-)

LUKS1 will never support multiple headers on disk - it will need new header 
structure
(-> LUKS2 maybe) and proper handling of redundant metadata. (We solved similar
problems in lvm2 and maintaining multiple metadata areas on disk _properly_  is 
not
so easy as it seems...)

Original comment by [email protected] on 28 Sep 2009 at 7:04

  • Changed state: Fixed

from cryptsetup.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Mmmm, will be possible to convert LUKS1 to the future LUKS2? I mean without 
having to
move all the date, redone the dm-crpyt and dump the data back again?

Original comment by [email protected] on 6 Oct 2009 at 3:21

from cryptsetup.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
> will be possible to convert LUKS1 to the future LUKS2?

I have no answer to that question, LUKS2 do not exist yet:-) But if there is no
technical reason, there should be some automatic conversion, (but 
Backup/Restore is
intended for using the same format)

Convert can use backup->retrieve master key->format with LUKS 2 using the same
parameters + the same master key, this way no shuffle of data is needed.
Anyway, you cannot convert automatically all keyslots without entering all 
passphrases.

Original comment by [email protected] on 6 Oct 2009 at 3:45

from cryptsetup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.