Changes between Version 2 and Version 3 of Ticket #8873, comment 34
- Timestamp:
- Jul 13, 2014 12:16:47 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8873, comment 34
v2 v3 7 7 This can be done via raw disk mode in OSX/LINUX/Windows. 8 8 9 In OSX Mavericks: [[BR]]9 In OSX Mavericks:(Make sure disk is unmounted in OSX before all steps)[[BR]] 10 10 11 '''sudo diskutil list''' (the disk in question on my box is '''/dev/disk4''')[[BR]]12 11 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 {{{ 13 sudo diskutil list 14 }}} 15 (the disk in question on my box is '''/dev/disk4''')[[BR]] 16 {{{ 17 sudo diskutil unmountdisk /dev/disk4 18 }}} 19 {{{ 20 sudo VBoxManage internalcommands createrawvmdk -filename ~/Desktop/3.0.vmdk -rawdisk /dev/disk4 21 }}} 22 [[BR]] 23 It may remount on the Mac desktop, at which point right click and eject or again: 24 {{{ 25 diskutil unmountdisk disk4 26 }}} 27 [[BR]] 28 Add the vmdk to your vm's disk controller in vbox: 29 (If you get [verr_access_denied]: 30 {{{ 31 sudo chmod 777 ~/Desktop/3.0.vmdk 32 }}} 33 [[BR]] 34 You will also need to do the same for the actual /dev/disk4 TEMPORARILY 35 {{{ 36 sudo 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]] 22 39 23 40 Boot your VM and run your SpinRite, or your disk tools, or access the raw drive as a normal disk, etc. [[BR]] … … 26 43 Don'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]] 27 44 28 For future use of the raw vmdk , you can edit thefile with any text editor, updating the disk its pointing to:45 For future use of the raw vmdk you created, you can edit the vmdk file with any text editor, updating the disk its pointing to: 29 46 [[BR]] 30 i.e: '''RW 488397168 FLAT "/dev/disk3” 0''' --> '''RW 488397168 FLAT "/dev/disk4” 0''' 47 {{{ 48 RW 488397168 FLAT "/dev/disk4" 0''' --> '''RW 488397168 FLAT "/dev/disk9" 0 49 }}} 50 [[BR]] 51 I 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! 31 52 [[BR]] 32 53 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!54 If 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) 34 55 [[BR]] 35 Enjoy, my minions! 56 57 '''WINDOWS'''[[BR]] 58 As seen with 59 {{{ 60 diskpart (wait for command to launch) 61 DISKPART> 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 68 DISKPART> 69 }}} 70 Just change: 71 {{{ 72 /dev/diskX--> \\.\PhysicalDriveX 73 }}}