Android - How to find out if my Device's Kernel has Loop Device Support

You can verify by checking /proc/config.gz and search through it looking for the configure option - CONFIG_BLK_DEV_LOOP=y.

To do that you need to do it this way:

cp /proc/config.gz /sdcard/kernel_config.gz

and

adb pull /sdcard/kernel_config.gz

Unzip the kernel_config.gz and open it up in a notepad or text editor and search it.

If its either # CONFIG_BLK_DEV_LOOP is not set or CONFIG_BLK_DEV_LOOP=n all bets are off.


You can use the following command at the terminal:

export | grep LOOP_MOUNTPOINT

If there is a LOOP_MOUNPOINT, probably you can mount loop devices.

UPDATED

HOW TO TEST?

Download a freedos image (http://www.freedos.org/) 40MB ISO.

Make a loop device association:

losetup /dev/block/loop4 fd11src.iso 

Mount a iso device

mkdir freedos_img
mount -t iso9660 -o ro /dev/block/loop4 freedos_img

And there is this the mounted iso at freedos_img

Tags:

Mount

Kernel