Re: Need help with sync'ing dmsetup info to disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx
> http://www.saout.de/mailman/listinfo/dm-crypt
> 

-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@xxxxxxxxxxx 
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 
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux