Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having issues mounting an image I created with the qemu-img program. Every time I attempt to invoke mount upon the subsequent file, it responds with failed to setup loop device: No such file or directory.

It does not matter which user I invoke the following commands under, it continuously fails (su - or not).

$ qemu-img create flash.img 512M
$ mkfs.ext2 -L "FLASH001" flash.img
$ mount -t ext2 -o loop,rw flash.img /mnt/dfs/

Is there anything that I am missing? I have a typical Arch Linux install with all of the above commands installed from the Arch Linux repositories.

share|improve this question
up vote 2 down vote accepted

Do you have the loop module loaded? Try lsmod | grep loop and/or ls /dev/loop*

if this doesn't show anything, perhaps you need to do modprobe loop

share|improve this answer
modprobe loop returns nothing, lsmod | grep loop returns nothing; am I missing a loop driver? Could you point me in the direction of a package that could supply these things? – JohnLettman Feb 17 '13 at 2:41
Aha! Apparently my kernel had updated without my knowledge, rendering any attempt to use the loop module futile. I appreciate your assistance with this. – JohnLettman Feb 17 '13 at 3:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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