How to: Mount an ISO image under Linux
You can mount ISO images via the loop device. It is possible to specify transfer functions (for encryption/decryption or other purposes) using loop device.
But how to mount ISO image under Linux? You need to use mount command as follows:
Procedure to mount ISO images under Linux
1) You must login as a root user, if not root user then switch to root user using following command:
$ su -
2) Create the directory aka mount point:
# mkdir -p /mnt/disk
3) Use mount command as follows (assumes that your ISO file name is disk1.iso):
# mount -o loop disk1.iso /mnt/disk
4) Change directory to list it:
# cd /mnt/disk # ls -l
See also:
E-mail this to a friend
Printable version
You may also be interested in other helpful articles:
- How to: Extract files from ISO CD images in Linux
- Mounting with an alternative superblock
- Linux: Burn multi session CDs on Linux
- Linux creating CD-ROM ISO image
- Download of the day: AcetoneISO - extract, browse ISO and other CD/DVD formats under Linux
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: cd command, cd_iso, iso images, linux_loopback_device, loop_module, mkdir_command, mount_command, mount_iso



Cheers, worked like a charm
Quick comment:
You need the kernel module loop for it; people that get the error about it in mount should get the latest copy of the linux source and proceed to compile the correct module which is under block devices
Other than that it works
Just what i needed, mahalo!
Thanks! This was very very easy to find and follow. I’m new to linux and this is the reason I made the swicth, the help that everyone give make learning linux easy and fun. Thank you for your time, thank you!
sweet! worked cleanly, no stupid paid software for windows needed to do such a simple task!
Looks like we cant mount it for RW. Bloody well then.
This tip was a great help! I only need to read the iso for installations so thanks a heap!
Learn How to make ISO images on Linux
richard, to edit bootable ISO mount it as it’s described here, copy it’s contents to some directory, edit files you need and generate new ISO by command:
sudo mkisofs -o /tmp/new.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V “new iso name” .
or
read this
Works like a charm. It kept me from Burning a DVD for a computer that didn’t read DVDs. I did a Net Install of Linux over http://FTP. I copied the File to a Linux FTP Server, mounted the ISO and did an install. Sweet.
But what if I don’t have root? Or am too lazy to su or sudo?
the .img .iso and .nrg images can mounted directly, only change the options for loop and offest..
the other types (.b5i , .daa , .cdd , .cue , .bin , .xbo , .mdf , .cda , .pdi ) can mounting by the cdemu/cdemuserspace module for linux kernels, here all packages for debian users:
qgqlochekone.blogspot.com/2008/04/iso-linux-debian-venenux-tools.html
other method is coverting the image to native iso image and then mounting normaly..
in the McKAY blog are all convertion utilitys for al image types, including .daa (poweriso) and pdi (instancopy)
also:
u dont need su or sudo for mounting, that is stupid..
only added user to cdrom and disk groups an mount groups, and now user can mounting without any su or sudo permissions..
McKAY’s isos tools and converters for VENENUX/debian
@hedron: You need root access to mount any device, unless it is listed in /etc/fstab and has the option “user”. That also answer your question: Set up a filename convention for the iso image (/home/user/mountme.iso) and the directory where to mount it (/home/user/mountmehere), add an appropriate line to /etc/fstab, don’t forget the option to allow ordinary users to mount the pseudo device, and you’re done.
SALAM
Thanks alot
Wonderfull! Works!
root acces is not necesary, u must added u’r username to cdrom’s group, user’s group and disk’s group for mounting access command
the tool to manage virtual devices as iso images is CDemu compilation and has two brands, old and new..
old is called “cdemu” and only it for kernels 2.4, 2.6.8 and 2.6.17 to 2.6.20
new last is renamed to cdemu-userspace, and it for new recents kernels 2.6.22 and above..
for more info see cd convertion tools and McKAY debian iso tools
Um, what if it comes back asking for a fs type? RH50ES states “you must specify the filesystem type”.
iso9660 used for ISO images, try
mount -t iso9660 -o loop disk1.iso /mnt/diskhey vivek , great allround effort this .. I have feeds from your site and follow your site religiously ..
FYI, I have seen “disk1.iso: Permission denied” errors. This can be corrected by adding a ro flag.
mount -t iso9660 -o loop,ro disk1.iso /mnt/disk
The right way of doing this is
$>modprobe loop
$>mount -t iso9660 -o loop disk1.iso /mnt/disk
Coz in the new kernels loop is compiled as a module