All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] luks partition table altered by linux-swap
@ 2009-09-28 11:09 anton ivanov
  2009-09-28 14:28 ` Heinz Diehl
  0 siblings, 1 reply; 11+ messages in thread
From: anton ivanov @ 2009-09-28 11:09 UTC (permalink / raw)
  To: dm-crypt

Hello,

we have very important server running CentOS 5.3 with incredible
terabytes of valuable data stored in luks partition. Server was just
ok, but one hdd died in RAID-5, so I had to reboot, and didn't mention
this line in fstab:

LABEL=SWAP-sdc1         swap                    swap    defaults        0 0

/dev/sdc1 is our encrypted drive.

after reboot 2gb of swap were added to /dev/sdc1

Sep 25 09:22:54 backup kernel: Adding 2097144k swap on /dev/sdc1.
Priority:-1 extents:1 across:2097144k

After removing swap from this drive I am totally unable to luksOpen
partition, though I know password is 100% correct.

cryptsetup luksOpen /dev/sdc1 crypt2
Enter LUKS passphrase:
Enter LUKS passphrase:
Enter LUKS passphrase:
Command failed: No key available with this passphrase.

LUKS header is at the beginning of drive.

cryptsetup isLuks /dev/sdc1 gives no error - so drive is luks
encrypted and recognized as one, but still cannot be opened.

cryptsetup luksDump /dev/sdc1

LUKS header information for /dev/sdc1

Version:        1
Cipher name:    aes
Cipher mode:    cbc-essiv:sha256
Hash spec:      sha1
Payload offset: 1032
MK bits:        128
MK digest:      e0 0b 50 a0 00 42 ae 4a cd 71 cc ff 4b 8a b7 01 88 72 f7 23
MK salt:        19 d5 c1 d6 94 5c 8a ed c3 b4 70 3b a2 e2 a7 55
                96 1d b2 e9 fd 06 59 f3 0e cd 42 a6 dd de cb ab
MK iterations:  10
UUID:           9aafb98c-e64f-4837-aeb8-daafe401ff6f

Key Slot 0: ENABLED
        Iterations:             167170
        Salt:                   91 cc f7 c3 65 03 1c 3a 78 fc d4 80 82 23 25 b4
                                eb 99 fc 2b e6 3f 4b b2 bd cb 47 3a 00 08 17 91
        Key material offset:    8
        AF stripes:             4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED


But i.e parted shows this:

GNU Parted 1.8.1
Using /dev/sdc1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print

Model: Unknown (unknown)
Disk /dev/sdc1: 5990GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start   End     Size    File system  Flags
 1      0.00kB  5990GB  5990GB  linux-swap


linux-swap as fs and partition table now changed from gpt to loop.
Anyone knows how to fix this and remove this swap partition and fs
from this partition?

Sorry for my clumsy English, hope you got the main idea of the problem.


-- 
ai.

http://biwwy.com/
last.fm: littlewizard

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-09-29  8:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 11:09 [dm-crypt] luks partition table altered by linux-swap anton ivanov
2009-09-28 14:28 ` Heinz Diehl
2009-09-28 14:29   ` anton ivanov
2009-09-28 14:48     ` Jonas Meurer
2009-09-28 14:56       ` anton ivanov
2009-09-29  8:27         ` Jonas Meurer
2009-09-29  8:31           ` anton ivanov
2009-09-28 15:03       ` Milan Broz
2009-09-28 16:33         ` anton ivanov
2009-09-28 17:44           ` anton ivanov
2009-09-29  8:01             ` Jonas Meurer

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.