DriveSpace: Difference between revisions

From Piszczynski
piszczynski>Aleks
(Created page with " == 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 com...")
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== 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 ==
== Drive Space Cleanup Windows ==
Line 6: Line 16:
Check if windows update needs to be running and delete software distribution if not
Check if windows update needs to be running and delete software distribution if not


Check for not required windows components using DISM.exe in Powershell:
Check for not required windows SxS components using DISM.exe in Powershell:
*Dism.exe /online /Cleanup-Image /StartComponentCleanup
*Dism.exe /online /Cleanup-Image /StartComponentCleanup


Check for log files and delete any not required
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:<syntaxhighlight lang="powershell">
Get-PSDrive -Provider FileSystem
net use
[System.IO.DriveInfo]::GetDrives()
Get-WmiObject Win32_LogicalDisk
</syntaxhighlight>
== 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:<syntaxhighlight lang="powershell">
mountvol <Drive letter> /D
#example
mountvol F:\ /D
</syntaxhighlight>To remove all drive letter assignments for which there is no mounted drive use the /R option:<syntaxhighlight lang="powershell">
mountvol/R
</syntaxhighlight>

Latest revision as of 12:39, 14 May 2024

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