Starting /usr/sbin/ocs-sr at 2022-08-04 12:36:28 UTC...
*****************************************************.
Clonezilla image dir: /tmp/ocs_onthefly_tgt.qN6NvS
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Running: task_restoreparts "d2d-pseudo" "sda1" "nd2d"
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Creating partition in /dev/sda...
Trying to clean the MBR and GPT partition table on the destination disk first: /dev/sda
Informing the OS of partition table changes... done!
Non-grub boot loader found on /tmp/ocs_onthefly_tgt.qN6NvS/d2d-pseudo/sda-mbr...
The CHS value of hard drive from EDD will be used for sfdisk.
Sfdisk >= 2.26 does not support C/H/S option. Skip using C/H/S option.
*****************************************************.
Thu Aug 4 12:36:36 UTC 2022
Writing the partition table...
No partition table exists in target disk /dev/sda, try to initialize one so that we can get the disk size by parted... Running: parted -s /dev/sda mklabel msdos
done!
Running: LC_ALL=C sfdisk --force /dev/sda < /tmp/ocs_onthefly_tgt.qN6NvS/d2d-pseudo/sda-pt.sf 2>&1 | tee -a /var/log/clonezilla.log
Checking that no-one is using this disk right now ... OK
Disk /dev/sda: 260 GiB, 279172874240 bytes, 545259520 sectors
Disk model: VBOX HARDDISK
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: 0x6859121b
Old situation:
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new DOS disklabel with disk identifier 0xd3cad3ca.
/dev/sda1: Created a new partition 1 of type 'HPFS/NTFS/exFAT' and of size 232.9 GiB.
/dev/sda2: Done.
New situation:
Disklabel type: dos
Disk identifier: 0xd3cad3ca
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 63 488375999 488375937 232.9G 7 HPFS/NTFS/exFAT
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Checking that no-one is using this disk right now ... OK
Disk /dev/sda: 260 GiB, 279172874240 bytes, 545259520 sectors
Disk model: VBOX HARDDISK
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: 0x6859121b
Old situation:
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new DOS disklabel with disk identifier 0xd3cad3ca.
/dev/sda1: Created a new partition 1 of type 'HPFS/NTFS/exFAT' and of size 232.9 GiB.
/dev/sda2: Done.
New situation:
Disklabel type: dos
Disk identifier: 0xd3cad3ca
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 63 488375999 488375937 232.9G 7 HPFS/NTFS/exFAT
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
This was done by: LC_ALL=C sfdisk --force /dev/sda < /tmp/ocs_onthefly_tgt.qN6NvS/d2d-pseudo/sda-pt.sf 2>&1 | tee -a /var/log/clonezilla.log
Checking the integrity of partition table in the disk /dev/sda...
Informing the OS of partition table changes.... done!
*****************************************************.
The first partition of disk /dev/sda starts at 63.
Restoring the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by:
dd if=/tmp/ocs_onthefly_tgt.qN6NvS/d2d-pseudo/sda-hidden-data-after-mbr of=/dev/sda seek=1 bs=512 count=62
62+0 records in
62+0 records out
31744 bytes (32 kB, 31 KiB) copied, 0.00025902 s, 123 MB/s
Informing the OS of partition table changes.... done!
*****************************************************.
*****************************************************.
Restoring partition /dev/sda1...
Using "-l -q 0 -p port" when it's netcat listen mode.
*****************************************************.
Using partclone.ntfs to clone...
Run partclone: nc 192.168.0.5 9015 | zstdmt -dc | partclone.ntfs -z 10485760 -N -L /var/log/partclone.log -s - -r -o /dev/sda1
Partclone v0.3.17 http://partclone.org
Starting to restore image (-) to device (/dev/sda1)
memory needed: 28602398 bytes
bitmap 7630874 bytes, blocks 2*10485760 bytes, checksum 4 bytes
Calculating bitmap... Please wait...
get device size 250048479744 by ioctl BLKGETSIZE64,
done!
File system: NTFS
Device size: 250.0 GB = 61046992 Blocks
Space in use: 7.1 GB = 1729377 Blocks
Free Space: 243.0 GB = 59317615 Blocks
Block size: 4096 Byte
read ERROR:No such file or directory
Failed to clone remote image to /dev/sda1
Informing the OS of partition table changes.... done!
*****************************************************.
Finding swap partition(s) in MBR table /tmp/ocs_onthefly_tgt.qN6NvS/d2d-pseudo/sda-pt.sf...
Probing sda with blockdev before restoring EBR...
Finding extended partition(s) in parted table /tmp/ocs_onthefly_tgt.qN6NvS/d2d-pseudo/sda-pt.parted...
Running: ocs-restore-mbr --ocsroot /tmp/ocs_onthefly_tgt.qN6NvS d2d-pseudo sda
Setting the TERM as linux
Restoring the first 446 bytes of MBR data (executable code area) for sda by:
dd if=/tmp/ocs_onthefly_tgt.qN6NvS/d2d-pseudo/sda-mbr of=/dev/sda bs=446 count=1
done.
*****************************************************.
Now tuning the file system size on partition /dev/sda1 to fit the partition size...
Running: ocs-resize-part --batch /dev/sda1
ntfsresize -f -f /dev/sda1
ntfsresize v2017.3.23AR.3 (libntfs-3g)
$MFTMirr does not match $MFT (record 0).
ERROR(5): Opening '/dev/sda1' as NTFS failed: Input/output error
NTFS is inconsistent. Run chkdsk /f on Windows then reboot it TWICE!
The usage of the /f parameter is very IMPORTANT! No modification was
and will be made to NTFS by this software until it gets repaired.
*****************************************************.
Now clear the NTFS volume dirty flag: /dev/sda1...
Running: ntfsfix -d /dev/sda1
Mounting volume... FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 0...OK
Correcting differences in $MFTMirr record 3...OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
*****************************************************.
Running: ocs-tux-postprocess sda1
Trying to remove udev hardware record in the restored OS...
The specified destination device: sda1
Trying to remove udev persistent files. The devices to be searched: sda1...
Skip /dev/sda1 (ntfs).
done!
*****************************************************.
Running: ocs-update-syslinux -b sda1
Device /dev/sda1 is not a FAT partition.
Skip updating syslinux on that.
*****************************************************.
Running: ocs-install-grub -p "sda1 " auto
The grub directory is NOT found. Maybe it does not exist (so other boot manager exists) or the file system is not supported in the kernel. Skip running grub-install.
*****************************************************.
Running: ocs-update-initrd -p "sda1 " auto
The boot and grub directory was NOT found. Maybe it does not exist (so other boot manager exists) or the file system is not supported in the kernel. Skip running .
*****************************************************.
Running: run_ntfsreloc_part -p "sda1" auto
The NTFS boot partition was not found or not among the restored partition(s). Skip running partclone.ntfsfixboot.
*****************************************************.
End of restoreparts job for image d2d-pseudo.
End of restoredisk job for image d2d-pseudo.
Checking if udevd rules have to be restored...
This program is not started by Clonezilla server, so skip notifying it the job is done.
This program is not started by Clonezilla server, so skip notifying it the job is done.
Finished!
Finished!
Now syncing - flush filesystem buffers...
Ending /usr/sbin/ocs-sr at 2022-08-04 14:42:19 UTC...
*****************************************************.
*****************************************************.
Notifying the source machine that my job is done... done!
Now syncing - flush filesystem buffers...
Running ...
Ending /usr/sbin/ocs-onthefly at 2022-08-04 14:42:19 UTC...