![如何将一个设备中未分配的磁盘空间合并到另一个设备中?](https://linux22.com/image/197261/%E5%A6%82%E4%BD%95%E5%B0%86%E4%B8%80%E4%B8%AA%E8%AE%BE%E5%A4%87%E4%B8%AD%E6%9C%AA%E5%88%86%E9%85%8D%E7%9A%84%E7%A3%81%E7%9B%98%E7%A9%BA%E9%97%B4%E5%90%88%E5%B9%B6%E5%88%B0%E5%8F%A6%E4%B8%80%E4%B8%AA%E8%AE%BE%E5%A4%87%E4%B8%AD%EF%BC%9F.png)
当我执行“fdisk -l”时,我们可以看到:
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 500117503 499066880 238G Linux filesystem
Disk /dev/sda: 931,53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LX015-1U71
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 36C0FEFE-3500-445E-84F1-88E0D80BC401
我想将 /dev/sda 的 931,53 GiB “放入”分区 /dev/nvme0n1p2 的“/home”中
我该如何执行此操作?
我使用的是 Ubuntu 20.04.3 LTS