I use a lot of loop filesystems (/dev/loopN) with embedded devices, and something that's always bothered me is this: once a loop file has been mounted with a loop device, how do I get the name of the original file?
I tried this:
... but on my system, it outputs a truncated path:
/dev/loop0: :19358161 (/home/lex/Projects/Backup/media/card/*)
I don't know what the '*' is doing there.
I found the answer when looking in /sys: