Okay ! I post all my procedure if someone can resolve the problem but no way
for me, too much difficult and it's fu***ng my mind.
In shell :
>> sudo su
>> apt-get update
>> apt-get crypsetup
With Gparted :
- sdb1 1GB ext2 (/boot)
- sda1 650GB xfs (/)
Shell again :
>> modprobe xts
>> modprobe aes-x86_64
>> modprobe dm-crypt
>> cryptsetup -y --cipher aes-xts-plain64 --key-size 512 luksFormat /dev/sda1
>> cryptsetup luksOpen /dev/sda1 crypto_root
>> mkfs.xfs /dev/mapper/crypto_root
Launch Trisquel's installation from livecd 6.0.1
Manual partitioning :
/ : /dev/mapper/crypto_root
/boot : /dev/sdb1
bootloader : /dev/sda
Then, when installation ends, in a shell again :
>> mkdir /mnt/root
>> mount /dev/mapper/crypto_root /mnt/root
>> mount /dev/ /mnt/root/dev -o bind
>> chroot /mnt/root mount /proc
>> chroot /mnt/root mount /sys
>> chroot /mnt/root
echo "root UUID=$(blkid | grep /dev/sda1 | cut -c18-53) none luks" >>
/etc/crypttab
echo xts >> /etc/initramfs-tools/modules
echo aes-x86_64 >> /etc/initramfs-tools/modules
echo dm-crypt >> /etc/initramfs-tools/modules
>> apt-get update
>> apt-get install cryptsetup
>> mount /boot
>> update-initramfs -u
HERE THE ERROR : W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
So I write in shell :
>> apt-get install dmsetup mdadm (same message error : W: mdadm:
/etc/mdadm/mdadm.conf defines no arrays.)
>> apt-get update
>> apt-get install dmsetup mdadm
>> exit
>> umount /mnt/root/boot
>> umount /mnt/root/proc
>> umount /mnt/root/dev
>> umount /mnt/root/sys
(and didn't run this for swap like teodorescup says)
dd if=/dev/zero of=/1G.swap bs=10M count=102 && mkswap /1G.swap
echo "/1G.swap none swap sw 0 0" >> /etc/fstab
echo vm.swappiness=0 >> /etc/sysctl.conf
I joint the result of command >> cat /etc/mdadm/mdadm.conf
Please if someone knows where I made the error..
I will be in Debian since I can encrypt my hard disk on Trisquel (enterely
and not just /home...).
Thanks in advance !