VirtualBox

Changes between Version 2 and Version 3 of Ticket #8873, comment 34


Ignore:
Timestamp:
07/13/2014 12:16:47 PM (6 years ago)
Author:
MayanJedi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8873, comment 34

    v2 v3  
    77This can be done via raw disk mode in OSX/LINUX/Windows. 
    88 
    9 In OSX Mavericks:[[BR]] 
     9In OSX Mavericks:(Make sure disk is unmounted in OSX before all steps)[[BR]] 
    1010 
    11 '''sudo diskutil list''' (the disk in question on my box is '''/dev/disk4''')[[BR]] 
    1211 
    13 '''sudo diskutil unmountdisk /dev/disk4'''[[BR]] 
    14  
    15 '''sudo VBoxManage internalcommands createrawvmdk -filename ~/Desktop/3.0.vmdk -rawdisk /dev/disk4'''[[BR]] 
    16  
    17 (It may remount on the Mac desktop, at which point right click and eject or '''diskutil unmountdisk disk4''')[[BR]] 
    18  
    19 Add the vmdk to your vm's controller in vbox (If you get [verr_access_denied], sudo chmod 777 ~/Desktop/3.0.vmdk)[[BR]] 
    20  
    21 You will also need to do the same for the actual /dev/disk4 TEMPORARILY ('''sudo chmod 777 /dev/disk4''') ''The original permissions are 640'', but it should return to normal once the disk is ejected and plugged back into your Mac. Rinse and Repeat[[BR]] 
     12{{{ 
     13sudo diskutil list 
     14}}} 
     15(the disk in question on my box is '''/dev/disk4''')[[BR]] 
     16{{{ 
     17sudo diskutil unmountdisk /dev/disk4 
     18}}} 
     19{{{ 
     20sudo VBoxManage internalcommands createrawvmdk -filename ~/Desktop/3.0.vmdk -rawdisk /dev/disk4 
     21}}} 
     22[[BR]] 
     23It may remount on the Mac desktop, at which point right click and eject or again: 
     24{{{ 
     25diskutil unmountdisk disk4 
     26}}} 
     27[[BR]] 
     28Add the vmdk to your vm's disk controller in vbox: 
     29(If you get [verr_access_denied]:  
     30{{{ 
     31sudo chmod 777 ~/Desktop/3.0.vmdk 
     32}}} 
     33[[BR]] 
     34You will also need to do the same for the actual /dev/disk4 TEMPORARILY 
     35{{{ 
     36sudo chmod 777 /dev/disk4 
     37}}} 
     38 ''The original permissions are 640'', but it should return to normal once the disk is ejected and plugged back into your Mac. Rinse and Repeat[[BR]] 
    2239 
    2340Boot your VM and run your SpinRite, or your disk tools, or access the raw drive as a normal disk, etc. [[BR]] 
     
    2643Don't try to select/connect the drive in the usb filter quick access button or otherwise, or the universe WILL implode and probably within your drive too.[[BR]] 
    2744 
    28 For future use of the raw vmdk, you can edit the file with any text editor, updating the disk its pointing to: 
     45For future use of the raw vmdk you created, you can edit the vmdk file with any text editor, updating the disk its pointing to: 
    2946[[BR]] 
    30 i.e: '''RW 488397168 FLAT "/dev/disk3” 0''' --> '''RW 488397168 FLAT "/dev/disk4” 0''' 
     47{{{ 
     48RW 488397168 FLAT "/dev/disk4" 0''' --> '''RW 488397168 FLAT "/dev/disk9" 0 
     49}}} 
     50[[BR]] 
     51I usually use this method for superfast RAW USB 3.0 access since USB 2.0 is too time-consuming to do what I need to do. Zeit ist Geld! 
    3152[[BR]] 
    3253 
    33 I usually use this method for superfast RAW access since USB 2.0 is too time-consuming to do what I need to do. Zeit ist Geld! 
     54If you are running this in linux, fdisk is your friend, and you can just run vbox as root directly and access your vmdk as-is most likely. If you are a linux lover like me, you probably already know what to do anyway :0) 
    3455[[BR]] 
    35 Enjoy, my minions! 
     56 
     57'''WINDOWS'''[[BR]] 
     58As seen with  
     59{{{ 
     60diskpart (wait for command to launch) 
     61DISKPART> list disk 
     62 
     63  Disk ###  Status         Size     Free     Dyn  Gpt 
     64  --------  -------------  -------  -------  ---  --- 
     65  Disk 0    Online           25 GB      0 B 
     66  Disk 1    Online          232 GB      0 B 
     67 
     68DISKPART> 
     69}}} 
     70Just change:  
     71{{{ 
     72/dev/diskX--> \\.\PhysicalDriveX 
     73}}} 

www.oracle.com
ContactPrivacy policyTerms of Use