Hopefully my screenshot is clear.
https://www.dropbox.com/scl/fi/jo4coaf49i7fkm2zjpzrb/MajorDiscrepancy.jpg?rlkey=qxl6lct3eah7qfpyay1r9ji4m&raw=1
All other tools and visual observation confirm that the parent folder contains 196 folders and three files. Most folders \xyz have one file
named xyz.ino in case that's relevant. And the parent is C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\FORUM.
I'm wondering if some issue at Dropbox is involved, and I'll pursue that
too. I've used Dropbox for many years and not come across this before.
But how could File Explorer get it so wrong?
Terry
Hopefully my screenshot is clear.
https://www.dropbox.com/scl/fi/jo4coaf49i7fkm2zjpzrb/MajorDiscrepancy.jpg?rlkey=qxl6lct3eah7qfpyay1r9ji4m&raw=1
All other tools and visual observation confirm that the parent folder >contains 196 folders and three files. Most folders \xyz have one file
named xyz.ino in case that's relevant. And the parent is >C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\FORUM.
I'm wondering if some issue at Dropbox is involved, and I'll pursue that
too. I've used Dropbox for many years and not come across this before.
But how could File Explorer get it so wrong?
Terry
Terry Pinnell <me@somewhere.invalid> wrote:
Hopefully my screenshot is clear.
https://www.dropbox.com/scl/fi/jo4coaf49i7fkm2zjpzrb/MajorDiscrepancy.jpg?rlkey=qxl6lct3eah7qfpyay1r9ji4m&raw=1
All other tools and visual observation confirm that the parent folder
contains 196 folders and three files. Most folders \xyz have one file
named xyz.ino in case that's relevant. And the parent is
C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\FORUM.
I'm wondering if some issue at Dropbox is involved, and I'll pursue that
too. I've used Dropbox for many years and not come across this before.
But how could File Explorer get it so wrong?
Terry
Thanks both.
Has anyone tried to reproduce? Takes less than a minute, and would at
least establish if it was just me.
I always have 'Show hidden files, folders and drives' enabled.
Terry
You may be interpreting what you see, too literally, when the machine
loves to use different perspectives in its interfaces.
Hopefully my screenshot is clear.
https://www.dropbox.com/scl/fi/jo4coaf49i7fkm2zjpzrb/MajorDiscrepancy.jpg?rlkey=qxl6lct3eah7qfpyay1r9ji4m&raw=1
All other tools and visual observation confirm that the parent folder contains 196 folders and three files. Most folders \xyz have one file
named xyz.ino in case that's relevant. And the parent is C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\FORUM.
I'm wondering if some issue at Dropbox is involved, and I'll pursue that
too. I've used Dropbox for many years and not come across this before.
But how could File Explorer get it so wrong?
I started writing my own utility to list files, but it isn't
going well. Down near the end of the $MFT are some items
that make no sense. Like, a file without a file name.
Hopefully my screenshot is clear.
https://www.dropbox.com/scl/fi/jo4coaf49i7fkm2zjpzrb/MajorDiscrepancy.jpg?rlkey=qxl6lct3eah7qfpyay1r9ji4m&raw=1
All other tools and visual observation confirm that the parent folder contains 196 folders and three files. Most folders \xyz have one file
named xyz.ino in case that's relevant. And the parent is C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\FORUM.
I'm wondering if some issue at Dropbox is involved, and I'll pursue that
too. I've used Dropbox for many years and not come across this before.
But how could File Explorer get it so wrong?
VanguardLH wrote:
You already mentioned you have File Explorer show hidden and system
files. Usually when in that view, you often see desktop.ini files for
tracking customization of a folder.
FYI...
TP said
"I always have 'Show hidden files, folders and drives' enabled."
For the above setting desktop.ini files are *not* shown
The setting that shows desktop.ini files is the other one(when unchecked)
'Hide protected operating system files'
Terry Pinnell <me@somewhere.invalid> wrote:
Hopefully my screenshot is clear.
https://www.dropbox.com/scl/fi/jo4coaf49i7fkm2zjpzrb/MajorDiscrepancy.jpg?rlkey=qxl6lct3eah7qfpyay1r9ji4m&raw=1
All other tools and visual observation confirm that the parent folder
contains 196 folders and three files. Most folders \xyz have one file
named xyz.ino in case that's relevant. And the parent is
C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\FORUM.
I'm wondering if some issue at Dropbox is involved, and I'll pursue that
too. I've used Dropbox for many years and not come across this before.
But how could File Explorer get it so wrong?
If I have a folder with contents like this
+- SubFolder1
| +- File4
+- SubFolder2
| +- File5
+- File3
The bottom left corner of File Explorer will show 3 items because it
does not count the items inside subfolders.
The properties dialog will show 5 items (at least) because it does count
the items in subfolders.
No surprise that the two numbers are different.
Paul <nospam@needed.invalid> wrote:
I started writing my own utility to list files, but it isn't
going well. Down near the end of the $MFT are some items
that make no sense. Like, a file without a file name.
Windows will store a "file" within the MFT record if the contents will
fit inside the MFT record (1024 bytes).
No point in having an MFT
record point at a seperate sector offset to store a file when the "file" could inside an MFT record. The MFT is a file itself within the file
system, and its records are fixed in size, so a small file goes inside
the record. Files stored inside MFT records are called resident files.
https://en.wikipedia.org/wiki/NTFS#Resident_vs._non-resident_attributes
If you use non-standard MFT allocation unit sizing, the max size for a resident file changes.
There are two identical MFTs: main one is on the outer tracks of an HDD,
and second is halfway in the platter. The outer would have faster
access. The middle one is for redundancy, and for corruption recovery.
Terry Pinnell <me@somewhere.invalid> wrote:
Hopefully my screenshot is clear.
https://www.dropbox.com/scl/fi/jo4coaf49i7fkm2zjpzrb/MajorDiscrepancy.jpg?rlkey=qxl6lct3eah7qfpyay1r9ji4m&raw=1
All other tools and visual observation confirm that the parent folder
contains 196 folders and three files. Most folders \xyz have one file
named xyz.ino in case that's relevant. And the parent is
C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\FORUM.
I'm wondering if some issue at Dropbox is involved, and I'll pursue that
too. I've used Dropbox for many years and not come across this before.
But how could File Explorer get it so wrong?
You already mentioned you have File Explorer show hidden and system
files. Usually when in that view, you often see desktop.ini files for tracking customization of a folder.
Were you logged in at the time under a limited Windows account? Or when logged in under an admin-level Windows account?
Some programs will attempt to hide files as a means of protection, like
a anti-ransom feature. My backup program has an option to use a driver
to limit access to its backup files to restrict write, rename, move, or
other file I/O actions. That used a stacked file I/O driver to restrict
any access to its backup files to just the backup program itself. I
remember trying something in the past that created snapshots of the
drive (might've been Comodo Time Machine, but it was far too flaky, and caused file corruption for many users) to let you restore to a prior
state, and they hid their snapshot files, but that also caused problems
with file tools, and anything that resized a partition based of what was detected as unused space. Because the snapshot files were hidden,
non-aware tools could easily eliminate them. They also used a stacked
file I/O driver to hide the files from user processes. Have you
rebooted into Windows Safe Mode to recheck the folder and file count?
Maybe it's about time to run "chkdsk /r /f" to ensure you don't have
problems with linkages or definitions in the file system.
There are two identical MFTs: main one is on the outer tracks of an HDD,
and second is halfway in the platter. The outer would have faster
access. The middle one is for redundancy, and for corruption recovery.
Are both written at the same time?
"Carlos E.R." <robin_listas@es.invalid> wrote:
There are two identical MFTs: main one is on the outer tracks of an HDD, >>> and second is halfway in the platter. The outer would have faster
access. The middle one is for redundancy, and for corruption recovery.
Are both written at the same time?
I would assume so for both to be exactly the same. The duplicate is in
case one gets corrupted, like the sectors on the platter went bad. As
to how the OS does it, I don't know if the file I/O is duplicated and paralleled, or there is ensuing mirroring.
Filename for the MFT is $Mft, and for its mirror is $MftMirr.
The locations for the MFTs are recorded in the boot sector which is also duplicated at the middle of the drive.
https://www.file-recovery.com/recovery-NTFS-master-file-table-MFT.htm
However, the actual operation is never fully explained. Quite often I
see mention that $MftMirr mirrors, at least, the first 4 records of
$Mft, like "MFTMirr: A backup copy of the first 4 records of the MFT."
I'm not sure how just 4 file records are doable for file system
recovery. Perhaps $MftMirr is just for recovery of $Mft, like $Mft got deleted, so $MftMirr could be used to relocate its sectors, not for
recovery of files.
https://flatcap.github.io/linux-ntfs/ntfs/files/mftmirr.html https://bromiley.medium.com/ntfs-part-7-an-ntfs-story-caf42565855b
This is for NTFS. I doubt FAT (and bitwidth) has any file table
recovery scheme. While interesting, I've not much delved into NTFS
beyond what I had to know, or got curious about at the time.
So, my statement there are 2 identical MFTs appears incorrect. There is
$Mft for the file system table, and there's $MftMirr pointing to where
$Mft is stored.
Terry Pinnell <me@somewhere.invalid> wrote:
Hopefully my screenshot is clear.
https://www.dropbox.com/scl/fi/jo4coaf49i7fkm2zjpzrb/MajorDiscrepancy.jpg?rlkey=qxl6lct3eah7qfpyay1r9ji4m&raw=1
All other tools and visual observation confirm that the parent folder
contains 196 folders and three files. Most folders \xyz have one file
named xyz.ino in case that's relevant. And the parent is
C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\FORUM.
I'm wondering if some issue at Dropbox is involved, and I'll pursue that
too. I've used Dropbox for many years and not come across this before.
But how could File Explorer get it so wrong?
You already mentioned you have File Explorer show hidden and system
files. Usually when in that view, you often see desktop.ini files for >tracking customization of a folder.
Were you logged in at the time under a limited Windows account? Or when >logged in under an admin-level Windows account?
Some programs will attempt to hide files as a means of protection, like
a anti-ransom feature. My backup program has an option to use a driver
to limit access to its backup files to restrict write, rename, move, or
other file I/O actions. That used a stacked file I/O driver to restrict
any access to its backup files to just the backup program itself. I
remember trying something in the past that created snapshots of the
drive (might've been Comodo Time Machine, but it was far too flaky, and >caused file corruption for many users) to let you restore to a prior
state, and they hid their snapshot files, but that also caused problems
with file tools, and anything that resized a partition based of what was >detected as unused space. Because the snapshot files were hidden,
non-aware tools could easily eliminate them. They also used a stacked
file I/O driver to hide the files from user processes. Have you
rebooted into Windows Safe Mode to recheck the folder and file count?
Maybe it's about time to run "chkdsk /r /f" to ensure you don't have
problems with linkages or definitions in the file system.
No surprise that the two numbers are different.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 508 |
Nodes: | 16 (2 / 14) |
Uptime: | 228:59:46 |
Calls: | 9,982 |
Files: | 13,833 |
Messages: | 6,359,572 |