# losetup /dev/loop0 /tmp/tmpuUwgbn # losetup -a # losetup -f /dev/loop1 # losetup /dev/loop0 /dev/loop0: :33654 (/tmp/tmpuUwgbn) # ls -la /tmp/tmpuUwgbn -rw------- 1 root root 0 2011-08-24 15:49 /tmp/tmpuUwgbn # losetup -a #
losetup -a list
/dev/loop0 when it clearly knows about it? The
man page doesn't give any hints, and google doesn't help.
Note: I found the answer by trial and error while writing this question, but I'm posting it anyway in the hopes it might help someone. See my answer below.