Unmounting is like unplugging the device (a hdd, for example).
You need to plug it in again.
In this case that means you need to find the file again and open/mount it.
After you unmount it, it is just a simple random file - why would it appear as a drive to mount?
Never mind the image file’s content. It’s just an example.
My question is that I cannot mount an image without Dolphin. sudo mount <img> <mount point> fails with exit code 32. I have to “plug” it in Dolphin at first. Is it a normal operation or a bug of Dolphin?
Your mount command may be syntactically incorrect - it can only work in certain cases: sudo mount a.img mp
I get a different error message: mount: mp: mount point does not exist.
Give it the path to the directory where you want to mount it.
If I create the directory mp and execute the command from the parent directory - it works. mkdir mp sudo mount a.img mp
in general: sudo mount a.img /path_to_mountpoint
It will still disappear from “Devices” in Dolphin, once you unmount it.
Kernel 6.8 seems to have all kinds of strange issues - with snaps, for instance - which do use loop devices as well
Perhaps switch to a different one? (LTS)
The dmesg is loop0: detected capacity change from 0 to ...
Seems it only fails on my PC, and has nothing to do with Dolphin. I’ll try reproducing it on another PC (or switch to another kernel version as you adviced) and figure out error message.
Thanks for your reply.