Update Workflows/Windows/Delete Windows Recovery Partition.md
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
Sometimes you are running a virtual machine and are running out of space, and want to expand the operating system disk. However, there is a recovery partition to-the-right of the operating system partition. When this happens, you have to delete that partition in order to expand the storage space for the operating system.
|
||||
|
||||
**From within the VM** > Open a powershell window and run the following commands:
|
||||
``` powershell
|
||||
```powershell
|
||||
diskpart # (1)
|
||||
list disk # (2)
|
||||
select disk 0 # (3)
|
||||
@ -23,3 +23,18 @@ exit # (9)
|
||||
7. You want to select the operating system partition now, so we can expand it. This partition will generally be of a type "**Primary**" and be the largest size partition on the disk.
|
||||
8. This will expand the operating system partition into the unallocated space that is now available to it.
|
||||
9. Gracefully close the disk management CLI utility.
|
||||
|
||||
## Free Space Validation
|
||||
From this point, you might want to triple-check the free space has been accounted for, so you can run the following command to check for free space:
|
||||
```powershell
|
||||
Get-Volume | Select-Object DriveLetter, FileSystem, @{Name="FreeSpace(GB)"; Expression={"{0:N2}" -f ($_.SizeRemaining / 1GB)}}, @{Name="TotalSize(GB)"; Expression={"{0:N2}" -f ($_.Size / 1GB)}}
|
||||
```
|
||||
|
||||
!!! example "Output Example"
|
||||
```
|
||||
DriveLetter FileSystem FreeSpace(GB) TotalSize(GB)
|
||||
----------- ---------- ------------- -------------
|
||||
C NTFS 398.40 476.20
|
||||
FAT32 0.06 0.09
|
||||
NTFS 0.11 0.63
|
||||
```
|
Reference in New Issue
Block a user