Page 1 of 1

copy partition script

Posted: 23 Sep 2018 05:28
by Ed Dyreen
For years I've been using au3 scripts that would interface with PQMagic v8.1 to
-resize a primary partition created by Windows Experience setup (
AutoPartition = 0
MsDosInitiated = 0
UnattendedInstall = Yes
UnattendMode = FullUnattended
Repartition = Yes
Filesystem = ConvertNTFS
) to 10GB
-copy partition C on disk0 to end of unallocated space on disk0
-do some operations on new copied partition D
-delete primary partition, copy partition D towards beginning of disk, set active, delete partition D

Now I am automating Windows Server 2003 and unfortunately PQMagic v8.1 does not support Windows Server. I remember it took me days to write the script, test and debug it. I refuse to upgrade PQMagic beyond this version because of the new bugs and instabilities Symantec introduced with each new version after they took over PowerQuest.

I ducked for "commandline copy partition" without getting useful results so I googled for "commandline copy partition" with the same useless results.

I have several programs that do support Windows Server but none of them support "commandline copy partition".

I am not encouraged to write an application that would interface with modern GUIs because quality of most GUIs has been on decline since 2001 and thus I see it as a "if everything else fails" solution.

I am currently wondering if i can use dd for windows to copy a partition from the commandline :?

I am quite amazed that so many companies these days no longer have the skills to write clean intuitive GUIs. A squared window is ugly and looks old so lets make the corners round and fluffy and lets not support TUI so we look like amateurs.

Anyone has any idea for a quick and clean solution ?

Re: copy partition script

Posted: 24 Sep 2018 00:06
by sst
Try HDClone https://www.miray.de/products/sat.hdclone.html
It supports automation through its CLI. But I'm not sure if the free version has all the capabilities you need.

Re: copy partition script

Posted: 24 Sep 2018 07:10
by Ed Dyreen
Thanks that looks good it does indeed support CLI, although since it is intended to run on windows server only the enterprise version can be installed.

I will try Acronis Enterprise Server Disk Director first as it has become clear to me it also supports CLI and is probably the best software for scripted mass deployment and maintenance on the market and I have good experience with the True Image part of the software.

Thanks sst for expanding my options :)

Re: copy partition script

Posted: 25 Sep 2018 08:18
by Ed Dyreen
I describe some of the programs i studied to help people who are interested in advanced partitioning features beyond what is possible with diskpart. I am using server editions but they should also run on other editions of the Microsoft platform.

Acronis Disk Director Server wrote: This edition has a CLI but it cannot do things like copy volumes. All it supports is resize, delete, create and provides little benefit over using diskpart. Another downside is that you cannot express resize in MB but in sectors, this is very unintuitive.
EASEUS Partition Master Server Edition wrote: Same capabilities as Acronis Disk Director Server but it does allow to specify resize in MB.
HDClone Enterprise Edition wrote: Same capabilities as EASEUS Partition Master Server Edition
Paragon Partition Manager Enterprise Server Edition wrote: This is the only edition of Paragon Partition Manager that allows you to fully automate anything you can do with the GUI. You are not provided with a CLI but it is not required because you are supposed to use the GUI and instead of apply changes you choose generate script.