From 06fcc03a497d5c49bb9b0e70474c971bf2fecae9 Mon Sep 17 00:00:00 2001 From: Joshua Pickard Date: Fri, 9 Sep 2022 14:38:21 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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