I dd'ed an entire Linux hard-drive with several partitions to a single raw disk image. I've given up on loop-mounting the file on OS X, so I've installed Debian on a VirtualBox on my Macbook, hoping to mount the image there. However, I'm experiencing a problem in VirtualBox trying to add the disk image to any of the floppy, IDE, or SATA controllers before booting the machine. It gives me this:
Failed to open the floppy disk file
/path/to/clone.img.
Could not get the storage format of the medium
'/path/to/clone.img'
(VERR_NOT_SUPPORTED).
My question is: why does VirtualBox care? On a real computer, I can insert a disk containing complete nonsense in a drive and it doesn't spit the disk out and yell at me; the firmware or operating system does that.
If I tell VirtualBox "this is an ISO", shouldn't it say "If you say so..." and feed the image file's raw information to the virtual machine, regardless of what's in the file?
Sorry if this is a noob question, I'm still new to VMs, and VirtualBox especially. Thanks in advance.
Edit:
I did figure out how to mount the drive, but I still want to know why VirtualBox cares whether the .img
file is valid.
Edit 2:
I was able to add the file by renaming it to "clone.iso
" and adding it as a CD/DVD to the IDE controller.
dd
to copy an entire hard drive.