![DD命令破坏了Ubuntu的分区表](https://linux22.com/image/1160021/DD%E5%91%BD%E4%BB%A4%E7%A0%B4%E5%9D%8F%E4%BA%86Ubuntu%E7%9A%84%E5%88%86%E5%8C%BA%E8%A1%A8.png)
我有两个完全相同型号和容量的硬盘,第一个/dev/sda
硬盘上装有 Ubuntu Server 16.04 ( ),第二个硬盘 ( /dev/sdb
) 以前是不同系统上的 RAID 配置的一部分。我想从 Ubuntu LiveCD 克隆我使用的命令/dev/sda
,但命令结束后,fdisk -l 的输出显示:/dev/sdb
sudo dd if=/dev/sda of=/dev/sdb
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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: 0xcf7ffe95
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 1001470 1953523711 1952522242 931G 5 Extended
/dev/sda5 1001472 1953523711 1952522240 931G 8e Linux LVM
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 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 /dev/mapper/ubuntu--vg-root: 930.1 GiB, 998663782400 bytes, 1950515200 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 /dev/mapper/ubuntu--vg-swap_1: 976 MiB, 1023410176 bytes, 1998848 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
我认为该dd
命令以某种方式破坏了分区表,/dev/sdb
但这可能是什么原因造成的?