Wednesday, 15 April 2015

VM showing wrong Disk size

VM having 50 GB storage shows only 29 GB in My computers.

From the Start menu right click on Computer which will provide a drop down menu. 
Choose Manage.
Select Disk Management 
Look for the drive size if its show wrong size here. you need to rescan and check for additional space. if it show 50 GB in Disk Management and  29 GB in my computer explorer. some space is not taken by system. you need to extend it. 

You can do this in way Option 1 or Option 2. Option 1 is applicable to VM. but Option 1 can't be used in child VDI desktop, you need to follow Option 2 in case of VDI.

Option 1
Open VM Edit Setting

 Select Hard Disk

 Change  hard disk size.. add a small MB' it

 Go to Disk Management. Do Rescan Disks

 you will able to see newly added storage

 right Click on respective Disk and Select Extend Volume..

 Click Next

 Here we have increased 7 MB, by default it will select 7MB disk.. just click Next

 Click Finish

 Go Back to My computer. if it still show old storage size

 Refresh it ... you will able to see actual size

Option 2

In Case if a VDI Desktop is deployment with this Scenario, you need to follow Option 2.... Option 1 will not work. since all VDI Desktop has one common snapshot point.. it will not allow to change storage size... so we have Option 2 for VDI desktop.

Open a Command Prompt window. To open the Command Prompt on a Windows Vista or Windows 7 machine click on Start and type cmd in the search bar. Then right click on cmd.exe and run as administrator. It will prompt you with the message, "Do you want to allow the following program to make changes to this computer," click yes. A black Command Prompt window will open.

This is the Command Prompt window.

 From the command prompt, type diskpart and press Enter.

1. The diskpart prompt will open.
2. From the diskpart prompt, type List Volume and press Enter.
3. A list of disks will appear in a text format. You will return to the diskpart prompt. Step one verified that Disk 1 is your respective disk
4. From the diskpart prompt you will need to select a disk disk number (for instance, if your respective disk drive is Disk 1, you would type Select Volume 1) and press Enter.
5. A message appears saying that Volume 1 is the selected volume You will return to the diskpart prompt.
6. From the diskpart prompt, type extend and press Enter. The drive's partition will extend all available space in disk. You will return to the diskpart prompt
7. The Command Prompt window will display the message "DiskPart successfully extended the volume".
8. To come out diskpart prompt type exit and press Enter.

Now open My Computer, refresh screen and you will find disk size is increased to actual size