Veracrypt

Référence: Ubuntu 20.04.3

Installation de Veracrypt et ces scripts

(https://itectec.com/ubuntu/ubuntu-can-veracrypt-use-persistent-mount-points-on-linux/)

sudo dpkg -i veracrypt-console-1.24-Update7-Ubuntu-20.04-amd64.deb
sudo mkdir /media/backup-nas1
sudo mkdir /media/backup-nas2

ls -l /dev/disk/by-id/

lrwxrwxrwx 1 root root 9 Nov 18 16:23 scsi-SATA_ST4000VN000-1H41_Z3013YMY -> ../../sdg
lrwxrwxrwx 1 root root 9 Nov 18 16:26 scsi-SATA_ST4000VN000-1H41_Z305703P -> ../../sdd

On peut utiliser aussi
ls -l /dev/disk/by-path/

nano veracrypt-mount-backup-nas1.sh

veracrypt --mount --protect-hidden=no /dev/disk/by-id/scsi-SATA_ST4000VN000-1H41_Z3013YMY /media/backup-nas1/ --verbose

 

nano veracrypt-mount-backup-nas2.sh

veracrypt --mount --protect-hidden=no /dev/disk/by-id/scsi-SATA_ST4000VN000-1H41_Z305703P /media/backup-nas2/ --verbose

 

sudo sh veracrypt-mount-backup-nas1.sh
sudo sh veracrypt-mount-backup-nas2.sh