Mount an ISO image locally on Linux

Brief writeup on mounting an ISO image locally without having to burn it to CD

advertisement

Here's a brief review on how to mount an ISO image locally to use it as if you had burned it to disk and mounted it. We'll use Freescale's latest QoriQ SDK as our example. We just downloaded QoriIQ-SDK-V1.5-SOURCE-20131219-yocto.iso to our ~/Downloads directory. We're using Ubuntu 12.04.

$ export PS1='\W $ '     # let's keep the prompt simple, just the current directory

~ $ sudo losetup /dev/loop0 ~/Downloads/QorIQ-SDK-V1.5-SOURCE-20131219-yocto.iso 

~ $ mkdir sdk

~ $ sudo mount /dev/loop0 ~/sdk
mount: block device /dev/loop0 is write-protected, mounting read-only

~ $ ls sdk
documents  EULA  install  packages_manifest.pdf  yocto.tar.gz

How simple!

Help us improve this article by adding your comment or question:

email addresses are neither displayed nor shared