On 19/08/2019 14:59, Jean-Paul Calderone wrote: > Hello, > > I have a luks device on removable media that has somehow become stuck on my system. The physical media has been disconnected but the luks device continues to exist and I cannot remove it. > > cryptosetup close fails: > > $ sudo cryptsetup close luks-64ca6f08-82c9-4571-a976-f37a83aca3b1 > Device luks-64ca6f08-82c9-4571-a976-f37a83aca3b1 is still in use. > > > I don't understand what is still using the device. It is not mounted anywhere: > > $ mount | grep luks-64ca6f08-82c9-4571-a976-f37a83aca3b1 See output of lsblk - it can have mapped partitions or lvm over it, you need to deactivate it. Also check lsof output if some process is not stuck keeping something open there. Milan _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx https://www.saout.de/mailman/listinfo/dm-crypt