All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Johann Burkard" <johann@johannburkard.de>
To: dm-crypt@saout.de
Subject: [dm-crypt] Need help with sync'ing dmsetup info to disk
Date: Tue, 12 Jul 2011 17:30:38 +0200	[thread overview]
Message-ID: <op.vyiipcz85ef8le@booklet> (raw)

Hello,

I have a big problem with one of my machines: Upon booting, there are no  
entries in /dev/mapper and the system doesn't start. It looks like this:

ls -l /dev/mapper
crw------- 1 10, 59 control

Fortunately, I was able to read the dmsetup tables from a backup of the  
disk. They look like this:

sda2_crypt: 0 234241709 crypt twofish-cbc-essiv:sha256  
0000000000000000000000000000000000000000000000000000000000000000 0 8:2 2056
data-drive: 0 216662016 linear 252:0 17572224
data-swap: 0 17571840 linear 252:0 384

Now, I tried a Ubuntu live CD to restore them. I edited the table  
definitions to point to /dev/sda2 (which is the crypto partition) and  
called dmsetup create sda2_crypt ..., dmsetup create data-drive ...,  
dmsetup create data-swap ...

However, once I reboot into the original OS on the disk, the entries are  
gone again.

When I try to create the entries with dmsetup in the initrd, I get this  
error:

(initramfs) dmsetup create sda2_crypt --table '0 1234....'
device-mapper: reload ioctl failed: Invalid argument
Command failed

How can I save the dmsetup tables to disk from the Ubuntu live CD?

Thanks for any help.

Johann

             reply	other threads:[~2011-07-12 15:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-12 15:30 Johann Burkard [this message]
2011-07-13 12:51 ` [dm-crypt] Need help with sync'ing dmsetup info to disk Arno Wagner
2011-07-13 19:18   ` Johann Burkard
2011-07-14  3:36     ` Bryan Kadzban
2011-07-14 19:13       ` Johann Burkard
2011-07-15  3:13         ` Bryan Kadzban
2011-07-15  5:57           ` Johann Burkard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.vyiipcz85ef8le@booklet \
    --to=johann@johannburkard.de \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.