Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36463

help mount encrypted partition raid member

$
0
0
I'm hoping someone will be able to help me get my root vol mounted again using a FC live / install disk.

In moving to a new system I mistakenly turned off my old workstation (FC14) ... bad idea disks were up quite a while.

My system is configured with two ~400 G disks each disk was split into 3 partitions boot, swap, root
each of boot and root were made into raid1 sets.

I can boot the FC14 live CD and it sees my second hard disk (i've removed the disk on controller 0 - its the hosed disk)

Code:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008e141

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          63    2104514    1052226  fd  Linux raid autodetect
/dev/sda2        2104515    4209029    1052257+  82  Linux swap / Solaris
/dev/sda3        4209030  625137344  310464157+  fd  Linux raid autodetect

This is promising .. I then follow some other guides on the forums and try to use cryptsetup as follows

Code:

cryptsetup luksOpen /dev/sda3 crypt1
This results in the following

Code:

Enter passphrase for /dev/sda3:
[  301.1037931] device-mapper: table: 253:2: crypt: Device lookup failed
device-mapper: reload ioctl failed: Invalid argument
Failed to setup dm-crypt key mapping for device /dev/sda3.
Check that kernel supports aes-xts-plain64 cipher (check syslog for more info).
Faild to read from key storage.

I have also verified that the LUKS partion info should be valid

Code:

hexdump -C -n 512 /dev/sda3
00000000  4c 55 4b 53 ba be 00 01  61 65 73 00 00 00 00 00  |LUKS....aes.....|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  78 74 73 2d 70 6c 61 69  |........xts-plai|
00000030  6e 36 34 00 00 00 00 00  00 00 00 00 00 00 00 00  |n64.............|
00000040  00 00 00 00 00 00 00 00  73 68 61 31 00 00 00 00  |........sha1....|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  00 00 0f c8 00 00 00 40  |...............@|

I can mount the /dev/sda1 partition just fine .. and I have pulled off the grub.conf file shown below

Code:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd1,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/luks-f979edfb-e646-48ae-80b4-89025401f001
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.35.10-74.fc14.x86_64)
        root (hd1,0)
        kernel /vmlinuz-2.6.35.10-74.fc14.x86_64 ro root=/dev/mapper/luks-f979edfb-e646-48ae-80b4-89025401f001 rd_LUKS_UUID=luks-f979edfb-e646-48ae-80b4-89025401f001 rd_MD_UUID=616be449:3b9b1579:4cb029bf:fce41697 rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb radeon.modeset=0 nomodeset
        initrd /initramfs-2.6.35.10-74.fc14.x86_64.img
title Fedora (2.6.35.6-45.fc14.x86_64)
        root (hd1,0)
        kernel /vmlinuz-2.6.35.6-45.fc14.x86_64 ro root=/dev/mapper/luks-f979edfb-e646-48ae-80b4-89025401f001 rd_LUKS_UUID=luks-f979edfb-e646-48ae-80b4-89025401f001 rd_MD_UUID=616be449:3b9b1579:4cb029bf:fce41697 rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
        initrd /initramfs-2.6.35.6-45.fc14.x86_64.img

I have also tried using an ubuntu live disk .. others had good luck with that.
When I tried basically the same sequence I got a password key not found error from the cryptsetup step.

I'm hoping someone out there will be able to help
Other options I've thought of are trying to get grub to boot this disk

thanks .. kpf

Viewing all articles
Browse latest Browse all 36463

Latest Images

Trending Articles



Latest Images