Created
June 11, 2018 11:04
-
-
Save interference-security/0e70d5bed2e3c20000db30e69f034550 to your computer and use it in GitHub Desktop.
Mount a VMware virtual disk (.vmdk) file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://twitter.com/DamianRath/status/1005564997215444993 | |
# Mount a VMware virtual disk (.vmdk) file | |
function vmmount() { | |
if [ ! -d "/tmp/vmmount" ]; then | |
sudo mkdir -p /tmp/vmmount | |
fi | |
sudo mount $1 /tmp/vmmount/ -o ro,loop=/dev/loop1,offset=32768 -t ntfs | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment