Virtual Disk Drives/Partition Issues

TSC Support
TSC Support used Ask the Experts™
on
I inherited a VMWare server environment where the old admin setup 1 hard disk and split that hard disk into two partitions for the OS Partition and the Data partition. It wouldn't be that bad, however the person only made the OS partition 40 GB and I'm constantly running into disk space issues. Windows will not allow me to extend the partition because it is at the beginning of the virtual disk and when I add more space through vSphere, it only allows to extend the Data partition. Does anyone have any suggestions on either how to actually get the OS partition extended or move it to a new virtual disk that I could add through VMWare? Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
create a new virtual disk, attach, create new drive (should be drive f: if not just change the reference in the robocopy to the actual drive letter.
copy over the current data disk
robocopy d:\ f:\ /copyall /e /sec /b
change the drive letters using diskmgmt.msc
delete the data partition on the original virtual disk
if the partition d: was a primary partition you are good to expand the current c:
otherwise you have to delete the logical partition as well

Author

Commented:
Thank you for the post. And this command will keep all current share and ntfs permissions in place for the folders and files on the Data drive?
Your other option would be to extend the virtual disk in VMware, and then use a 3rd party utility to move the data/extend the partition you want to expand.

GParted or another similar software could be used.
http://gparted.org

When manipulating partitions its always a good idea to have a good backup just in case.

Additionally you could try using a tool like VMware importer to import the machine into another host (possibly same host different datastore; haven't tried this). When going through the options it gives you the opportunity to separate partions into different drives. That would allow you more flexibility down the road.

https://www.vmware.com/support/ws55/doc/ws_newguest_vm_importer.html
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Top Expert 2016
Commented:
it will keep the ntfs permissions

Just to be safe

to save:
reg export HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares shareperms.reg
icacls d:\ /save ntfsperms.txt /t /c

Open in new window


to restore:
    reg import shareperms.reg
    icacls d:\ /restore ntfsperms.txt

Open in new window

Author

Commented:
Thanks! I've looked into some 3rd party tools, but haven't had any verified any yet. Thanks. I'll look into the VMWare tool as well, but I'm running 5.1 Update 3 and not 5.5.
Top Expert 2016

Commented:
upon testing you will have to run icals per each directory
 Directory of D:\
$RECYCLE.BIN
FEBE
msdownld.tmp
Music
Pictures
Recovery
Setup
SPVHD
System Volume Information
Videos
              10 Dir(s)   5,816,766,464 bytes free

Open in new window



icacls d:\febe /save febe-ntfsperms.txt /t /c
icacls d:\ /restore febe-ntfsperms.txt
icacls d:\music /save music-ntfsperms.txt /t /c
icacls d:\ /restore music-ntfsperms.txt

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial