Update vdi2raw2ewf
This commit is contained in:
parent
06f479dadc
commit
8d1895d7b2
27
vdi2raw2ewf
27
vdi2raw2ewf
@ -1,18 +1,40 @@
|
||||
#!/usr/local/bin/bash
|
||||
|
||||
# Usage: ./vdi2raw2ewf
|
||||
# or
|
||||
# bash vdi2raw2ewf
|
||||
# Description: Convert VDI image to EWF image
|
||||
# Author: Patrick Neumann (patrick@neumannsland.de)
|
||||
# Platform: Apple macOS 10.13.6
|
||||
# Version: 1.00
|
||||
# Date: 2019-04-29
|
||||
# Link: (work in progress)
|
||||
# License: GPL3
|
||||
# Warranty: This program is distributed WITHOUT ANY WARRANTY
|
||||
|
||||
#=== CONFIGURATION (user) ======================================================
|
||||
PATH="/Users/neupat75/VirtualBox VMs"
|
||||
DSC="LinuxMint"
|
||||
VDI="${DSC}_19.1"
|
||||
RAW="${PATH}/${VDI}.raw"
|
||||
CASE="20190408-01"
|
||||
EVI="01"
|
||||
|
||||
#=== CONFIGURATION (dynamic) ===================================================
|
||||
RAW="${PATH}/${VDI}.raw"
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Convert VDI to RAW image.
|
||||
#-------------------------------------------------------------------------------
|
||||
/usr/local/bin/vbox-img \
|
||||
convert \
|
||||
--srcfilename "${PATH}/${VDI}/${VDI}.vdi" \
|
||||
--dstfilename "${RAW}" \
|
||||
--dstformat RAW
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Acquire RAW as EWF image.
|
||||
#-------------------------------------------------------------------------------
|
||||
/usr/local/bin/ewfacquire \
|
||||
-c fast \
|
||||
-C "${CASE}" \
|
||||
@ -27,6 +49,9 @@ EVI="01"
|
||||
-u \
|
||||
"${RAW}"
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Delete RAW image.
|
||||
#-------------------------------------------------------------------------------
|
||||
/bin/rm "${RAW}"
|
||||
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user