Today I noticed that some time in the past I mounted an ISO, but forgot which one it was:

/dev/loop0 on /export/production/os/iso/centos/mount type iso9660 (rw)

How can I find the exact file name that is mounted on /dev/loop0?

2 Answers 2

losetup /dev/loop0

produces something like:

/dev/loop0: [000f]:8070558 (/path/to/file.iso)

losetup comes with the util-linux package.


losetup -a will probably tell you what you need

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.