Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've an *.img file, that can't be converted to *.iso, because its a multi-session disk. So I simply changed the file ending to .iso.

Now, I am able to mount it using the following command: mount -o loop dvd.iso /media/iso

BUT: When I try to use this iso in VirtualBox, it fails! Is there a way to mount the iso file as a drive, and then use it in VirtualBox?

share|improve this question
What OS are you running in vb, or is this a boot disk? – Paul Oct 6 '11 at 23:04
There is no OS at the moment. It´s a Win7 DVD-image, so I want to install Win7. – Van Coding Oct 7 '11 at 6:23
When you do mount -o loop it creates a loopback device that represents the ISO, and then mounts the loopback. Given that you can mount the iso in linux, I guess vb is using a different method. Try mounting in linux, then do losetup -a to find out which /dev/loop it created (/dev/loop0 for example). Then when adding the cdrom device to your vm, use the /dev/loop device instead of the iso directly. – Paul Oct 7 '11 at 7:03
@Paul Thanks for this tip, but this does not seem to work. "The medium '/dev/loop0' can't be used as the requested device type". I've also tested it with a normal ISO, but it didn't work. Do you have another idea? – Van Coding Oct 8 '11 at 18:00
What was the requested device type? It should be added as a physical device. – Paul Oct 9 '11 at 3:03

Try to use losetup command.

losetup /dev/loop0 yourfile.iso

It link your iso file to a loopdevice.

share|improve this answer

Have you tried using dd, with an output as .iso from the mounted image... ie

dd if=/where/you/have/.img/mounted of=/~/image/.iso

then use the new .iso image with virtualbox

share|improve this answer

virtualbox does not accept iso9660 format for iso images so first convert it to raw image:

mount -t iso9660 -o loop /your/iso9660.iso /some/where

dd if=/dev/loop0 of=/raw_image.iso

then use the new image.iso with virtualbox.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.