Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

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 have rooted my android phone and get a shell thr adb. I wanna mount a ROM image in android. But I always fail:

mount -o loop /sdcard/myimage.img /mnt
mount: can't setup loop device: No such file or directory

share|improve this question
up vote 5 down vote accepted

Try: mount -o loop /sdcard/myimage.img myimage. "myimage" is where you can view the contents afterward.

share|improve this answer

You would need to compile a custom kernel that is capable of mounting loop devices, or find a custom kernel for that device that already has that feature built-in.

After a bit of digging, I found this guide on my phone's support forum. It's a bit dated, but the information is still relevant. It shows how to boot a Debian .img file. Unfortunately, it doesn't really detail EXACTLY what's needed for loop support, just that loop support is needed. But it is definitely possible, as I've personally run this on my phone for a short amount of time.

share|improve this answer
I was able to use mount on my Galaxy S with a stock ROM ... – Matthew Read Jan 25 '11 at 21:40
Mounting, sure. Mounting on a stock ROM is not a problem. But mounting a loop device? Most of the stock kernels I've seen don't have loop device mounting enabled by default. – c0mp13371331337 Jan 25 '11 at 23:00
@c0mp13371331337 the problem I found in my Android 4.2.1 device was with the mount binary that came with stock ROM. It was simply not capable of mounting a loop device but busybox's mount does. – Firelord Dec 6 '15 at 10:29

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.