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 O14VTEiTJWlf for ; Wed, 13 Jul 2011 14:51:21 +0200 (CEST) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 13 Jul 2011 14:51:20 +0200 (CEST) Received: from gatewagner.dyndns.org (84-74-166-21.dclient.hispeed.ch [84.74.166.21]) by v4.tansi.org (Postfix) with ESMTPA id 7937D205EE8 for ; Wed, 13 Jul 2011 14:51:20 +0200 (CEST) Date: Wed, 13 Jul 2011 14:51:19 +0200 From: Arno Wagner Message-ID: <20110713125119.GA24426@tansi.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [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 The first question would be: What did you change? Also, tbis liiks like a problem with dmsetup, not cryptsetup. More info needed: - What Distribution? - What configuration? - What did you do immediately before ot borke? Nay updated? Arno On Tue, Jul 12, 2011 at 05:30:38PM +0200, Johann Burkard wrote: > 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 > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > -- Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier