Did you take a look at DiskPart? This utility should give you the ability to add unallocated space.
How to use Diskpart.exe to extend a data volume
Article ID : 325590
Last Review : October 6, 2004
Revision : 1.0
This article was previously published under Q325590
On this Page
SUMMARY
MORE INFORMATION
SUMMARY
This article describes how to use the Diskpart.exe command-line utility to extend a data volume into unallocated space.
MORE INFORMATION
You can use the Diskpart.exe utility to manage disks, partitions, and volumes from a command-line interface. You can use Diskpart.exe on both Basic disks and Dynamic disks. If an NTFS volume resides on a hardware RAID 5 container that has the capability of adding space to the container, you can extend the NTFS Volume with Diskpart.exe while the disk remains a Basic disk.
Note When you use Diskpart.exe to extend an NTFS partition, Microsoft recommends that you perform this task in Safe mode or Active Directory Restore mode. By doing so, you prevent open handles to the drive that cause the process to fail.
Use the extend command to incorporate unallocated space into an existing volume while preserving the data.
The following are the requirements for the extend command: • The volume must be formatted with the NTFS file system.
• For Basic volumes, the unallocated space for the extension must be the next contiguous space on the same disk.
• For Dynamic Volumes, the unallocated space can be any empty space on any Dynamic disk on the system.
• Only the extension of data volumes are supported. System or boot volumes may be blocked from being extended, and you may receive the following error:
Diskpart failed to extend the volume. Please make sure the volume is valid for extending
• You cannot extend the partition if the system page file is located on the partition. Move the page file to a partition that you do not wish to extend.
To extend a partition or volume, you must first select the volume to give it the focus, and then you can specify how large to make the extension. To extend a volume, follow these steps: 1. At a command prompt, type diskpart.exe.
2. Type list volume to display the existing volumes on the computer.
3. Type Select volume volume number where volume number is number of the volume that you want to extend.
4. Type extend [size=n] [disk=n] [noerr] . The following describes the parameters:
size=n
The space, in megabytes (MB), to add to the current partition. If you do not specify a size, the disk is extended to take up all of the next contiguous unallocated space.
disk=n
The dynamic disk on which to extend the volume. Space equal to size=n is allocated on the disk. If no disk is specified, the volume is extended on the current disk.
noerr
For scripting only. When an error is thrown, this parameter specifies that Diskpart continue to process commands as if the error did not occur. Without the noerr parameter, an error causes Diskpart to quit with an error code.
5. Type exit to quit Diskpart.exe.
Joseph L. Poandl
MCSE 2003
If your company is in need of experts to examine technical problems/solutions, please contact
(Sales@njcomputernetworks.com)