I have an external disk connected via USB that was accidentally disconnected uncleanly. Now lsing the directory in which it was mounted gives Input/output error. umounting the directory simply hangs. dmesg just contains:
[3360010.363235] usb 2-1.1: USB disconnect, device number 3
How do I resolve this (short of rebooting), i.e. how do I clean up kernel state upon unclean disconnect of an external storage device?
-fand-lhanging infinitely. – Hubro Sep 28 '16 at 08:39strace umount -l /mnt/foo/bar, I get no output, i.e.umountwasn't even ran. It turned out, by mistake I wrote name of a directory that is inside the problematic mount point. Like, mount point was/mnt/foo, and I wroteumount -l /mnt/foo/bar. As result shell was trying to enter the directory (to check if I typed the path correctly) and of course was getting frozen. – Hi-Angel Jul 07 '20 at 12:45