viper25

SpinRite in a VM

Aug 21st, 2017
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.58 KB | None | 0 0
  1. REM ⚠️ RUN ALL COMMANDS BELOW AS ADMINISTRATOR ⚠️
  2.  
  3. REM Detach the disk from Windows
  4. REM Run an elevated command prompt (as Administrator), then run “diskpart”.  Once in diskpart, issue these commands.
  5.  
  6. list disk
  7. select disk #
  8. offline disk
  9. attribute disk clear readonly
  10. rescan
  11.  
  12. REM Create Disk Image from whole drive. Goto D:\Program Files\Oracle\VirtualBox (as Administrator). Select the Disk Number as appears in the DISKPART command or as seen in Computer Management (msc) > Disk Management
  13. VBoxManage internalcommands createrawvmdk -filename "T:\Disk2.vmdk" -rawdisk "\\.\PhysicalDrive2"
  14.  
  15. REM Now attach the disk to VirtualBox and scan with SpinRite
  16.  
  17. ▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️
  18.  
  19. REM List partitions (to get the partition number)
  20. VBoxManage internalcommands listpartitions -rawdisk "\\.\PhysicalDrive0"
  21.  
  22. REM Create Disk Image from a partition
  23. VBoxManage internalcommands createrawvmdk -filename "G:\Disk0_S.vmdk" -rawdisk "\\.\PhysicalDrive0" -partitions 3
  24.  
  25. https://romaimperator.com/?p=29
  26. https://blog.nerdimmunity.com/2012/06/25/spinrite-vmware-and-windows-7/
Advertisement
Add Comment
Please, Sign In to add comment