One thing to notice is that the output of fdisk (at the very end) is:
Code:
Command (m for help): Command (m for help): Command (m for help): Command (m for help):
got EOF thrice - exiting..
So theres obviously something not quite right about the method I suggested above. I searched around and saw others with a similar problem. I dont know what "sfdisk", but if its the non-interactive version of fdisk (which is what you would really want), then I would try and play with that. Though if your not worried about these warnings, then it should be ok.