> cryptsetup -c aes-cbc-essiv:sha256 -y -s 128 luksFormat /dev/md0
I get
WARNING!
========
This will overwrite data on /dev/md0 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Cannot format device /dev/md0 which is still in use.
Can someone tell me what I am missing?
Cheers,
Mathieu
Hello everyone,First of all thank you guys for the tremendous work you have made with Alt-F. Everything is clear and straightforward, the initial configuration was a piece of cake ;).I've created a raid1 in /dev/md0 with each of the 2 disks /dev/sda and /dev/sdb being ext4 formatted.
What I'd like now is to encrypt the device md0. I've installed the Alt-F package 'crypsetup'. If I go to Disk->Encryption I have 2 issues here. First I cannot select md0, only sda1 [0.5GB], sda2, sdb1 [0.5GB] or sdb2.
Second issue I need to use a password file, I'd rather use a passphrase.
I have tried to connect to my box through ssh but if I launch the encryption of /dev/md0> cryptsetup -c aes-cbc-essiv:sha256 -y -s 128 luksFormat /dev/md0
I get
WARNING!
========
This will overwrite data on /dev/md0 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Cannot format device /dev/md0 which is still in use.
No cryptsetup support found for partition type "crypt_LUKS" in "md1"
[root@hardos]# cryptsetup remove backup
Device backup is busy.
One more point for those interesting in encrypting their NAS you can find a nice tutorial at2 questions though, in /var/log/systemerror.log I have that message:
No cryptsetup support found for partition type "crypt_LUKS" in "md1"
Actually that is true, I have installed cryptsetup in md0
with is not encrypted, how could I used cryptsetup to decrypt md1 if I had installed it into md1?
Does this message can be safely ignored?
My last concern consist in unmounting the encrypted volume backup in /mnt. The umount command doesn't work, I obtain that message[root@hardos]# cryptsetup remove backup
Device backup is busy.