All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Recover a LUKS partition
@ 2010-05-24 15:45 fred smith
  2010-05-27 12:46 ` [dm-crypt] Fwd: " fred smith
  0 siblings, 1 reply; 7+ messages in thread
From: fred smith @ 2010-05-24 15:45 UTC (permalink / raw)
  To: dm-crypt

Hi,

I rebooted my server for the first time in ages, and now I can not
mount a LUKS partition :-(

The 'cryptsetup LuksIs /dev/sdc1' returns that the partition is not
encrypted, so it is not recognising /dev/sdc2 as a LUKS partition.
Nothing has changed except a reboot and the standard Centos updates.

While I wait for 'testdisk' to finish (the drive is 1TB):

strace cryptsetup luksDump /dev/sdc1
execve("/sbin/cryptsetup", ["cryptsetup", "luksDump", "/dev/sdc1"],
[/* 21 vars */]) = 0
uname({sys="Linux", node="bob", ...})   = 0
brk(0)                                  = 0x1ea36000
brk(0x1ea36fa0)                         = 0x1ea36fa0
arch_prctl(ARCH_SET_FS, 0x1ea368d0)     = 0
brk(0x1ea57fa0)                         = 0x1ea57fa0
brk(0x1ea58000)                         = 0x1ea58000
access("/etc/selinux/", F_OK)           = 0
open("/etc/selinux/config", O_RDONLY)   = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=511, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b3b7c08f000
read(3, "# This file controls the state o"..., 4096) = 511
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b3b7c08f000, 4096)            = 0
open("/proc/mounts", O_RDONLY)          = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b3b7c090000
read(3, "rootfs / rootfs rw 0 0\n/dev/root"..., 4096) = 319
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b3b7c090000, 4096)            = 0
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=56467200, ...}) = 0
mmap(NULL, 56467200, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b3b7c091000
close(3)                                = 0
open("/dev/sdc1", O_RDONLY|O_SYNC|O_DIRECT) = 3
ioctl(3, BLKSSZGET, 0x7fffcb0480c4)     = 0
read(3, "\353X\220BSD  4.4\0\2\1 \0\2\0\0\0\0\360\0\0
\0\20\0\0\0\0\0"..., 512) = 512
read(3, "RRaA\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
512) = 512
write(2, "/dev/sdc1 is not a LUKS partitio"..., 34/dev/sdc1 is not a
LUKS partition
) = 34
close(3)                                = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b3b7f66b000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2528
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b3b7f66b000, 4096)            = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/cryptsetup-luks.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/cryptsetup-luks.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/cryptsetup-luks.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/cryptsetup-luks.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/cryptsetup-luks.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/cryptsetup-luks.mo", O_RDONLY)
= -1 ENOENT (No such file or directory)
write(2, "Command failed", 14Command failed)          = 14
write(2, ".", 1.)                        = 1
exit_group(-22)                         = ?

Any help or suggestions greatfully received!
Thanks

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

end of thread, other threads:[~2010-05-27 22:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-24 15:45 [dm-crypt] Recover a LUKS partition fred smith
2010-05-27 12:46 ` [dm-crypt] Fwd: " fred smith
2010-05-27 17:13   ` Uwe Menges
2010-05-27 17:54     ` fred smith
2010-05-27 19:13     ` fred smith
2010-05-27 17:53   ` orinoco
2010-05-27 22:08     ` Arno Wagner

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.