DriveSpace

From Piszczynski
Revision as of 12:39, 14 May 2024 by Aleks (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 <volume number>
        • extend filesystem

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:

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:

mountvol <Drive letter> /D
#example
mountvol F:\ /D

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

mountvol/R