mounting external encrypted (LUKS-debian8) hard drive ??

148 views
Skip to first unread message

ThierryIT

unread,
Jan 28, 2017, 4:45:04 AM1/28/17
to qubes-users
Hi,

I have installed with success Qubes 3.2 on my Lenovo W520.
I ma bit by bit playing with it.
I would like to have access to my old encrypted hard drive, still do remember the passphrase :)
I have build a new vm, let's call it "vm-test" I have attached the block device to it, seems to be good ... But after ? How to mount it ??

Thx

Andrew David Wong

unread,
Jan 28, 2017, 5:10:26 AM1/28/17
to ThierryIT, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
It's probably mounted as /dev/xvdi (you can check with qvm-block).
So, in vm-test, try something like:

$ sudo cryptsetup open /dev/xvdi hdd
<enter passphrase>
$ sudo mount /dev/mapper/hdd /mnt/removable
$ cd /mnt/removable
$ ls

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYjG4DAAoJENtN07w5UDAwQO0QAMPg3I4YoMMxMRcJSt6ds8/i
qdTXOg5YrG9dglctSfK9FWdr066wdar/8k7R9DIyX/ndg8p9sfPXq8Gdlzw0KiEH
G6kLAXVZN4qQ4fQYnMhZE6AhUlj6ZjsPA6+BUr4NyzoCyd0z0wfhyvm2ulR8VoUA
/FiZOFYWQ2oFnJed4LUV3KgaT9TOo969zbZ306KsFUV6CqZw38My4B8qfqr0/qC4
RklCHG/D230AXAq9PtOY1wH/sCbNFR8wqnUoNIIT+qPxWtnXZFtcNZuqmiKiSDAB
WdlnJEJ0ktDRT99RhrIcnTDLBXel/e0l9Y6YtV+spVPhPdPMRcppeyQzboAtPTfw
UfA4wri5KuDROgJ5RpopkfyXyEJz7yWg8hQXyfqRKf+IDoIHxEyhYA8v0CDBjACT
3zu7SFn21ki9N94SV7wTL0ODQjVTNtrtlHB/jrs2/s0HVacxIxOm9DbuDdCAHNqO
OAj+NjSNa2jcXlF1/l24hsEAabBVMUrPhtPeaw7WoTxkADv1KM5lNUS4mcYhwsPg
BfLjtsTcaYKRQaxi26WcAzdem2kUhHG31RzSAEAuHXTC0S+aEJv3UgAf++Xhn/F2
nBgYV2hz5WlU6u5OdBLQppUXPEuwKhwp7Um5hUKHFN3+eYK9sPWbK2JpYc2i2lSs
Qc4E/xMl/TLaJd1IHMfX
=xkVz
-----END PGP SIGNATURE-----

ThierryIT

unread,
Jan 28, 2017, 5:43:57 AM1/28/17
to qubes-users, vmwa...@gmail.com
qvm-block command not found ... ??
I am right to do it from my vm-test ?

Thx

ThierryIT

unread,
Jan 28, 2017, 5:47:04 AM1/28/17
to qubes-users, vmwa...@gmail.com

My mistake.
I did it from "dom0"

dom0:sdb WD.....698G (attached to vm-test as 'xvdi')

ThierryIT

unread,
Jan 28, 2017, 5:54:07 AM1/28/17
to qubes-users, vmwa...@gmail.com


> My mistake.
> I did it from "dom0"
>
dom0:sdb WD.....698G (attached to vm-test as 'xvdi')
dom0:sdb5 WD....690G
dom0:sdb1 ...
dom0:sdb2
etc ....

If I try to mount xvdi as LUKS: It is not a valid LUKS
I do think that the right partition to mount should be "sdb5" ... How to mount "sdb5" ??

ThierryIT

unread,
Jan 28, 2017, 5:57:51 AM1/28/17
to qubes-users, vmwa...@gmail.com
Sorry for all this noise ....
I have mounted "xvdi5" with success.
But: unknown filesystem type: LVM2_member

Something to install on this vm ?

Thx

raah...@gmail.com

unread,
Jan 28, 2017, 10:58:44 AM1/28/17
to qubes-users, vmwa...@gmail.com
how did you encrypt the drive? I have an external encrypted drive i use. I simply open it with any file manager which prompts me for the encryption phrase. nautilus should work?

Thierry

unread,
Jan 29, 2017, 1:03:51 AM1/29/17
to raah...@gmail.com, qubes-users, vmwa...@gmail.com
Bonjour Raahelps,

Le samedi 28 janvier 2017 à 17:58:44, vous écriviez :
I have not tried with Nautilus, but this is working for me.

--
Cordialement,
Thierry e-mail : lena...@maelenn.org

Reply all
Reply to author
Forward
0 new messages