here is a script that I use to check and repair the file system in a knoppix-data.aes :
losetup /dev/loop7 /mnt-system/KNOPPIX/knoppix-data.aes
cryptsetup --cipher aes --key-size 256 --hash ripemd160 create cryp2knop /dev/loop7
fsck.ext4 -y -v /dev/mapper/cryp2knop
sync
cryptsetup remove cryp2knop
losetup -d /dev/loop7
maybe you can use the cryptsetup in a loop similar to yours to use the password file.


Reply With Quote










