Skip to content

Instantly share code, notes, and snippets.

@n00bsys0p
n00bsys0p / vdi2raw.sh
Created July 31, 2012 17:11
Script to convert a VirtualBox VDI to RAW disk image
#!/bin/bash
LODEV=$(sudo losetup -f)
# The output file name
FNAME="diskimage"
# File extension for the vmdk copy
VMDKEXT="vmdk"
# File extension for the raw copy
RAWEXT="raw"