Re: Howto mount a Debian disk (LVM, dm-crypt)?
On Friday 25 April 2008 20:27, Hans Martin wrote:
> Hi,
>
> I installed an etch system the usual d-i way (using the complete disk,
> one partition, LVM, dm-crypted), but now I have to mount this disk on
> the same computer which now has a new (bigger) disk. I have an IDE/USB
> adaptor for this, but of course the easy way (mount /dev/sda1 /mnt or
> similar) does not work.
>
> Interestingly, when I connect the disk to my computer, I get a
> filemanager window which shows me the initrds and kernels and I get a
> passphrase prompt (is it gnome-mount?). I enter my passphrase, but
> only the init stuff is mounted, not the crypted part of the disk.
>
> Many thanks in expectation!
You can manually start up the encrypted virtual device using
"cryptsetup luksOpen <device> <name>", where <device> is the
base device, /dev/sd<x>, and <name> is the virtual device you
want to create.
Once the decrypted device is set up, you can then do
"mount /dev/mapper/<name> <mountpt>", where <name> is the same
name as the foregoing command, and <mountpt> is the mount point
where you want to put it.
It's also possible that, after the luksOpen step, the file manager
will pop up with the new device, I'm not sure.
-- A.
--
Andrew Reid / reidac@bellatlantic.net
Reply to: