Mount an ISO image in Linux
You’ve just downloaded an ISO file and don’t have any CD/DVD available to burn it? There’s no need to, in linux you can mount your image file just like if it was another device. Before you can mount the image you need a mount point, this example mounts the file myimage.iso on /mnt/myimage in just two steps:
0. On most systems only root can use the mount command so you should use the root account (e.g. use the su – command) or use sudo before any of the following commands
1. Create the mount point
$ mkdir -p /mnt/myimage
2. Use the mount command to mount the ISO image
$ mount -o loop myimage.iso /mnt/myimage
Now, if you open the /mnt/myimage directory you’ll see all the files inside the image.
There’s a third step: umounting the ISO image when you are done working with it
$ umount /mnt/myimage
0 comments
