I have a system that has 1x SSD and 2x 4TB HDD working under software RAID1. (I'm currently upgrading from Linux Mint 20 to 22, another topic regarding that issue)
On my RAID1 I have LUKS encrypted filesystem, which is mounted under /storage
I'm trying to umount /storage by sudo umount /storage, but I receive an error umount: /storage: target is busy.
I tried also:
- stopping the mdadm first by
sudo mdadm --stop /dev/md0, but it returnsCannot get exclusive access to /dev/md0:Perhaps a running process, mounted filesystem or active volume group? - closing the encrypted volume by
sudo cryptsetup luksClose raidcrypt, and it returnsDevice raidcrypt is still in use. - stopping my docker container, and removing it from starting automatically during boot (
lsof | grep /storagenoted that docker was running before I stopped it, but stopping it doesn't help with my initial problem) - stopped my pCloud device from mounting during boot
- removed my swap from /etc/fstab which was mounted in as 8GB swapfile under /storage/swap/.swapfile
I'm bit worried to use umount -l here. I'm wondering if I should just remove /dev/mapper/raidcrypt /storage ext4 defaults 0 2 from my /etc/fstab.