jnptd.over-blog.com/
12 Janvier 2021
Creating a bit-identical disk image is one way to ensure the system backup will be exactly as the original. Bit-identical images can be made in Linux with dd, available on nearly all live CDs. Most commercial imaging software is 'user-friendly' and 'automatic' but may not create bit-identical images.
This page documents how to create a hard disk image in QEMU.
The standard command for creating a basic hard disk image is this.
It will create an output similar to this:
The command is broken down like this:
QEMU can recognize and read several different file formats, but this section will list the ones you can create with qemu-img.
The recommended file format. It is fast, dynamically allocated, and has decent support in QEMU. However it does have a minor speed loss compared to raw, but this is unnoticeable in normal use.

This is an older version of the qcow2 file format. The main difference between the qcow2 and qcow file formats is that qcow2 supports multiple snapshots through a newer, flexible model for storing snapshots. It is recommended to use qcow2 instead.
As the name suggests - it is a 'raw' file format, which means it will allocate all the space to the disk immediately, e.g. if you formatted a file named raw with 2G as the size, it would take up 2 gigabytes of space on the disk. This is the fastest option, and is recommended if you have a lot of disk space to spare.
A file format which is also compatible with VirtualBox 1.1. Recommended only if you are going to be switching through VirtualBox and QEMU frequently.
A file format which is compatible with VMWare 3 and 4. Recommended only if you are going to be switching through VMWare and QEMU frequently. It supports the following arguments:
A file format which is compatible with Windows Virtual PC. Recommended only if you are going to be switching through Windows Virtual PC and QEMU frequently.
A Hyper-V compatible image format. Not recommended unless you're going to switch between Hyper-V and QEMU frequently.
A Parallels compatible image format. Not recommended unless you're going to switch between Parallels and QEMU frequently.
Not a file with any format - just a plain raw file.
Ancient, depreciated QEMU file format that is not present in newer versions. Like qcow2 and qcow, it is a dynamically allocated file format. This cannot be used in Win32. Not recommended.
You can use installation media (a USB flash drive or DVD) to install a new copy of Windows, perform a clean installation, or reinstall Windows 10.
To create installation media, go to the software download website, where you'll find step-by-step instructions. On that website, you can select a version of Windows and create your own installation media using either a USB flash drive or a DVD. To go directly to one of the versions, select one of these links:
Windows 10 (Then select Download tool now.)
Important: Back up your files before you install or reinstall Windows on your PC. Learn how for Windows 10 or for Windows 7 and Windows 8.1.

To create the installation media, here's what you'll need:
A PC with a reliable internet connection. The download time will vary, depending on your internet connection.
A USB flash drive or DVD. A blank USB flash drive with at least 8 GB of space, or a blank DVD (and DVD burner). We recommend using a blank USB or blank DVD because any content on it will be deleted. When burning a DVD from an ISO file, if you're told the disc image file is too large, you'll need to use dual layer (DL) DVD media.
A product key. Your 25-character product key (not required for digital licenses). For help finding it, go to Find your Windows product key.
After you've created the installation media, you can reset or reinstall Windows. To learn more, go to Recovery options in Windows 10.
