|
Has anyone tried this?
MHDD will scan a virtual hard disk from a Hirens boot CD ISO image booted in a virtual machine. Strangely, after you hit F4 you have to hit ESC to get it to start scanning...
I was thinking that if this worked, you could run tools limited to IDE primary and secondary, like early MHDD versions, WDR, HDDERASE, and others on SATA drives without using a physical SATA to IDE adapter, because VirtualBox will remap the SATA ports to virtual IDE ports.
---------------------------------------------------------------------- 9.7.1.1. Access to entire physical hard disk While this variant is the simplest to set up, you must be aware that this will give a guest operating system direct and full access to an entire physical disk. If your host operating system is also booted from this disk, please take special care to not access the partition from the guest at all. On the positive side, the physical disk can be repartitioned in arbitrary ways without having to recreate the image file that gives access to the raw disk.
To create an image that represents an entire physical hard disk (which will not contain any actual data, as this will all be stored on the physical disk), on a Linux host, use the command
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/sda This creates the image /path/to/file.vmdk (must be absolute), and all data will be read and written from /dev/sda.
On a Windows host, instead of the above device specification, use e.g. \\.\PhysicalDrive0. On a Mac OS X host, instead of the above device specification use e.g. /dev/disk1. Note that on OS X you can only get access to an entire disk if no volume is mounted from it.
Creating the image requires read/write access for the given device. Read/write access is also later needed when using the image from a virtual machine.
Just like with regular disk images, this does not automatically register the newly created image in the internal registry of hard disks. If you want this done automatically, add -register:
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/sda -register After registering, you can assign the newly created image to a virtual machine with e.g.
VBoxManage storageattach WindowsXP --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium /path/to/file.vmdk When this is done the selected virtual machine will boot from the specified physical disk. ------------------------------------------------
|