· 7 years ago · Sep 25, 2018, 09:06 PM
1Starting /usr/sbin/ocs-onthefly at 2018-09-25 01:49:59 UTC...
2Shutting down the Logical Volume Manager
3Finished Shutting down the Logical Volume Manager
4PS. Next time you can run this command directly:
5/usr/sbin/ocs-onthefly -g auto -e1 auto -e2 -j2 -r -rescue -icds -k1 -f sda -t sdb
6*****************************************************.
7*****************************************************.
8The first partition of disk /dev/sda starts at 2048.
9Saving the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by:
10dd if=/dev/sda of=/tmp/ocs_onthefly_local.S1OeQB/src-hidden-data.img skip=1 bs=512 count=2047
112047+0 records in
122047+0 records out
131048064 bytes (1.0 MB) copied, 0.00758521 s, 138 MB/s
14*****************************************************.
15Collecting partition /dev/sda1 info...
16Collecting partition /dev/sda2 info...
17Non-grub boot loader found on /tmp/ocs_onthefly_local.S1OeQB/sdb-mbr...
18The CHS value of hard drive from EDD will be used for sfdisk.
19Searching for data partition(s)...
20WARNING! THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! ALL EXISTING DATA WILL BE LOST: sdb
21*****************************************************.
22Machine: M56S-S3
23sdb (250GB_CT250MX500SSD1__CT250MX500SSD1_1829E14A98AF)
24sdb1 (152.6G_boot(In_CT250MX500SSD1_)_CT250MX500SSD1_1829E14A98AF)
25sdb2 (80.3G(In_CT250MX500SSD1_)_CT250MX500SSD1_1829E14A98AF)
26*****************************************************.
27Will create the partition on the target machine...
28Let me ask you again.
29*****************************************************.
30 [1;33mMachine: M56S-S3
31sdb (250GB_CT250MX500SSD1__CT250MX500SSD1_1829E14A98AF)
32sdb1 (152.6G_boot(In_CT250MX500SSD1_)_CT250MX500SSD1_1829E14A98AF)
33sdb2 (80.3G(In_CT250MX500SSD1_)_CT250MX500SSD1_1829E14A98AF)
34 [0;39m*****************************************************.
35 [1;33mWARNING!!! WARNING!!! WARNING!!!
36WARNING! THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! ALL EXISTING DATA WILL BE LOST: sdb
37 [0;39mAre you sure you want to continue? ? (y/n) OK, let's do it!!
38Shutting down the Logical Volume Manager
39Shutting down the Logical Volume Manager
40Finished Shutting down the Logical Volume Manager
41Finished Shutting down the Logical Volume Manager
42Trying to clean the MBR and GPT partition table on the destination disk first: /dev/sdb
43Creating MBR type's partition table...
44 [1;33mCreate the proportional partition table based on /tmp/ocs_onthefly_local.S1OeQB/tgt-pt.sf and the size of /dev/sdb...
45 [0;39mNo partition table exists in target disk /dev/sdb, try to initialize one so that we can get the disk size by parted... done!
46The ratio for target disk size to original disk size is .7812.
47The partition table to write in /dev/sdb:
48*****************************************
49unit: sectors
50/dev/sdb1 : start= 2048, size= 319979520, Id=7, bootable
51/dev/sdb2 : start= 319981568, size= 168371623, Id=7
52/dev/sdb3 : start= 0, size= 0, Id=0
53/dev/sdb4 : start= 0, size= 0, Id=0
54*****************************************
55Running: sfdisk --force -C 38912 -H 255 -S 63 /dev/sdb < /tmp/new_sf.2tdNbd
56
57Disk /dev/sdb: 38912 cylinders, 255 heads, 63 sectors/track
58Old situation:
59Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
60
61 Device Boot Start End #cyls #blocks Id System
62/dev/sdb1 1 30400 30400 244188000 83 Linux
63/dev/sdb2 0 - 0 0 0 Empty
64/dev/sdb3 0 - 0 0 0 Empty
65/dev/sdb4 0 - 0 0 0 Empty
66New situation:
67Units: sectors of 512 bytes, counting from 0
68
69 Device Boot Start End #sectors Id System
70/dev/sdb1 * 2048 319981567 319979520 7 HPFS/NTFS/exFAT
71/dev/sdb2 319981568 488353190 168371623 7 HPFS/NTFS/exFAT
72/dev/sdb3 0 - 0 0 Empty
73/dev/sdb4 0 - 0 0 Empty
74Successfully wrote the new partition table
75
76Re-reading the partition table ...
77
78Partition table was created by: sfdisk --force -C 38912 -H 255 -S 63 /dev/sdb < /tmp/new_sf.2tdNbd
79done!
80*****************************************************.
81The first partition of disk /dev/sdb starts at 2048.
82Restoring the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by:
83dd if=/tmp/ocs_onthefly_local.S1OeQB/tgt-hidden-data.img of=/dev/sdb seek=1 bs=512 count=2047
842047+0 records in
852047+0 records out
861048064 bytes (1.0 MB) copied, 0.0247041 s, 42.4 MB/s
87*****************************************************.
88Cloning the boot loader (executable code area) from "sda" to "sdb"...
89Now we will start to clone data to the target machine...
90Searching for data partition(s) in source disk: sda ...
91Source partition file system is ntfs...
92Cloning the /dev/sda1 to /dev/sdb1...
93Using partclone to clone...
94Run partclone: partclone.ntfs -z 10485760 -N --rescue -L /var/log/partclone.log -b -s /dev/sda1 -O /dev/sdb1
95Partclone v0.2.66 http://partclone.org
96Starting to back up device(/dev/sda1) to device(/dev/sdb1)
97we need memory: 6408260 bytes
98image head 4160, bitmap 6400000, crc 4100 bytes
99Calculating bitmap... Please wait... get device size 163829514240 by ioctl BLKGETSIZE64,
100Target partition size(163830 MB) is smaller than source(209716 MB). Use option -C to disable size checking(Dangerous).
101Failed to clone /dev/sda1 to /dev/sdb1
102Source partition file system is ntfs...
103Cloning the /dev/sda2 to /dev/sdb2...
104Using partclone to clone...
105Run partclone: partclone.ntfs -z 10485760 -N --rescue -L /var/log/partclone.log -b -s /dev/sda2 -O /dev/sdb2
106Partclone v0.2.66 http://partclone.org
107Starting to back up device(/dev/sda2) to device(/dev/sdb2)
108we need memory: 3375908 bytes
109image head 4160, bitmap 3367648, crc 4100 bytes
110Calculating bitmap... Please wait... get device size 86206270976 by ioctl BLKGETSIZE64,
111Target partition size(86207 MB) is smaller than source(110352 MB). Use option -C to disable size checking(Dangerous).
112Failed to clone /dev/sda2 to /dev/sdb2
113*****************************************************.
114Searching for data partition(s) in target disk for post process: sdb...
115Now tuning the file system size on partition /dev/sdb1 to fit the partition size...
116"boot" is an unknown or unsupported filesystem... Skip resizing that.
117*****************************************************.
118Now tuning the file system size on partition /dev/sdb2 to fit the partition size...
119Unknown or unsupported partition (/dev/sdb2) found! Skip this partition /dev/sdb2.
120*****************************************************.
121Creating the swap partition if exists...
122*****************************************************.
123Trying to remove udev hardware record in the restored OS...
124The specified destination device: sdb1 sdb2
125Trying to remove udev persistent files. The devices to be searched: sdb1 sdb2...
126Now searching possible device /dev/sdb1...
127Skip /dev/sdb2 (No file system. Extended partition?).
128done!
129*****************************************************.
130Device /dev/sdb1 is not a FAT partition.
131Skip updating syslinux on that.
132Device /dev/sdb2 is not a FAT partition.
133Skip updating syslinux on that.
134*****************************************************.
135Run grub install on disk sdb...
136The 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.
137*****************************************************.
138Try to run partclone.ntfsfixboot for NTFS boot partition if it exists. Scanning partition(s): sdb1 sdb2...
139The NTFS boot partition was not found or not among the restored partition(s). Skip running partclone.ntfsfixboot.
140*****************************************************.
141Ending /usr/sbin/ocs-onthefly at 2018-09-25 01:52:34 UTC...