DriveSpace: Difference between revisions

From Piszczynski
piszczynski>Aleks
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 26: Line 26:


This will give you the Bytes/sector as well as other info
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 13: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