Skip to content

Instantly share code, notes, and snippets.

@interference-security
Created June 11, 2018 11:04
Show Gist options
  • Save interference-security/0e70d5bed2e3c20000db30e69f034550 to your computer and use it in GitHub Desktop.
Save interference-security/0e70d5bed2e3c20000db30e69f034550 to your computer and use it in GitHub Desktop.
Mount a VMware virtual disk (.vmdk) file
# 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