Advertisement
Tritonio

Force unmount stuck LUKS encrypted disk on Linux Mint

Mar 1st, 2020 (edited)
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. If Linux Mint refuses to mount an encrypted external drive that was abruptly disconnected and gives you a message like "file already exists" or something like that, instead of rebooting the system you can try unmounting it form the command line:
  2.  
  3. sudo udisksctl unmount -b /dev/mapper/luks-xxx-xxx-xxx-xxx-xxx
  4.  
  5. or
  6.  
  7. sudo dmsetup -f remove /dev/mapper/luks-xxx-xxx-xxx-xxx-xxx
  8.  
  9. Just type until luks and then press tab twice to see what's the id in your case.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement