fork download
  1. #!/bin/bash
  2. # your code goes herediskutil list
  3. $VBoxManage internalcommands createrawvmdk -rawdisk /dev/disk0 -filename win10raw.vmdk -partitions 1,4
  4. VBoxManage: error: Cannot read the partition information from '/dev/disk0'
  5. VBoxManage: error: The raw disk vmdk file was not created
  6. $diskutil list
  7. /dev/disk0 (internal):
  8. #: TYPE NAME SIZE IDENTIFIER
  9. 0: GUID_partition_scheme 251.0 GB disk0
  10. 1: EFI EFI 314.6 MB disk0s1
  11. 2: Apple_APFS Container disk1 210.0 GB disk0s2
  12. 3: Microsoft Basic Data BOOTCAMP 40.7 GB disk0s3
  13.  
  14. /dev/disk1 (synthesized):
  15. #: TYPE NAME SIZE IDENTIFIER
  16. 0: APFS Container Scheme - +210.0 GB disk1
  17. Physical Store disk0s2
  18. 1: APFS Volume Macintosh HD 133.5 GB disk1s1
  19. 2: APFS Volume Preboot 46.3 MB disk1s2
  20. 3: APFS Volume Recovery 510.4 MB disk1s3
  21. 4: APFS Volume VM 3.2 GB disk1s4
  22.  
  23. $VBoxManage internalcommands listpartitions -rawdisk /dev/disk0
  24. Number Type StartCHS EndCHS Size (MiB) Start (Sect)
  25. Number Type StartCHS EndCHS Size (MiB) Start (Sect)
Runtime error #stdin #stdout #stderr 0s 4452KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog.sh: line 3: internalcommands: command not found
./prog.sh: line 4: VBoxManage:: command not found
./prog.sh: line 5: VBoxManage:: command not found
./prog.sh: line 6: list: command not found
./prog.sh: line 7: syntax error near unexpected token `internal'
./prog.sh: line 7: `/dev/disk0 (internal):'