How to create a virtual cd/dvd drive in Linux

From: www.my-guides.net  read times: 933


Provided by yangyi at 2009-01-14 22:24:44


Many times you want to see the contents of a cd/dvd image file but you don't have or you don't want to spare a cd/dvd disk to burn it. In those cases a virtual cd/dvd drive is very helpful. Windows users have software such as Daemon Tools or Alcohol 120%. However creating a virtual cd/dvd in Linux is also possible and very easy to do as you will see. By cd/dvd image file I mean all those files with extensions like .iso, .nrg, .img, .bin, .cue, .mdf, etc. Below I will saw you a few different methods to choose the one that you prefer for mounting your cd/dvd image files. I 've used Ubuntu Intrepid Ibex 8.10 for this guide but of course you can use any distro you want.

If you are using the Gnome Desktop Environment and you want to mount an ISO file you can just right click on it and select Open With -> Open with "Archive mounter". Easy eh? However if you have an image file such as .nrg or .img you can't use the Archive Mounter. In this case you need to create a virtual cd/dvd disk in Linux which will take care of the rest. So, let's start.

Mount an ISO image file in Linux through CLI


This is the traditional way for those who like using the command line interface. Fast and easy. Just open a terminal or konsole and type:

su -
mkdir ~/temp
mount -o loop -t iso9660 /path/to/test.iso ~/temp

Now the iso files will be stored in the ~/temp dir. Just remember to change /path/to/test.iso to where you have the .iso file and ~/temp to the directory you want to have it mounted.

To unmount the cd/dvd image type:

su -
umount ~/temp

Note: Ubuntu users should use sudo before the commands. su - command isn't needed in this case.

Create a Virtual CD/DVD Drive in Linux with Furius ISO Mount


Furius ISO Mount an ISO, IMG, BIN, MDF and NRG Image management utility for the Gnome Desktop Environment. Apart from automatically mounting/unmounting image files in your virtual cd/dvd drive, you can also generate md5 and sha1 checksums.

First you need to install the packages from here . 0.11.1 is the latest version at this time. If you are using Ubuntu just click on the furiusisomount_0.11.1.0-1_i386.deb or furiusisomount_0.11.1.0-1_amd64.deb depending on which arch you are using and let GDebi Package Installer do the job.

Now go to Applications -> Sound & Video and run Furius ISO Mount. This is the main program window.

furius-iso-mount-tool-1.png

To mount an image file e.g. create a virtual cd/dvd drive you can either use the browse button or drag and drop the image file into the window to mount it quickly. A directory will be created in your home directory automatically. You can use the burn button to burn the image file using Brasero. Finally you can unmount it with the Unmount button.

furius-iso-mount-tool-2.png

An easy way to create as many virtual cd/dvd drives in Linux as you want.

Create a Virtual CD/DVD Drive in Linux with CDemu


CDemu is a cd/dvd-rom device emulator for Linux. Supported formats are .B6T, .CCD, .CDI, .CUE, .ISO, .MDS, .NRG, .TOC

To install CDemu, gCDemu and the necessary libraries in Ubuntu you must first add en extra repository. Go to System -> Administration -> Software Sources and in the Third-Party Software tab click the add button. Copy and paste in there the following:
For Ubuntu 8.04 Hardy Heron users

deb http://ppa.launchpad.net/cdemu/ubuntu hardy main
For Ubuntu 8.10 Intrepid Ibex users

deb http://ppa.launchpad.net/cdemu/ubuntu intrepid main

Next click the Add Source, Close and Reload buttons. Next open a terminal and type:

sudo apt-get update
sudo apt-get install cdemu-daemon gcdemu
sudo /etc/init.d/cdemu-daemon start

Next press Alt-F2 and type:

cdemud-daemon.session
or Logout and Log back in.Finally right click somewhere on the panel and click Add to Panel. Find gCDemu and click the Add button. If you see the applet grey it isn't connected to the daemon. It should be blue-yellow. I had to restart Ubuntu to make gCDemu work properly.

When the applet is active left click on it and select an empty Device. A window will pop up. Browse to the image file and open it. The virtual cd/dvd drive will be created automatically and you will see the contents of the mounted image file. Moreover a cd icon should appear in your screen.

gcdemu-1.png

To unmount the device just click on the applet and then select the virtual disk.

You can see some extra options if you left click on the applet and then right click in a virtual cd/dvd. The unload button unmounts the disk.

gcdemu-2.png

I hope you liked my Virtual cd/dvd in Linux guide! Please do not use the comment function to ask for help! If you need help, please use our guides forum .

Original link: http://www.my-guides.net/en/cont...