我有一个 1TB 的硬盘/dev/sda,我买了一个 2TB 的新磁盘/dev/sdb。中已经有一些分区sda。
我跑了dd if=/dev/sda of=/dev/sdb,然后把我的旧 1TB 磁盘/dev/sda扔进垃圾箱。然后我在新磁盘中启动到操作系统,一切正常。

然后我想添加一个新分区到/dev/sdb. 我跑,gdisk但它不允许我这样做。
这是 gdisk 所说的:(有 3907029168 个扇区(2TB),但最后一个可用扇区是 1953525134(1TB))
Command (? for help): p
Disk /dev/sdb: 3907029168 sectors, 1.8 TiB
Model: ST2000LX001-1RG1
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): F1EABB30-5410-4D71-AF46-3AA39380AB87
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable …Run Code Online (Sandbox Code Playgroud)