Recover a LUKS partition

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

 



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
_______________________________________________
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