Linux distributions for embedded ARM board like Raspberry Pi or iMX233-OLinuXino-MAXI are available as prebuilt SD card images supplied as raw .img files. For example, .img files for ArchLinux are available for Raspberry Pi and OLinuXino . These files can be written to SD cards using the program dd on Linux or Win32 Disk Imager on Windows. These files contain the image of the SD card as a whole including multiple partitions - bootloader/bootlets, rootfs, swap etc. At some point of time we might find ourselves wanting to access the files from the rootfs contained within one of the partition of these image files. Accessing the kernel headers folder for cross-compiling kernel modules for these boards can be one such situation. And one does not necessarily need to write the image to an SD card and mount it back on ones desktop to achieve this. Major Hayden has straightforward instructions here on how to mount .img files which contain multiple partitions. So when I found ...