Disappearing hard drive space with SFC /Scannow

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 31,593
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #11

    The DISM command can be run offline too, and may be able to repair things sfc cannot.

    You'll need the install media for the same version of Windows (1703, 1607, etc.) as is installed on the PC you are trying to repair. If that is 1703 you can easily make the install media (a USB would probably be the most convenient to use) with the Media Creation Tool. With a bit of fiddling you can get a .iso of 1607 direct from Microsoft too. For 1703 and 1607 the install media will contain both Home and Pro.

    The install media will contain either an install.esd or install.wim. If it's the bootable USB made by the MCT it will be .esd. DISM can use either. You can boot from the USB and select the 'repair this PC' option to get to a command prompt.

    When you boot from a USB the drive letters assigned to the drives may well be different. See this post for an example of using DISM offline, and the next couple of posts for clarification of finding the correct drive letters, and the command to use .esd instead of .wim. Note the need to use an index number 1 or 2 in the command. This specifies the edition, 1 is for Pro and 2 is for Home. Adding the /limitaccess parameter to the DISM command line will prevent it trying to check online for updates.
      My Computers


  2. Posts : 24
    10
    Thread Starter
       #12

    This is very interesting.

    I need the anniversary edition. I used the window 10 media creator from microsoft, but i believe that the CREATOR edition it downloads?

    how do i point the dism to the boot on my usb in window pre installed enivornment(i used Kyle version)?
      My Computer


  3. Posts : 31,593
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #13

    goldenstar said:
    I need the anniversary edition. I used the window 10 media creator from microsoft, but i believe that the CREATOR edition it downloads?
    Yes, the MCT makes Creators Update media (1703). To get the Anniversary Update (1607) ISO direct from Microsoft, use Edge and go to the Download Windows 10 page where you would normally download the MCT. Now press F12 to use the F12 Developers Tools. On the Emulation tab, set 'User agent string' to 'Apple Safari (iPad)'. The page will change to this one offering a choice of ISOs to download.

    Disappearing hard drive space with SFC /Scannow-select-edition.png

    Alternatively, if you still have an old copy of the MCT that made 1607 media it will still do so. You can tell the version of the MCT by looking at the Details tab on its Properties. The version matches the build number of the media it creates, for 1607 that's 14393. (For Creators update that would say 15063.)

    Disappearing hard drive space with SFC /Scannow-mct-version.png
      My Computers


  4. Posts : 31,593
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #14

    goldenstar said:
    how do i point the dism to the boot on my usb in window pre installed environment (i used Kyle version)?
    Open a Command prompt. Use DIR on each drive letter in order to identify what letter is being used for your Windows system drive. It is unlikely to be seen as C: when you are booting from a USB. In this example my C: drive appeared as E: when booting from a USB. I created the e:\scratch folder before running the command. The install media was on the D: drive. the index 1 at the end of the /source parameter is for Pro, for Home you should use 2.

    Code:
    dism /image:e:\ /cleanup-image /restorehealth /source:esd:d:\x86\sources\install.esd:1 /scratchdir:e:\scratch /limitaccess
    If you have the install.wim rather than the .esd, then use...
    Code:
     /source:wim:d:\x86\sources\install.wim:1
    You may well have to change the drive letters and source path to match what you have on your system.
    Last edited by Bree; 27 Sep 2017 at 20:09.
      My Computers


  5. Posts : 5,899
    Win 11 Pro (x64) 22H2
       #15

    Out of curiosity may I ask where the OP even got the idea to delete the WINSXS folder???

    This is the one of the dangers of listening to some of those on-line so-called "Windows experts". Especially in forums where there isn't some type of moderation and pushback from those that really do know what they're talking about. Luckily we have those checks and balances here.

    Anyway Bree and others have this well under control, I just wanted to add that comment.

    Peace.
      My Computers


  6. Posts : 24
    10
    Thread Starter
       #16

    Oddly enough, the WinSXS is indeed getting larger each time i use sfc /scannow (it failed to fix the corruption). I did confirm it.

    The strange thing is when i tried to search by date of modification(like today), i could not find the files that was added or modified.

    I will try Bree suggestions. His suggestion is the best so far!

    Bree, thank you for taking the time to write this. I can't believe there are good people like you helping others :).
      My Computer


  7. Posts : 31,593
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #17

    goldenstar said:
    Oddly enough, the WinSXS is indeed getting larger each time i use sfc /scannow...
    The strange thing is when i tried to search by date of modification(like today), i could not find the files that was added or modified.
    It depends on how you were determining the 'size' of WinSxS, File Explorer can be misleading ...
    ...it can appear that more than one copy of the same version of a file is stored in more than one place on the operating system, but there’s usually only one real copy of the file. The rest of the copies are just “projected” by hard linking from the component store.... Some tools, such as the File Explorer, determine the size of directories without taking into account that the contained files might be hard linked. This might lead you to think that the WinSxS folder takes up more disk space than it really does.
    https://docs.microsoft.com/en-us/win...-winsxs-folder

    It may well be that sfc /scannow had duplicated some hard links, making WinSxS appear larger without actually growing in size. This effect can lead to some amusing side-effects :)
    Cleaning up 3.99TB space on a 100GB HDD?
      My Computers


  8. Posts : 24
    10
    Thread Starter
       #18

    Bree said:
    It depends on how you were determining the 'size' of WinSxS, File Explorer can be misleading ...
    https://docs.microsoft.com/en-us/win...-winsxs-folder

    It may well be that sfc /scannow had duplicated some hard links, making WinSxS appear larger without actually growing in size. This effect can lead to some amusing side-effects :)
    Cleaning up 3.99TB space on a 100GB HDD?


    How do fix this if sfc /scannow duplicates hard links?
      My Computer


  9. Posts : 31,593
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #19

    goldenstar said:
    How do fix this if sfc /scannow duplicates hard links?
    Once you can boot into a working windows, use Disk Clean up and its 'clean up system files' button. That should fix it.
      My Computers


  10. Posts : 24
    10
    Thread Starter
       #20

    I got an error while trying Bree commands,

    Cannot access files of scratch directory. Make sure you have permission.


    Another question: If i RESET my pc from window 10 boot, does it really delete all my files(documents and pictures)?
      My Computer


 

  Related Discussions
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 00:14.
Find Us




Windows 10 Forums