C
C
Chvalov2015-01-28 10:02:00
linux
Chvalov, 2015-01-28 10:02:00

How to get all information from under lvm+luks on kubuntu?

The following situation was a PC with two 320GB hard drives that worked in software RAID-1.
One of the hard drives had to be quickly formatted and sold, so I didn’t even have time to back up the information anywhere.
Now I can't boot from one screw, it takes a very long time to load and then BusyBox starts up.
I installed another 250GB HDD in parallel on my PC and installed kubuntu on it.
Now I needed information from an encrypted hard drive, but I don’t know how to get it there, since it was my first experience with LVM + LUKS + RAID1.
Who can tell me what to get one-there information without loss, since the information is very valuable to me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2015-01-28
@merryjane

And what was the access to LUKS? By password or key file?
In any case, in order to open an encrypted container, you need to know them, otherwise nothing.
The simplest scenario of how to get information is as follows:
Boot from another system, try to find a physical device, try to rescan lvm (pvscan, etc.), find a supposedly encrypted partition and try to open it via cryptsetup, and then mount it and try to copy the info.

V
Vyacheslav, 2015-01-28
@wisecoder

First, you can try to mount the disk.

mdadm --assemble /dev/mdN /dev/sdXY
mount /dev/mdN /mnt/mdN

Well, then the actions, depending on what was primary: luks over lvm or lvm over luks. Let's say we have luks over lvm, then we first initialize the volume group.
vgscan
vgchange -ay

Then, if desired, we look at what we got with the following commands.
pvdisplay
vgdisplay
lvdisplay

Well, decryption.
cryptsetup luksOpen <device> luks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question