1.    01 Aug 2016 #1
    Join Date : Dec 2015
    Posts : 5,461
    Windows10

    Hyper-V files not being obvious use of storage


    Came across an odd issue today. I was about to image backup my C drive, and I noted the storage was about 20 GB higher than I expected.

    So I made all folders including hidden system folders visible, and tried to see where the extra 20 GB was being used.

    So I used good old windirstat, and it showed storage as 20 GB less - how odd thought. I could not see where the extra 20 GB was in use. I then remembered by default windirstat does not display "unknown" folders. So I set it to show the unknown data size - hey presto my 20 GB but no more info than "unknown".

    I was about to try and delete them, as the "unknown" folders are usually something like old restore points etc. So I did a disk cleanup first, but this did not change anything.

    Did some googling, and it seems windirstat does not like long filenames. I installed treesize, and immediately it became clear the files were hyper-v files installed on the C drive (i had forgotten to set it to another drive as I usually do).

    What I find interesting was that checking the folder sizes of all the folders in the root directory individually did not allow me to track down the culprit immediately. Indeed I am not sure I could even have navigated to them.

    I then used move hyper-v vm option, and bam - my storage was recovered.

    What is also interesting is when I check my E drive, the hyper-v folder size is correct.

    So I guess the issue is related to how many directory levels the hyper-v files were buried on the C drive.

    Just thought it was worth mention this in case you end up deleting your hyper-v files by accident.
      My ComputerSystem Spec
  2.    02 Aug 2016 #2

    Hi there.

    @cereberus

    Windows has problems with file names longer than 250 - 260 chars (this includes the directory names too).

    I came up with this problem in trying to use a Windows machine as a media server -- loads of my music files weren't accessible from Windows.

    However I believe with the Aug 2nd release of Windows (Anniversary edition) you can (finally !!!!) enable long file names.

    Currently I'm using a Linux VM on HYPER-V for media serving -- works fine as I can pass through the Linux HDD's without re-formatting etc.

    Things like treesizefree and Windirstats might need to be updated to reflect long file size display. If I need to look at these I usually do it via the Linux VM and using Dolphin look at the Windows files via SAMBA.

    Cheers
    jimbo
      My ComputerSystem Spec
  3.    02 Aug 2016 #3
    Join Date : Dec 2015
    Posts : 5,461
    Windows10
    Thread Starter

    Quote Originally Posted by jimbo45 View Post
    Hi there.

    @cereberus

    Windows has problems with file names longer than 250 - 260 chars (this includes the directory names too).

    I came up with this problem in trying to use a Windows machine as a media server -- loads of my music files weren't accessible from Windows.

    However I believe with the Aug 2nd release of Windows (Anniversary edition) you can (finally !!!!) enable long file names.

    Currently I'm using a Linux VM on HYPER-V for media serving -- works fine as I can pass through the Linux HDD's without re-formatting etc.

    Things like treesizefree and Windirstats might need to be updated to reflect long file size display. If I need to look at these I usually do it via the Linux VM and using Dolphin look at the Windows files via SAMBA.

    Cheers
    jimbo
    Yeah I suspected that was the reason. I am waitingto upgrade to RS1 today :-).

    med venlig hilsen.
      My ComputerSystem Spec
  4.    02 Aug 2016 #4
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,689
    Windows 10 Pro

    The default storage location for virtual machine configuration files is
    %programdata%\Microsoft\Windows\Hyper-V\Virtual Machines\VM_GUID\. As the both last level folder name and configuration file names themselves are 32 bit hexadecimal values, the path will be long.

    I "shorten" it a bit by assigning Hyper-V its own drive, in my case D:. One extremely trivial and small "path shortening" tip: when you change default storage locations, for Virtual Hard Disks you have to make and select a folder, but Virtual Machines folder will be created automatically, meaning that if you for instance want that folder to be on root of a drive, you just select the drive:

    Click image for larger version. 

Name:	image.png 
Views:	2 
Size:	39.0 KB 
ID:	93556

    If you do the mistake and in settings set Virtual Machines folder creating it, you'll end up having a useless extra folder level: D:\Virtual Machines\Virtual Machines\.
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Windows search misses really obvious results
Consider an example directory containing: IMG_0209.JPG IMG_0210.JPG Some_PDF-numKK.pdf If I want to find the pdf, and happen to remember that it had "numKK" in the filename, I might reasonably search "numKK" and expect to find it. In practice...
General Support
Solved Windows Storage Files; Can't Delete?
Hey guys, Windows 8.1 veteran here. I'm also a good-standing member on EightForums. I always try to post my new topics in the appropriate section, but if I'm wrong, you can move me. Anyway... On to the issue. For Christmas, I received an ASUS...
General Support
Hyper-V Hypervisor not running - can't remove Hyper-V feature
I am using Windows 10 Insider Preview 11082 (upgraded from Windows 1151 fully updated. I had installed the Hyper-V feature in the latest Windows 1151 but had not used it before I received and installer the Insider Preview edition. The...
Virtualization
Solved Sharing XP Files from Hyper-V
I'm running Windows XP on Windows 10 with Hyper-V. How do I share files between XP and the c drive on my physical computer? This was so easy with VPC 2007.
Virtualization
HIbernate does not work (and lots of the obvious fixes already tried
Exact description: Hibernate enabled (powercfg -h on) hiberfil.sys file present ( and = RAM) and tons of free space on C:\ When I click hibernate from power menu I see the following (a) Instant black screen but power light still on) (b) No...
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:09.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums