我的 HTC m10 上有一张三星 evo+ microSD 卡,几天前好像坏了。在尝试将其 dd 到本地磁盘,然后再 dd 回较新的 sd 卡失败几次后,我去买了一张较新的 Sandisk 128GB microSD 卡,并尝试将其 dd
几个小时后发生了这样的事情:
dd if=/dev/mmcblk0 of=/dev/sdd status=progress
127863939584 bytes (128 GB, 119 GiB) copied, 34160 s, 3.7 MB/s
dd: writing to '/dev/sdd': No space left on device
249737217+0 records in
249737216+0 records out
127865454592 bytes (128 GB, 119 GiB) copied, 34171.2 s, 3.7 MB/s
它们应该都是 128GB 卡,不确定为什么会发生这种情况? fdisk -l 输出显示以下内容:
Disk /dev/mmcblk0: 119.8 GiB, 128579534848 bytes, 251131904 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: gpt
Disk identifier: 0E47F670-C4DD-476D-BB0E-EB53A31FD907
Device Start End Sectors Size Type
/dev/mmcblk0p1 2048 34815 32768 16M unknown
/dev/mmcblk0p2 34816 251131870 251097055 119.7G unknown
GPT PMBR size mismatch (251131903 != 249737215) will be corrected by w(rite).
Disk /dev/sdd: 119.1 GiB, 127865454592 bytes, 249737216 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: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdd1 1 251131903 251131903 119.8G ee GPT
我错过了什么?
答案1
dev/sdd
比 稍微小一点/dev/mmcblk0
,这就是罪魁祸首,看看磁盘大小:
磁盘 /dev/mmcblk0:119.8 GiB,128579534848 字节,251131904 个扇区 磁盘 /dev/sdd:119.1 GiB,127865454592 字节,249737216 个扇区