Wednesday 2 February 2011

How to Mount and Access Files in an ISO image on Linux

Like anything else on Linux, it’s easiest to do things from the command line, and when we’re dealing with servers that’s probably the only thing we easily have access to. Luckily it’s trivial to mount an ISO image in Linux.
Open up a terminal window and type in the following commands, assuming that you are in the same directory as the ISO image, and adjusting the paths as needed:
sudo mkdir /media/iso

sudo modprobe loop

sudo mount filename.iso /media/iso -t iso9660 -o loop
You should be able to navigate to the /media/iso folder and see the contents of the ISO image. If you want to unmount the iso, use the following command:
sudo umount /media/iso
That’s all there is to it. Easy, right?

0 comments:

Post a Comment