Mount an ISO file in Linux

Contributor Icon Contributed by qmchenry Date Icon April 6, 2005  
Tag Icon Tagged: Linux

It is convenient to mount an ISO file directly instead of burning it to a CD first. This recipe describes the command used to mount an ISO image on a Linux system.


To mount the ISO image file.iso to the mount point /mnt/test use this command:

mount -o loop -t iso9660 file.iso /mnt/test

Previous recipe | Next recipe |
 
  • bob
    You fail to explain that this command only works for root.
  • thank you, had not dont that before.
  • Amit
    unable to mount iso file using command mentioned above as each time there is a extracted directory made in test folder
  • miezebieze
    it also works without "-t iso9660" (mount -o loop file.iso /mnt/test)... When I tried, your command doesn't work at all...
  • your iso image file system was another ;)
  • jesla
    works fine, how would you unmount
  • a$$hole
    umount /mnt/test
  • Nokie
    eh... it says "mount: mount point /mnt/[name] does not exist"
    wat do i do?
  • bob
    you need to create the mount point first, i.e. "mkdir /mnt/test"
  • Lawrence
    lawrence@Inf1n1ty:~$ su
    Password:
    su: Authentication failure
    lawrence@Inf1n1ty:~$ sudo -i
    root@Inf1n1ty:~# mkdir -p /mnt/disk
    root@Inf1n1ty:~# mount -o loop BF1942_1.iso /mnt/disk
    BF1942_1.iso: No such file or directory
    root@Inf1n1ty:~#

    so when i log into root, cannot as it is locked, so use sudo to gain root privileges, Then when I go to mount the image it doesn't find it.
    Is there a certain location that I need to place the iso in question?
  • michael
    what is the path to BF1942_1.iso relative to your current directory?

    Should something like

    mkdir -p /mnt/disk
    mount -o loop /dev/USB/BF1942_1.iso /mnt/disk
    ... Make any sense?
  • mainmeat
    lawrence - you arent specifying a path for your BF1942_1.iso file.
    try
    mkdir /mnt/foo
    mount -o loop /dir/path/filename.iso /mnt/foo
    that should do the trick
  • prakharmishra
    Your recipe seems like not working. I have given the command:-

    mount -o loop -t iso9660 rld-dmc4.iso /media/Entertainment/Game/Devil\ May\ Cry\ 4\ Image/

    And I got the o/p:-

    rld-dmc4.iso: No such file or directory
blog comments powered by Disqus