國恥巴話VeraCrypt必須係熄機前先dismount(Linux/MacOS),否則會有個error message ("not cleanly dismounted")
啱啱試過,撳"yes"冇造成資料損失
呢個script可以自動dismount VeraCrypt
Create the file
/etc/init.d/unmount-veracrypt-volumes.sh
and make this its content:
#!/bin/sh
veracrypt -d -f
sleep 3
Then execute these commands:
sudo chown root /etc/init.d/unmount-veracrypt-volumes.sh
sudo chmod 751 /etc/init.d/unmount-veracrypt-volumes.sh
sudo ln -s /etc/init.d/unmount-veracrypt-volumes.sh /etc/rc0.d/K00-unmount-veracrypt-volumes.sh
sudo ln -s /etc/init.d/unmount-veracrypt-volumes.sh /etc/rc6.d/K00-unmount-veracrypt-volumes.sh