title: Cannot delete device /dev/loop0
body: <p>I unsafely removed a USB device that was attached to loop0 with <code>losetup</code> and could not delete nor detach loop0 afterwards.</p>
  
  <p><code>losetup -a</code> shows <code>/dev/loop0: [0005]:145606719 (/dev/sdb1)</code></p>
  
  <p>When I remount the device to /dev/sdb1, <code>umount</code> it and try <code>losetup -d /dev/loop0</code>, I will still get the same error <code>loop: can't delete device /dev/loop0: Device or resource busy</code>. Is there a way to get rid of the loop device?</p>