Skip to main content
  1. Archives/

Mounting .iso and .mds/mdf Files in Linux

··316 words·2 mins·
News Commands Ubuntu

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

Sathyajith Bhat
Author
Sathyajith Bhat
Author, AWS Container Hero and DevOps Specialist.

Related

A Look At Ubuntu Gutsy Gibbon
··613 words·3 mins
Reviews Linux Ubuntu
Ubuntu Gutsy has been receiving a huge amount of hype and fan fare recently, and I’ve been following Gutsy closely, from Ubuntu Fridge’s 10 Rocking Features in 10 Days to fellow bloggers and Linux users posts on Gutsy. Naturally after their Feisty launch, expectations were high(from my side). Now I’m not Ubuntu’s biggest fan(I’m a SuSE fellow, Novell haters, meh!), but I appreciate what Ubuntu has been doing for newbie Linux users in general.
Krusader – An alternative to Dolphin and Konqueror
··268 words·2 mins
News KDE Krusader
KDE users have for a long time had the jack-of-all-trades, all-singing-all-dancing Konqueror for file management. In KDE 4 we’ll be joined by the new Dolphin which will be the default file manager. If you yearn for a change of file manager now, however, and you’re a fan of the left-right split in your file manager, you might just like Krusader. On first run, Krusader will search your system for tools it can integrate with as you can see here.
Fix a Frozen System with the Magic SysRq Keys
··226 words·2 mins
News Linux
You finally got your Linux environment to crash. Ctrl+Alt+Backspace does nothing, nor do the F-keys. You know you shouldn’t have installed that bad driver, but you did it anyway. So you reach for the power button. Stop. Mashing in the power button to reboot could cause a problem if your hard drive is still being written to, and usually causes more problems than it solves. The Linux kernel includes a secret method of restarting your PC should it ever stop doing its job.