I am trying to image my Thinkpad P51 with Windows 10 pre-installed to be able to go back to the factory state.
However there is a "Microsoft reserved partition" that clonezilla fails on when I try to create an image from the disk.
The created image is not restorable.
Any ideas on how to make this work?
Error is at the end of this log.
Starting /usr/sbin/ocs-sr at 2018-04-18 04:00:14 UTC... ********.
Clonezilla image dir: /home/partimag
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
The selected devices: sda
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -q2 -c -j2 -z1p -i 2000 -p choose savedisk 2018-04-18-04-FACTORY sda *******.
The selected devices: sda
Searching for data partition(s)...
Searching for swap partition(s)...
The data partition to be saved: sda1 sda2 sda3 sda4
The swap partition to be saved:
The selected devices: sda1 sda2 sda3 sda4
The following step is to save the hard disk/partition(s) on this machine as an image: *******.
Machine: 20HHCTO1WW
sda (1000GB_ST1000LM035-1RK1_ST1000LM035-1RK172_WL13L74V)
sda1 (260M_vfat_SYSTEM(In_ST1000LM035-1RK1)_ST1000LM035-1RK172_WL13L74V)
sda2 (16M_Microsoft(In_ST1000LM035-1RK1)_ST1000LM035-1RK172_WL13L74V)
sda3 (930.3G_ntfs_Windows(In_ST1000LM035-1RK1)_ST1000LM035-1RK172_WL13L74V)
sda4 (1000M_ntfs_WinRE_DRV(In_ST1000LM035-1RK1)_ST1000LM035-1RK172_WL13L74V) *******.
-> "/home/partimag/2018-04-18-04-FACTORY".
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Saving block devices info in /home/partimag/2018-04-18-04-FACTORY/blkdev.list...
Saving block devices attributes in /home/partimag/2018-04-18-04-FACTORY/blkid.list...
Checking the integrity of partition table in the disk /dev/sda...
Reading the partition table for /dev/sda...RETVAL=0 *******.
Saving the primary GPT of sda as /home/partimag/2018-04-18-04-FACTORY/sda-gpt-1st by dd...
34+0 records in
34+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.0169966 s, 1.0 MB/s *******.
Saving the secondary GPT of sda as /home/partimag/2018-04-18-04-FACTORY/sda-gpt-2nd by dd...
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.00177307 s, 9.2 MB/s *******.
Saving the GPT of sda as /home/partimag/2018-04-18-04-FACTORY/sda-gpt.gdisk by gdisk...
The operation has completed successfully. ********.
Saving the MBR data for sda...
1+0 records in
1+0 records out
512 bytes copied, 0.000463265 s, 1.1 MB/s
Starting saving /dev/sda1 as /home/partimag/2018-04-18-04-FACTORY/sda1.XXX...
/dev/sda1 filesystem: vfat.
Use gzip to compress the image.
Image file will be split with size limit 2000 MB.
Run partimage: partimage -M -f3 -o -d -b -c -z0 --volume=0 --debug=1 -B gui=no save /dev/sda1 stdout | gzip -c --fast --rsyncable | split -b 2000m - /home/partimag/2018-04-18-04-FACTORY/sda1.
Time elapsed: 3.45 secs (~ .057 mins)
Finished saving /dev/sda1 as /home/partimag/2018-04-18-04-FACTORY/sda1.XXX ********.
Starting saving /dev/sda2 as /home/partimag/2018-04-18-04-FACTORY/sda2.XXX...
/dev/sda2 filesystem: Microsoft. *******.
This file system is not supported by smart programs, e.g. partclone, partimage or ntfsclone, or you force to use dd to save the file system: Microsoft
dd will save and restore all the blocks in the harddrive, no matter if the block is used or not.
Use this method to save the image instead of partclone, partimage or ntfsclone: partclone.dd + pigz
Image file will be split with size limit 2000 MB.
If this action fails or hangs after several minutes, check:
* Is the disk full ? *******.
Run partclone: partclone.dd -z 10485760 -N -L /var/log/partclone.log -s /dev/sda2 --output - | pigz -c --fast -b 1024 -p 16 -R | split -b 2000m - /home/partimag/2018-04-18-04-FACTORY/sda2.dd-img. 2> /tmp/split_error.zUQ1ky *******.
Finished saving /dev/sda2 as /home/partimag/2018-04-18-04-FACTORY/sda2.dd-img **********.
Failed to save partition /dev/sda2.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The file system is detected from blkid or parted. So maybe it's buggy.
Did you try the latest Clonezilla live? like 2.5.6-22 or 2.6.0-31? https://clonezilla.org/downloads.php
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to image my Thinkpad P51 with Windows 10 pre-installed to be able to go back to the factory state.
However there is a "Microsoft reserved partition" that clonezilla fails on when I try to create an image from the disk.
The created image is not restorable.
Any ideas on how to make this work?
Error is at the end of this log.
Starting /usr/sbin/ocs-sr at 2018-04-18 04:00:14 UTC...
********.
Clonezilla image dir: /home/partimag
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
The selected devices: sda
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -q2 -c -j2 -z1p -i 2000 -p choose savedisk 2018-04-18-04-FACTORY sda
*******.
The selected devices: sda
Searching for data partition(s)...
Searching for swap partition(s)...
The data partition to be saved: sda1 sda2 sda3 sda4
The swap partition to be saved:
The selected devices: sda1 sda2 sda3 sda4
The following step is to save the hard disk/partition(s) on this machine as an image:
*******.
Machine: 20HHCTO1WW
sda (1000GB_ST1000LM035-1RK1_ST1000LM035-1RK172_WL13L74V)
sda1 (260M_vfat_SYSTEM(In_ST1000LM035-1RK1)_ST1000LM035-1RK172_WL13L74V)
sda2 (16M_Microsoft(In_ST1000LM035-1RK1)_ST1000LM035-1RK172_WL13L74V)
sda3 (930.3G_ntfs_Windows(In_ST1000LM035-1RK1)_ST1000LM035-1RK172_WL13L74V)
sda4 (1000M_ntfs_WinRE_DRV(In_ST1000LM035-1RK1)_ST1000LM035-1RK172_WL13L74V)
*******.
-> "/home/partimag/2018-04-18-04-FACTORY".
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Saving block devices info in /home/partimag/2018-04-18-04-FACTORY/blkdev.list...
Saving block devices attributes in /home/partimag/2018-04-18-04-FACTORY/blkid.list...
Checking the integrity of partition table in the disk /dev/sda...
Reading the partition table for /dev/sda...RETVAL=0
*******.
Saving the primary GPT of sda as /home/partimag/2018-04-18-04-FACTORY/sda-gpt-1st by dd...
34+0 records in
34+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.0169966 s, 1.0 MB/s
*******.
Saving the secondary GPT of sda as /home/partimag/2018-04-18-04-FACTORY/sda-gpt-2nd by dd...
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.00177307 s, 9.2 MB/s
*******.
Saving the GPT of sda as /home/partimag/2018-04-18-04-FACTORY/sda-gpt.gdisk by gdisk...
The operation has completed successfully.
********.
Saving the MBR data for sda...
1+0 records in
1+0 records out
512 bytes copied, 0.000463265 s, 1.1 MB/s
Starting saving /dev/sda1 as /home/partimag/2018-04-18-04-FACTORY/sda1.XXX...
/dev/sda1 filesystem: vfat.
Use gzip to compress the image.
Image file will be split with size limit 2000 MB.
Run partimage: partimage -M -f3 -o -d -b -c -z0 --volume=0 --debug=1 -B gui=no save /dev/sda1 stdout | gzip -c --fast --rsyncable | split -b 2000m - /home/partimag/2018-04-18-04-FACTORY/sda1.
The file system is detected from blkid or parted. So maybe it's buggy.
Did you try the latest Clonezilla live? like 2.5.6-22 or 2.6.0-31?
https://clonezilla.org/downloads.php
Steven