Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #96294

Re: Interesting discrepencies

From Paul <nospam@needed.invalid>
Newsgroups alt.comp.os.windows-10
Subject Re: Interesting discrepencies
Date 2019-08-16 04:52 -0400
Organization A noiseless patient Spider
Message-ID <qj5qs2$bt5$1@dont-email.me> (permalink)
References <XnsAAABBB87FCD63lonelydad58gmailcom@69.16.179.29> <grke8gFd0tlU1@mid.individual.net> <XnsAAAC6D4E6D48Blonelydad58gmailcom@69.16.179.29> <qj47eq$5lq$1@dont-email.me> <XnsAAACECD8D81Elonelydad58gmailcom@69.16.179.28>

Show all headers | View raw


lonelydad wrote:
> Paul <nospam@needed.invalid> wrote in news:qj47eq$5lq$1@dont-email.me:
> 
>> lonelydad wrote:
>>> Andy Burns <usenet@andyburns.uk> wrote in
>>> news:grke8gFd0tlU1@mid.individual.net: 
>>>
>>>> lonelydad wrote:
>>>>
>>>>> I have one directory where if I right-click and do 'Properties' it
>>>>> says the direcctory is 21+ GB. But Windirstat shows 521 GB of data 
> in
>>>>> that directory.
>>>> Don't tell us the name of the folder ...
>>> It's one I created with no links to any Windows permanent folder. 'My 
>>> Tidbits'
>>>
>> If it really is 521GB, you might as well back up the whole C:
>> drive, for thoroughness. A Macrium image of the disk, will
>> ensure you don't miss anything.
>>
> 
> I don't keep any data on my C:\ drive. The directory in question is on a 
> 2TB hard drive [D:\]
> 
> Given the actual size of the directory in question, I have no intention 
> of storing it on one of my 512GB USB sticks. I'll use the WD 1TB My 
> Passport drive I have and copy it there. 
> 
> Right now the burning issue is why the discrepency? So far, no one has 
> addressed the big issue, that File Explorer is reporting a 521GB 
> directory as only 21GB. 

The summary is, whether it's a hardlink problem (double-counting
problem), or a Junction Point problem (File Explorer won't
descend a Junction Point), you cannot be assured that doing
"Properties" on a folder will give a correct answer. You
would have received a correct answer in the year 2003, but in
2019, not so much.

Not even WinDirStat is assured of getting a correct answer.

*No* utility lists all the filenum entries in NTFS.

Everything.exe would come close. But is probably still
four items short. It's not a good idea for example,
to be poking around System Volume Information.

*******

The one indicator which is accurate, is when you do
"Properties" on C: at the top level, and get that
"circle thingy" which says how full it is, that
actually works. And the reason that works, is that
is a "simple cluster counter". It knows how many
clusters are currently in use.

As an example, WinSXS might contain say, 6GB to 10GB of files.
A naive user would say to themselves "if I deleted WinSXS,
I will save 6 to 10GB, just like that". Bzzzt. Wrong.
If you do Properties on C: before and after, the savings
is only 500MB. All you're doing, is deleting thousands
of hardlink filename entries, rather than deleting
the files themselves.

However, if you "copy" WinSXS (don't do that), sure,
the copy takes real space, 6GB to 10GB of space. It would
also cause a copy which is "unsuited for purpose", as you
can't put it back in place of the deleted WinSXS, because
all the links would be broken. WinSXS is part of component
based servicing (CBS), and its primary function is the
hardlinks themselves. It's not intended for "Wally to be
browsing the folder", that's not why it is there. It's
to allow some Microsoft software to "maintain the OS
in a known state".

On Win98, you would expect most of the files and
facilities to be "at face value", easily manipulated
by the user, logical in nature and making sense.
But that's not how Win10 works.

Win10 is a rats nest of hard-to-understand hacks.

And it isn't particularly a good design.

The design of File Explorer, the nature of the
fields put in the Properties window for Folders
and Files, has not kept up with the evolution
of the (abuse) of the file system. And even if
there was a separate "shared" field in the Properties
box, people would not know what to do with that
information. It's not clear how best to help
the end-user understand the storage situation.

Maybe someone else knows the answer to this, but
the file copying is pretty naive. If a file is
hardlinked, the destination file will be an ordinary
file. If the source file was "sparse", the destination
file would likely be "ordinary" and "quite wasteful".

Copying the following file is especially nasty. As when
you copy it, it takes gigabytes of space, whereas
the storage at the moment actually requires, is
only 4MB. There is a utility you can use, to convert
it back to sparse format, but by then the damage
is done (takes a long time to copy, a long time
to convert back to sparse after the copy completes).

https://i.postimg.cc/TwyTgfzm/file.gif

I wonder what WinDirStat would say about that one.

If I ask File Explorer to copy that to a USB key,
4MB is all the space it really needs, yet if I
copy that file to a 32GB stick, it'll say "not enough
space to complete this command". Because the file
needs 57GB or so as far as File Explorer is concerned.

Linux has:

    cp --sparse=always somefile.bin someotherlocation.bin

and that one would only need 4MB for the example file above.
I don't think Windows "copy" has that refinement. But
after the fact, there is a utility to "squeeze out the
excess" and make it take 4MB again.

    Paul

Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Interesting discrepencies lonelydad <lonelydad58@gmail.com> - 2019-08-14 23:26 +0000
  Re: Interesting discrepencies Andy Burns <usenet@andyburns.uk> - 2019-08-15 08:00 +0100
    Re: Interesting discrepencies lonelydad <lonelydad58@gmail.com> - 2019-08-15 15:44 +0000
      Re: Interesting discrepencies Paul <nospam@needed.invalid> - 2019-08-15 14:14 -0400
        Re: Interesting discrepencies lonelydad <lonelydad58@gmail.com> - 2019-08-16 04:16 +0000
          Re: Interesting discrepencies Andy Burns <usenet@andyburns.uk> - 2019-08-16 08:56 +0100
            Re: Interesting discrepencies Paul <nospam@needed.invalid> - 2019-08-16 11:50 -0400
          Re: Interesting discrepencies Paul <nospam@needed.invalid> - 2019-08-16 04:52 -0400
          Re: Interesting discrepencies pjp <pjpoirierislocated@hotmail.com> - 2019-08-16 15:46 -0300
  Re: Interesting discrepencies Philip Herlihy <thiswillbounceback@you.com> - 2019-08-15 11:11 +0100
  Re: Interesting discrepencies "Carlos E.R." <robin_listas@es.invalid> - 2019-08-15 14:28 +0200
    Re: Interesting discrepencies pjp <pjpoirierislocated@hotmail.com> - 2019-08-15 16:27 -0300
    I took my USB stick to a printshop. Jeff-Relf.Me  @. - 2019-08-15 17:45 -0700

csiph-web