A Step By Step Walk Thru On How To Make A Raw Disk Image On Mac OS X
Use at your own risk j;-)
01.0 Open a Terminal and Sudo yourself: sudo su
02.0 Check your disk layout: df -k
02.5 Pick your disk out of the list so you know it's disk number. In my case it was the Store volume, disk0s2.
03.0 Eject the Volume in the Finder or Unmount it in Disk Utility
03.5 Give VBox access to the drive: chmod 777 /dev/disk0s2
04.0 Give the command: VBoxManage internalcommands createrawvmdk -filename /Users/Jay/Library/VirtualBox/HardDisks/Store.vmdk -rawdisk /dev/disk0s2 -register
05.0 Give access to the image file: chmod -R 777 /Users/jay/Library/VirtualBox/HardDisks/Store.vmdk
06.0 control+d to log out
Code: Select all
J:~ jay$ sudo su
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
J:~ jay$ df -k
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/disk1s2 292721440 186159120 106306320 64% /
devfs 111 111 0 100% /dev
fdesc 1 1 0 100% /dev
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home
/dev/disk0s1 83891396 26678680 57212716 32% /Volumes/WinXP
/dev/disk0s2 209158264 31873316 177284948 16% /Volumes/Store
/dev/disk3s1 1010700 516 1010184 1% /Volumes/Flash Drive
/dev/disk4s1s2 408818 408818 0 100% /Volumes/Civilization IV Warlords
sh-3.2# chmod 777 /dev/disk0s2
sh-3.2# VBoxManage internalcommands createrawvmdk -filename /Users/Jay/Library/VirtualBox/HardDisks/Store.vmdk -rawdisk /dev/disk0s2 -register
VirtualBox Command Line Management Interface Version 2.1.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
RAW host disk access VMDK file /Users/Jay/Library/VirtualBox/HardDisks/Store.vmdk created successfully.
sh-3.2# chmod -R 777 /Users/jay/Library/VirtualBox/HardDisks/Store.vmdk
sh-3.2# exit
J:~ jay$
Notes:
Error: VERR_FILE_NOT_FOUND - Don't use relative paths
Error: VERR_ACCESS_DENIED - Give Access to the drive : sh-3.2# chmod 777 /dev/disk0s2
Error: VERR_DEV_IO_ERROR - Unmount the drive, try all related drive partitions also.
I'm not using the -partitions command.
I don't have a driver for NTFS though I do have write access in the WinXP vm
Hopes this helps j;-)