Using DiskPart to Move Partition in Windows 10/7, Yes or No

April 19, 2019

Want DiskPart to move partition to desired location? Come and take a look at this page to learn how to move a partition from Command Prompt easily in Windows 10/7 as well as Windows Servers.

In need of moving partition in Windows

Usually, a hard drive has been partitioned after you purchased a computer. But sometimes it may not be well partitioned, that’s why so many users want to resize partition by themselves. And in some cases, moving partition is needed.

Generally, people would like to move a partition on a hard disk out of following reasons:

  • Move unallocated space. If you try to extend volume using Disk Management or DiskPart, you should aware of that the unallocated space has to be adjacent to the partition you’d like to extend. Then, the need of moving partition arising.

  • Move a specific partition to the end or start of a disk. For example, some user wants to move system drive to the start of the disk or move a certain volume to the end of the disk for better management. In fact, if there is a hidden partition like system reserved partition or EFI partition at the beginning of the disk, moving them may cause boot issues because those partitions usually contain boot files or system files. Thus, it is not recommended to take actions on them.

You may get other reasons to move a partition to the left or right, but how do you complete it?

Does DiskPart allow you to move partition?

DiskPart, a Windows in-built hard drive partition manage tool, helps people do many operations such as format partition, resize partition, assign drive letter, clean disk, convert between MBR and GPT, etc. Well, will it be able to move a partition for you?

Unfortunately, the answer is negative. Type diskpart > help and all available commands will be listed as below. You may find there is no “Move” command.

DiskPart Commands

Microsoft thinks it is a bad idea to change volumes’ location especially the first sector of a partition, so it throws away the function. Indeed, it is a little bit dangerous for common user who has less computer experiences to move partition.

However, if you know exactly what you’re doing and the need is urgent, or you’re moving a partition on a non-system disk, you can try this way to make it. It will help you move partition in Windows 10/8/7 easily.

How to move partition with command line in Windows 10/7 step by step?

AOMEI Partition Assistant Professional is powerful hard drive partition manager that you could rely on. With its embedded utility, Partassist.exe, you can move partition in CMD to the left or right side with simple steps. More important, it will align partition to optimize reading and writing speed while moving.

To be specific, it allows you to move not only partitions including recovery partition but also unallocated spaces. You can move a partition through drive letter as well as volume number. Besides, you have options to enter how much size you want to move or leave it entirely moved. By default, the specified size is in MB yet GB is available as well.

Further, if you just want to allocate free space from one partition to another, the software will definitely help you. Steps are quite easy and here comes the full guide.

How to move partition in Command Prompt step by step?

1. Install AOMEI Partition Assistant Professional on your computer. Remember the installation path.

2. Click Start and then type command prompt in the Search box. Right click Command Prompt from the result and select Run as administrator to open an elevated command prompt.

3. At the prompt, input cd + the installation path of AOMEI Partition Assistant and press Enter. For example, cd C:\Program Files (x86)\AOMEI Partition Assistant.

Type Installation Path

4. Here are some common situations and corresponding commands to move a partition you may need. Just input one of them and then press Enter will be workable. You need to replace the disk number, volume number or drive letter when necessary.

a. Change the location of a partition by moving 1000MB or 10GB to the left side and align the partition to optimize reading/writing speed.

  • partassist.exe /hd:0 /move:0 /left:1000 /align

  • partassist.exe /move:F /left:10GB /align

b. Move a partition to occupy all unallocated space on its left side and align the partition to optimize reading/writing speed.

  • partassist.exe /hd:0 /move:0 /left:auto /align

  • partassist.exe /move:F /left:auto /align

c. Change the location of a partition by moving 1000MB or 10GB to the right side and align the partition to optimize reading/writing speed.

  • partassist.exe /hd:0 /move:0 /right:1000 /align

  • partassist.exe /move:F /right:10GB /align

d. Move a partition to occupy all unallocated space on its right side and align the partition to optimize reading/writing speed.

  • partassist.exe /hd:0 /move:0 /right:auto /align

  • partassist.exe /move:F /right:auto /align

Descriptions:

  • /hd: followed by disk number, starts with 0.

  • /move: followed by volume number or drive letter. If the specified value is drive letter, disk number can be ignored.

  • /left: move to the left side or followed by specific size.

  • /right: move to the right side or followed by specific size.

  • /align: optimize reading and writing speed for partitions.

Tips: if you have no idea about disk number, volume number or drive letter, you can type diskpart > list disk > list volume to learn more.

5. Finally, type exit to leave command prompt.

Apart from command line user interface, the software also provides graphical user interface (GUI), which designs for users who are not familiar with CMD operations. A partition can be dragged to the left or right side easily.

Move Partition

Please note that the Professional edition of AOMEI Partition Assistant works only on Windows PC operating systems. To move a partition using CMD in Windows Server OS, please refer to AOMEI Partition Assistant Server.

Conclusion

Although Microsoft gives some restrictions on DiskPart move partition operation, you have other approaches. AOMEI Partition Assistant is a good workaround solution. As a matter of fact, the software is capable of many other things. For instance, you can convert RAW to FAT32 using CMD, check disk with CMD, create or delete partition from command prompt, etc.