Case scenario:
$ sudo fdisk -l
Disk /dev/sda: 223,6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x13a30a5a
Device Boot Start Final Sectors Size Id Type
/dev/sda1 * 2048 1333247 1331200 650M 27 WinRE NTFS hidden
/dev/sda2 1333248 264058879 262725632 125,3G 7 HPFS/NTFS/exFAT
/dev/sda3 264060926 468860927 204800002 97,7G 5 Extended
/dev/sda5 264060928 434049023 169988096 81,1G 7 HPFS/NTFS/exFAT
/dev/sda6 434051072 464771775 30720704 14,7G 83 Linux
/dev/sda7 464773120 468860927 4087808 2G 82 Linux swap / Solaris
Windows 10 is installed on /dev/sda2
and I assume that /dev/sda1
is a hidden partition from the same Windows system.
How can I backup my Windows 10 installation from Linux in order to restore it later?
Further data upon request:
- By "Installation" I mean the "full partition" (or partitions) required to return Windows to the moment the cloning was made.
- Being able to restore to the same system (computer, hardware) and even hard drive would enough. I.e: I installed Windows 10, made backup, and a few months ago I want to restore the backup I made, so there is no need to perform the full installation of Windows 10 (drivers, printers, programs...etc) again.
Tested until now (all tests performed on the same computer with the same partition layout):
- PartImage (cloning
sda1
andsda2
): not working. The restored operating system will not boot. - FSArchiver (cloning
sda1
andsda2
): not working. The restored operating system will not boot.
dd
is the most reliable way. If however you meant files on the partition, thentar
can do that just fine. This is worth clarifying in your question. How are you testing the restore - onto the same drive, or a different drive with a different partition layout? – ajeh May 15 '18 at 21:14dd
can do it, it could be OK for me, but please remember there are more partitions on the drive. – Sopalajo de Arrierez May 15 '18 at 21:52dd
can certainly do that and I use it all the time to image drives, including Windows. All you need to do is grab images of all involved partitions and store them so that you would know to which device to restore, i.e. name them aftersda1.img
,sda2.img
etc. And as there will be tons of free space in most cases, pipedd
output throughpbzip2
orp7zip
to createsda1.img.bz
etc. to save space. – ajeh May 15 '18 at 22:01dd
it on Windows 10? – Sopalajo de Arrierez May 15 '18 at 22:05dd
with up to Windows 8.1 images, as well as QNX, Apple Mac, Solaris, FreeBSD and OS/2. I do not have a Windows 10 distro to try, as I consider this a giant malware to stay away from. – ajeh May 15 '18 at 22:08dd
since that will backup empty space too. Instead look at something likeclonezilla
– ivanivan May 15 '18 at 23:42dd
the entire drive when I need the restored image to boot reliably afterwards. It does take up more space, but it's simpler than messing with rebuilding the boot partition. – Mio Rin May 16 '18 at 07:23partimage
? Tools such aspartimage
andpartclone
--and depending on how it's useddd
-- work on the partition level; Well, the block device level actually, but anyway... The MBR contains part of the Windows bootloader, so without restoring it Windows won't boot. – Emmanuel Rosa May 16 '18 at 17:48partimage
orfsarchiver
does not modify it. The process is the same I performed for many years with any other Windows or Linux operating system's partition. As I wrote on my answer below, I executeddd
only on the partition (not the MBR or the whole disk) and it worked like a charm... a slow and huge (high GB consumption) charm, but a charm. – Sopalajo de Arrierez May 16 '18 at 20:08