diff --git a/README.md b/README.md index 8510faa..45337de 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ + [Linux Users](https://git.laurelcountycorrections.org/jpickard/cheat-sheet/src/branch/master/README.md#linux-users) + [Windows](https://git.laurelcountycorrections.org/jpickard/cheat-sheet/src/branch/master/README.md#windows) + [Data Recovery](https://git.laurelcountycorrections.org/jpickard/cheat-sheet/src/branch/master/README.md#data-recovery) ++ [QEMU](https://git.laurelcountycorrections.org/jpickard/cheat-sheet/src/branch/master/README.md#qemu) My cheat sheet for commands I have trouble remembering. @@ -162,4 +163,12 @@ Take an image of a drive and log: Clone Disk A to Disk B: -`sudo ddrescue --force --no-scrape /dev/sdA /dev/sdB path/to/log.txt` \ No newline at end of file +`sudo ddrescue --force --no-scrape /dev/sdA /dev/sdB path/to/log.txt` + +# QEMU + +## Get disk information +`qemu-img info disk.qcow2` + +## Shrink .qcow2 +`qemu-img resize disk.qcow2 --shrink -10G` \ No newline at end of file