Tag Archives: cryptsetup

Rebuilding a RAID1 mirror with Truecrypt container


Rebuilding a RAID1 mirror with a Truecrypt container on it may require some additional steps. I guess that since no filesystem is visible on the disk, the RAID array is having trouble determining which disk to rebuild from. If your neighbourhood have had a blackout, the filesystem in the container is probably dirty anyway. This is how I take care of the matter on my external ICY Box IB-RD4320 USB chassi.

The manual for ICY Box IB-RD4320 USB chassi have this table regarding the meaning of the LED lamps on the unit:

Posted in Linux | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

Truecrypt woes


Solving disk problems is a little more complicated when devices are encrypted. You need to keep in mind that a filesystem on an encrypted device can’t be seen unless the device is decrypted. Here is a few problems I’ve come in touch with, together with solutions that have worked for me.

Error unmounting a volume

Error message which may occur when trying to unmount truecrypt volume:

device-mapper: create ioctl failed: Device or resource busy


Trying to remove the volume with cryptsetup gives a similar message:

sudo cryptsetup remove /dev/mapper/truecrypt1
Device /dev/mapper/truecrypt1 is busy.


As the error messages implies, something is keeping the volume open. If lsof doesn’t show anything, it might be an active NFS export keeping it busy.

Posted in Linux | Tagged , , , , , , , | Leave a comment