Mounting .iso and .mds/mdf Files in Linux

December 15, 2007 – 10:38 am. Filed under Uncategorized by Sathya .

There are lots of times where you’d want to mount a CD/DVD image. Say your friend who uses his Windows box has given you a .iso file or a .mds/mdf file, created using Alcohol 120%. How would you mount them in Linux? Using the Terminal and making use of the loop device,there is no need for any external software tools and utlities.

Here’s the steps:

  1. Open the Terminal/Console.
  2. Switch to root user(mounting more often than not requires root privileges, we’ll have a look as to how make media user-mountable later) by typing su root *buntu users and others distros in which the root account is disabled, can skip this step.
  3. Type mount -o loop -t iso9660 /windows/movies/movies.mdf /movies/ For users of distros where root account is disabled(like Ubuntu) prefix sudo to the above. So the command is sudo mount -o loop -t iso9660 /windows/movies/movies.mdf /movies/

If the above command looks confusing,it’s pretty simple! Let’s dissect it.

mount command is pretty obvious, it’s the commnad used for mounting storage media and images of storage media.

-o loop(note that o is the letter o not the numeral zero, ie, 0) instructs the mount command to use the loopback device. -o stands for option, loop indicates loop back device. Intuitive, ain’t it?

-t iso9660 instructs the mount command that the image is of iso9660 format.

The next argument is the path to where the .mdf file is located.

The last argument is the path to which directory the media must be mounted.

The image below shows an example.

mount.jpg

If all goes well, you shouldn’t be getting any messages, as in the image. For .iso files, the steps are the same, just replace the .mdf file by the .iso file. The above method should work for CloneCD’s .ccd and Nero’s .nrg files(I remember it worked long time ago, not so sure though, if anyone can confirm this it’d be great!)

Popularity: 13% [?]

Related Posts:
  1. 7 Responses to “Mounting .iso and .mds/mdf Files in Linux”

  2. There must be a simple way , right
    Like .. . rt-click->insert :P

    By Sumeet on Dec 15, 2007

  3. Offtopic :

    Dude you need to clean up your forum :|
    http://sathyasays.com/forums/viewtopic.php?t=73

    By Sumeet on Dec 15, 2007

  4. LOL There is a tool CDemu + KCDEmu as the front end to it– kinda like Daemon Tools for Linux, but I was unable to compile cdemu and KCDEmu rpm I couldnt find :( so I remembered the command prompt method
    Crap spam. Any way to prevent that??

    By Sathya on Dec 15, 2007

  5. Well, You better search the phpBB MOD Forums, There are lots of Anti-Spam MODS (even there is one which uses Askimet API!)

    And Yeh, Better upgrade to phpBB3, The Final Stable was released a few days ago :)

    By Subbu on Dec 18, 2007

  6. CDemu compilation 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 iso tools

    By PICCORO on Jun 3, 2008

  7. hello!!
    I’ve tried that way to mount a mdf file, but I’ve got this on the terminal:

    mount: you must specify the filesystem type

    could you help me please?
    =)

    By Speppa on Aug 7, 2008

  8. mdf is not supported by mount/loop devices, but new kernels can mount with a few parameters directly.. see this page por packages resolving the problem.. mdf and other solutions

    By PICCORO on Aug 9, 2008

Post a Comment