I thought it was about programming, since reformatting or copying data back and forth is often a function of what I do in programming.
It is not a part of the process of writing the code. The question would be on topic if you were writing a script to automate a process that includes reformatting a disk, for example. Then you would have a question about that script, which is code (even if it is shell script, Bash etc.). Simply knowing how to use Linux commands is generally not considered code, even though you might include them verbatim in a script.
what SE site is the best place to ask this?
You presumably want Unix & Linux. You could also try https://superuser.com.
However, I would start with man sfdisk
at the command line, or linux sfdisk
in a search engine.