From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zr5ToaQB413L for ; Tue, 12 Jul 2011 17:36:54 +0200 (CEST) Received: from johannburkard.de (lvps178-77-96-155.dedicated.hosteurope.de [178.77.96.155]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 12 Jul 2011 17:36:54 +0200 (CEST) Received: from booklet (p5B081AA6.dip0.t-ipconnect.de [91.8.26.166]) by johannburkard.de (Postfix) with ESMTPA id 8A98818890013 for ; Tue, 12 Jul 2011 17:30:33 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Date: Tue, 12 Jul 2011 17:30:38 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Johann Burkard" Message-ID: Subject: [dm-crypt] Need help with sync'ing dmsetup info to disk List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de 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