Convenient Backup
But there are two easy ways to make a disk image.
Both methods require booting any Linux system (from a flash drive) and superuser rights to execute (that is, sudo for Ubuntu and su for everyone else)
1.
> dd if=/dev/sda1 of=/media/disk/backup.bck2.
> cat /dev/sda1 | gzip > /media/disk/backup.bck.gzIn the examples, / dev / sda1 is the reserved partition, and / media / disk / - flash drive.
Accordingly, the second method is somewhat more convenient due to compression. And the first one is noticeably faster.
Recovery: in the first case, swap the arguments, and in the second - use the zcat command .
Ideas are gleaned on the Telegamochka blog and Moose_kazan comments there. Tested on my MSI Wind.