Re: dm-crypt with raid

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

 



I solved the problem by doing:

rm /dev/md1
mknod /dev/md1 b 9 1
and then
cryptsetup-luks luksOpen

I don't know why I have to do this, but it works..

On 5/12/06, Benjamin Schieder <blindcoder@xxxxxxxxxxxxxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Benjamin Dickgiesser wrote:
> Hi,
>
> I have a raid 0 consisting out of two partitions setup to /dev/md1.
> Now I want to encrypt to encrypt this raid partition. How would I go
> about that?
>
> Would I simply do:
>
> cryptsetup -c aes-cbc-essiv:sha256 -y -s 256 luksFormat /dev/md1
> cryptsetup luksOpen /dev/md1 md1
> mkfs.ext3 /dev/mapper/md1
> mount /dev/mapper/md1 /mnt
>
> I tried something similar (following
> http://www.saout.de/tikiwiki/tiki-index.php?page=EncryptedDeviceUsingLUKS
> ) just now and everything worked fine until I unmounted /dev/md1. When
> I wanted to mount the partition again I got the message: special
> device /dev/md1 does not exist.
>
> So I am not sure what went wrong.

You missed part of the path.
As you already did the right way earlier, the path is /dev/mapper/md1, not /dev/md1.

Greetings,
        Benjamin

- --
 _  _     _   _            _
| \| |___| |_| |_  __ _ __| |__
| .` / -_)  _| ' \/ _` / _| / /
|_|\_\___|\__|_||_\__,_\__|_\_\
| |  (_)_ _ _  ___ __
| |__| | ' \ || \ \ /
|____|_|_||_\_,_/_\_\
Play Nethack anywhere with an x86 computer:
        http://www.crash-override.net/?nethacklinux
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFEZKUWr0OTeImXvg8RAoIrAJ480YeFe9qtcI/vRdSZiqgqSpLbNACfeH1B
Dm726BPD3T58KVKopTRoyDw=
=Fi1M
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
 - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx



---------------------------------------------------------------------
 - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx



[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