How To Mount A Disk Image On Android With Terminal?

15,571

You could use the following command on terminal :

sudo mount -t iso9660 -o loop "<path>/image.iso" /mnt

Your ISO image will be accessible under /mnt

Additionally if it's img file :

mkdir ~/img

mount -t udf filename.img ~/img -o loop
Share:
15,571

Related videos on Youtube

Jaïr Paalman
Author by

Jaïr Paalman

Just someone how could use a little help with coding sometimes.

Updated on September 18, 2022

Comments

  • Jaïr Paalman
    Jaïr Paalman over 1 year

    I'm trying to mount a disk image that I've made on my android with terminal and busybox. This is how I made the image:

    dd if=/dev/zero of=/sdcard/disk.img bs=4k count=131072    
    
    mkfs.vfat -v /sdcard/disk.img
    

    And now I'm trying to mount it. I've read a lot about loopback devices but I can't figure it out. Does anyone know how to mount a disk image in android using terminal?

  • Jaïr Paalman
    Jaïr Paalman almost 9 years
    It's not an iso.
  • BlueBerry - Vignesh4303
    BlueBerry - Vignesh4303 almost 9 years
    @JaïrPaalman updated answer
  • Jaïr Paalman
    Jaïr Paalman almost 9 years
    I'm sorry to bother you again, but I get the error ioctl LOOP_SET_FD failed: Device or resource busy. Also, shouldn't I use vfat as type since I formatted the file with mkfs.vfat and is that enough since I didn't use fdisk to partition anything.
  • BlueBerry - Vignesh4303
    BlueBerry - Vignesh4303 almost 9 years
  • user2284570
    user2284570 almost 4 years
    @BlueBerry-Vignesh4303 and if the raw disk image contains partitions? How do I create the devices required for mapping them?