News for hackers. Stuff that matters.
Re:Cloning a Laptop over NVMe TCP by jeroenhd on Tuesday March 12, 2024 @03:11AM (#39676912)
I'm sure there are benefits to this approach, but I've transferred laptops before by launching an installer on both and then combining dd and nc on both ends. If I recall correctly, I also added gzip to the mix to make transferring large null sections faster.

With the author not having access to an ethernet port on the new laptop, I think my hacky approach might've even been faster because of the slight boost compression would've provided, given that the network speed is nowhere near the speed limit compression would add to a fast network link.

Re:Cloning a Laptop over NVMe TCP by rincebrain on Tuesday March 12, 2024 @03:29AM (#39677001)
Well, if it's whole-disk encrypted, unless they told LUKS to pass TRIM through, you'd not be getting anything but essentially random data for the way the author described it.
Re:Cloning a Laptop over NVMe TCP by Moneysac on Tuesday March 12, 2024 @03:13AM (#39676923)
could you explain how you do that exactly?
Re:Cloning a Laptop over NVMe TCP by gouggoug on Tuesday March 12, 2024 @03:28AM (#39676993)
Re:Cloning a Laptop over NVMe TCP by jeroenhd on Tuesday March 12, 2024 @01:20PM (#39682179)
Basically https://news.ycombinator.com/item?id=39676881, but also adding a pipe through gzip/gunzip in the middle for data compression.

I think I did something like `nc -l -p 1234 | gunzip | dd status=progress of=/dev/nvme0n1` on the receiving end and `dd if=/dev/nvme0n1 bs=40M status=progress | gzip | nc 10.1.2.3:1234` on the sending end, after plugging an ethernet cable into both devices. In theory I could've probably also used the WiFi cards to set up a point to point network to speed up the transmission, but I couldn't be bothered with looking up how to make nc use mptcp like that.