How to Mount ISO/MDF Images in Linux

Written by BinnyVA on May 21, 2007 – 12:51 pm -

Harddisk

The mount command in Linux is a very powerful command. It can be used to mount any thing from a Samba mount to a ISO image file. The ability of the mount command to read ISO files makes it very useful for me.

My brother has a habit of saving DVD films as a image file. I believe he uses Alcohol 120% to do this. If he wants to view the Film, he ‘mount’ this image using Daemon Tools. He uses windows to do this. After he is done, he hands me this image. I can mount this image without any special tools in Linux – I just need the mount command.

mount -t iso9660 -o loop <Image_File> <Mount_Point>

Mounting Example

mount -t iso9660 -o loop /home/binnyva/Films/300.iso /mnt/Image

The ‘-t’ option specifies the filetype – this is optional.

This command works with both ISO and MDF images.


del.icio.us | Digg it | reddit | StumbleUpon

Posted in Command Line, Tools | 25 Comments »

25 Comments to “How to Mount ISO/MDF Images in Linux”

  1. […] How to Mount ISO/MDF Images in Linux […]

  2. beerdeaap says:

    Just mounting the .mdf image as a iso9660 image didn’t work for me. I’ve used mdf2iso to convert it first.

  3. Is there any way to mount an nrg image? The above command is not working for me. Thanks.

  4. allyneedshelp says:

    can some one plz tell me how to mount an image using alcohol120? i dont have a clue im so confused email me at chatinggil101@hotmail.com

  5. Darek says:

    ‘Try using AcetoneISO’

    But AcetoneISO doesn’t work on Gnome – it’s only for KDE.

  6. h3rj4n says:

    Just rename the file to .iso in stead of .nrg. That works fine!

    Thanx for this tut. Really helped my out!

  7. Natalie says:

    Thanks for the tip I know the command in Linux is a strong one but never used it for image files before as I don’t use them often.

  8. nitesh says:

    after following above instruction i got this result ……plz help

    wrong fs type, bad option, bad superblock on /dev/loop0,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog – try
    dmesg | tail or so

  9. David says:

    MDF can’t be mounted IMHO. And converting to iso doesn’t help either, because you actually can lose data in the convert process. MDF can store damaged sectors (used in some copy protections) and ISO doesn’t.

  10. rapsys says:

    I didn’t succeed to use mdf2iso to convert a 6.4GB mdf file…

    It kept complaining about a file too long (maybe a limit at 4GB), even with mdf2iso 0.3.1 (with large file support).

    It seems i succeed with using kiso to convert it…

    6.4GB iso file allocation is damn too long…

    Cheer up 😉

  11. Gerrit Schröder says:

    Use -t udf
    to mount an mdf-image-file.

  12. Tim says:

    I used mdf2iso successfully but I guess it may have lost the copyright protection sectors.

    “-t udf” didn’t work at all, and I don’t see why it would…

  13. Brock says:

    Check out fuseiso, which allows mounting cd/dvd images that wouldn’t normally be mountable (mdf, nrg)

  14. Seegras says:

    DT-Soft thinks it owns a “copyright” on the mdf/mds file-format. Read it and weep:

    http://forum.daemon-tools.cc/f16/concerns-over-daa-17216/

    Morons. Total morons.

  15. ku says:

    hey, thanks for the udf tip, worked for me!
    2tim: it’s possible that you need udftools

  16. Ziv says:

    This “mount -t iso9660 -o loop ” worked perfectly for me just fine, didn’t need to install any thing.

  17. Vlatko says:

    Note that this will mount read only. If you want to be able to edit the content of the ISO image you will have to use a short workaround as described here: http://www.docplanet.org/linux/mount-an-iso-image-in-linux/

  18. themoon49 says:

    what means (-t, iso9660, -o)?please reply me(themoon49@gmail.com) thanksss

  19. gt says:

    Thanks for the tip. The mimetype is actually detected as an iso!!

    @themoon49,

    -t specifies the filesystem type, which in this case is iso9660. -o switch is for options which in this case is loop.

    try reading the manual page of mount command.

    # man mount

  20. Mateusz Grotek says:

    Hi
    There is a nice utility called iat available:
    http://iat.berlios.de/
    (I suppose it’s also available in your distribution repository)
    It is able to automatically detect many formats and convert them to iso, just use:
    iat –iso -i some_strange_file.xxx -o new_file.iso
    It works very well.

  21. ud says:

    I had problem with my mdf,neither -t iso9660 or mdf2iso worked for me,

    but iat worked like a charm

    thanks for the tip Mateusz

  22. anon says:

    iat, btw, can’t convert to iso under debian wheezy. use mdf2iso, which is from the same author.

  23. RKBA says:

    This will not work for audio CD images. I was pulling my hair out over why none of the mdf -> iso converters would work on my files. Turns out the mdf file is different for audio CDs. The only thing I found that worked was this:
    http://www.sqweek.com/sqweek/index.php?p=5
    It’s the “MDF Audio Extractor” and apparently the 0.1 version was good enough, because it’s never been updated since. But it worked for my audio images!

    mdfextract 0.1 (c)2007 Bjorge Dijkstra

    usage: mdfextract [options] file.mds

    options:
    -i output mds info instead of extracting
    -r extract raw track data
    -s output to stdout instead of file
    -t extract single track (num > 0)
    -q quiet, no output

  24. john black says:

    thank you for what you have done. i am running debian jessie. i used mdf2iso to convert the cd image. i mounted it somewhere. i installed flash? then i did the main installation and i was impressed. i was looking for tombraider 3 but never mind tombraider 2 in all new to me. i paid for tr3 and the cd exploded in my cd drive. i paid to download a copy but now that has expired. i love this game it is so addictive and silly.

Leave a Comment