Polls

Topics

How to: Mount an ISO image under Linux

Posted by Vivek on Monday March 29, 04 @10:11 pm

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:

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or full RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in...

Discussion on This Article:

  1. Mills Says:

    Cheers, worked like a charm :-)

  2. Anonymous Says:

    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 ;)

  3. sshawnn Says:

    Just what i needed, mahalo!

  4. Hashim Says:

    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!

  5. ORB Says:

    sweet! worked cleanly, no stupid paid software for windows needed to do such a simple task!

  6. richard Says:

    Looks like we cant mount it for RW. Bloody well then.

  7. Reggie Says:

    This tip was a great help! I only need to read the iso for installations so thanks a heap!

  8. kvz Says:

    Learn How to make ISO images on Linux

  9. artiomix Says:

    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

  10. Raul Trujillo Says:

    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.

  11. hedron Says:

    But what if I don’t have root? Or am too lazy to su or sudo?

  12. PICCORO Says:

    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)

  13. PICCORO Says:

    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

  14. Guido Flohr Says:

    @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.

  15. linuxuser Says:

    SALAM
    Thanks alot

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!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , ~ Last updated on: December 7, 2007

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.