交换两个大驱动器的内容和分区,但没有空间来存储这两个驱动器

交换两个大驱动器的内容和分区,但没有空间来存储这两个驱动器

我有一个 512GB 的 SSD,用来存储大部分备份和数据,还有一个 1TB 的 SSD,但使用不多。我一直想交换它们,但我没有足够大的另一个驱动器来存储任一驱动器的映像。有没有办法在不使用大型中间存储的情况下交换驱动器上的内容?

512 GB 驱动器:

/dev/sdb1 469G 290G 155G 66% /mnt/ssd

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0  79.9M  1 loop /snap/core/9069
loop1         7:1    0  79.9M  1 loop /snap/core/8936
sda           8:0    0 119.2G  0 disk 
├─sda1        8:1    0   256M  0 part 
└─sda2        8:2    0   119G  0 part /
sdb           8:16   0   477G  0 disk 
└─sdb1        8:17   0   477G  0 part /mnt/ssd
mmcblk0     179:0    0  29.8G  0 disk 
├─mmcblk0p1 179:1    0   256M  0 part /boot
└─mmcblk0p2 179:2    0  29.5G  0 part 

/dev/sdb1: UUID="5c293db6-6b16-48db-af86-732e081b2a0e" TYPE="ext4" PARTUUID="3c32c42c-01"


1tb 驱动器:

Filesystem      Size  Used Avail Use% Mounted on

/dev/root       938G   42G  850G   5% /
devtmpfs        328M     0  328M   0% /dev
tmpfs           458M     0  458M   0% /dev/shm
tmpfs            92M  1.3M   91M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           458M     0  458M   0% /sys/fs/cgroup
/dev/loop0      142M  142M     0 100% /snap/chromium/1139
/dev/loop2      142M  142M     0 100% /snap/chromium/1146
/dev/loop1       49M   49M     0 100% /snap/core18/1753
/dev/loop3       62M   62M     0 100% /snap/lxd/14894
/dev/loop4       63M   63M     0 100% /snap/gtk-common-themes/1506
/dev/loop5       49M   49M     0 100% /snap/core18/1708
/dev/loop6       62M   62M     0 100% /snap/lxd/14958
/dev/loop7       24M   24M     0 100% /snap/snapd/7267
/dev/mmcblk0p1  253M  141M  112M  56% /boot/firmware
tmpfs            92M  4.0K   92M   1% /run/user/1000
tmpfs            92M  4.0K   92M   1% /run/user/1001
tmpfs            92M  8.0K   92M   1% /run/user/116

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0 141.6M  1 loop /snap/chromium/1139
loop1         7:1    0  48.4M  1 loop /snap/core18/1753
loop2         7:2    0 141.6M  1 loop /snap/chromium/1146
loop3         7:3    0  61.4M  1 loop /snap/lxd/14894
loop4         7:4    0  62.1M  1 loop /snap/gtk-common-themes/1506
loop5         7:5    0  48.4M  1 loop /snap/core18/1708
loop6         7:6    0  61.5M  1 loop /snap/lxd/14958
loop7         7:7    0  23.5M  1 loop /snap/snapd/7267
sda           8:0    0 953.9G  0 disk 
└─sda1        8:1    0 953.9G  0 part /
mmcblk0     179:0    0  29.2G  0 disk 
├─mmcblk0p1 179:1    0   256M  0 part /boot/firmware
└─mmcblk0p2 179:2    0  28.9G  0 part 

/dev/mmcblk0p1: LABEL_FATBOOT="system-boot" LABEL="system-boot" UUID="85F3-CC2B" TYPE="vfat" PARTUUID="da84cd12-01"
/dev/mmcblk0p2: LABEL="writable" UUID="b96d647f-679e-4582-87d0-2d8c7afc91f4" TYPE="ext4" PARTUUID="da84cd12-02"
/dev/sda1: UUID="bc8e0523-a221-4e72-a3a6-077762464ae4" TYPE="ext4" PARTUUID="8b3ac4b5-01"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"


相关内容