The following command which worked on a Scientific Linux server did not work on a Ubuntu server.
sfdisk -d /dev/sda | sfdisk –force /dev/sdb
Here is the error I received.
sudo sfdisk -d /dev/sdb | sfdisk –force /dev/sdc
/dev/sdc: Permission denied
sfdisk: cannot open /dev/sdc read-write
Even with Sudo the command refused to do what I expected. After a quick Google search I found the following which simply suggested to double the Sudo command which if you think about it makes sense.
sudo sfdisk -d /dev/sdb | sudo sfdisk –force /dev/sdc
Now I feel stupid, BTW I was creating a RAID 10 array.