I did share the code in my original post. Comparing with yours, seems like not many differences except with the block size, you're using much smaller chunk than mine. Currently I'm using 50MB. I did not try lower it to smaller than 10MB so maybe I can try that to see if the speed improves if the chunk is a lot smaller.Can you provide the dd commands you've tried? Perhaps the fastest and slowest if you have that data?
In my script that runs in initramfs which is a different use case than yours (likely only run once vs run regularly), I useCode:
dd bs=4k count=$partsize if=$rootfs of=$sdisk
Statistics: Posted by rasp14 — Mon May 26, 2025 11:50 pm