我正在将较大的 HDD(750GB)克隆到较小的 SSD(250GB)。我缩小了分区,只有 83gb 的已用空间。(我进行了碎片整理并进行了 chkdsk)。此外,分区大小的总和小于 SSD 大小。
我现在通过 pv 管道 dd 进程以查看传输的数据量。它仍在运行,并且已经在 170gb+ 上。为什么是这样?我在 dd 上使用了“conv=sync,noerror”参数。我以为它会以83gb结束..
这是“fdisk -l”输出:(/dev/sda = 750gb HDD,/dev/sdb = 250gb SSD)
Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 1465149167 732574583+ ee GPT
Partition 1 does not start on physical sector boundary.
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders, total 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 1465149167 732574583+ ee GPT
这是我用来克隆的命令:
sudo dd if=/dev/sda | pv | sudo dd of=/dev/sdb bs=64K conv=sync,noerror