meta data for this page
This is an old revision of the document!
send / receive
migrate to new storage
Use Clonezilla live USB with latest 6.11 kernel.
There is a hole between Windows partitions and Windows recovery partitions:
parted /dev/nvme0n1 print free Number Start End Size File system Name Flags 17.4kB 1049kB 1031kB Free Space 1 1049kB 106MB 105MB fat32 EFI system partition boot, esp, no_automount 2 106MB 123MB 16.8MB Microsoft reserved partition msftres, no_automount 3 123MB 60.3GB 60.2GB ntfs Basic data partition msftdata 60.3GB 511GB 451GB Free Space 4 511GB 512GB 944MB ntfs Basic data partition hidden, diag, no_automount 512GB 512GB 335kB Free Space
So create 16GB swap at end and BTRFS for root part.
parted /dev/nvme0n1 mkpart swap sw 495G 511G mkpart root btrfs 60.3GB 495GB
mkfs.btrfs /dev/nvme0n1p6 mkdir /target mount /dev/nvme0n1p6 /target cd /target btrfs sub create @rootfs
sudo apt install netcat-openbsd pv zstd
Sender:
btrfs send | zstd --fast -T0 | pv | nc -w 2 -N <remote_ip> 44444
Receiver:
nc -vl 44444 | zstd -d | pv | btrfs receive /target