使用 dd 从 SSD 迁移到 NVME

使用 dd 从 SSD 迁移到 NVME

我有一个 500GB 的 SSD:

/dev/sdc2        457G  201G  234G  47% /

以及 1TB nvme: /dev/nvme0n1

因此我运行了迁移命令:

dd if=/dev/sdc of=/dev/nvme0n1 bs=4M status=progress conv=sync,noerror

之后运行时fdisk -l出现错误:

GPT PMBR size mismatch (976773167 != 1953525167) will be corrected by write.
The backup GPT table is not on the end of the device. This problem will be corrected by write.
Disk /dev/nvme0n1: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Sabrent Rocket Q                        
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: BEE8FD2F-22E4-4D07-A959-618E4EA7BE8B

当我尝试调整大小时:

resize2fs /dev/nvme0n1
resize2fs 1.45.5 (07-Jan-2020)
resize2fs: Bad magic number in super-block while trying to open /dev/nvme0n1
Couldn't find valid filesystem superblock.

我做错了什么?此外,调整大小后我应该怎么做,因为两者/dev/sdc2都有/dev/nvme0n1相同的 UUID,运行时mount -a不知道该选择哪一个?

相关内容