Skip to content
Drive Space

Drive Space

Disk Extension

Use partition manager or disk part to extend volumes.

If drive space in partition manager and file explorer do not match after volume extension use the following diskpart command:

  • Diskpart
    • list volume
      • select volume
        • extend filesystem

Online and Provision new disk:

In Diskpart:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
diskpart #open diskpart
list disk # find disk to online
select disk 2 # select the disk to online
attributes disk clear readonly # allow to write to the disk
online disk # bring disk online
convert gpt # initilise the disk to gpt
create partition primary # create primary partition
format fs=ntfs quick label=Data # format disk
assign letter=D # assign disk letter
exit # exit diskpart

Drive Space Cleanup Windows

Check temp folders

Check if windows update needs to be running and delete software distribution if not

Check for not required windows SxS components using DISM.exe in Powershell:

  • Dism.exe /online /Cleanup-Image /StartComponentCleanup

Check for log files and delete any not required

Disk Info

Find out info about disks - use “system information” - msinfo32

This will give you the Bytes/sector as well as other info

Check for drive issues

use the following commands to check for drive issues:

1
2
3
4
Get-PSDrive -Provider FileSystem
net use
[System.IO.DriveInfo]::GetDrives()
Get-WmiObject Win32_LogicalDisk

Unmount Ghost drive

If you need to get rid of a ghost drive that is not able to be removed by other means you can manually unmount the drive:

1
2
3
mountvol  /D
#example
mountvol F:\ /D

To remove all drive letter assignments for which there is no mounted drive use the /R option:

1
mountvol/R