Hot answers tagged

46 votes
Accepted

Why do the "<" and ">" characters seem to corrupt Windows folders?

The error isn't caused by angle brackets exactly, or by having two of them – instead it occurs when 1) a file name contains wildcard characters in its name, and 2) the wildcard would match a ...
  • 408k
39 votes
Accepted

Is it safe to delete a file that is reportedly bigger than it should be

That's not necessarily erroneously bigger than your whole drive. Many filesystems including NTFS and ext4 support sparse files, in which areas consisting entirely of 'zero' bytes (00 00 00 00 ...) do ...
  • 408k
27 votes
Accepted

What exactly does NTFS compression do to files?

What exactly does NTFS compression do to files? By default, it transparently compresses them using a variant of Lempel-Ziv compression: The LZNT1 compression algorithm is the only compression ...
  • 150k
21 votes
Accepted

Is there a way to make changes to an NTFS hard-linked file be written to a new file?

This would not be a "hardlink" anymore; it would be called a "reflink" or "copy-on-write link". Copy-on-write links are not supported by NTFS, as it doesn't support ...
  • 408k
15 votes
Accepted

How can I find out which sectors are used by files on NTFS?

ddru_ntfsbitmap It will read in the NTFS bitmap and write out a ddrescue domain file with used blocks marked as finished. Next you should use this file with -m (--domain-mapfile=) option of ddrescue. ...
10 votes

Is it safe to delete a file that is reportedly bigger than it should be

In case there is a problem with the disk, I suggest as first step to ensure that you have backups for the data on the disk. As the disk is NTFS, it's best handled on Windows as follows. As second step,...
  • 438k
7 votes

Cannot copy large VirtualBox image from local NTFS disk

The file in question might have a bad sector that is not normally used, so is only discovered when copying all the sectors. You may find information about the disk's status by consulting its SMART ...
  • 438k
4 votes
Accepted

does files on ntfs have uid and gid?

tl;dr: No. NTFS file system entries have an owner, which is basically the same as the user ID you’d have on Linux. The group ID is part of the octal permission system on Linux. Windows does not have ...
  • 58k
4 votes
Accepted

How to delete fake bad sectors from hard disk?

These are not fake. The HDD has detected and remapped some bad sectors. That's it. It's not unusual for new drives to be faulty. Actually they are more likely to fail. Get the drive replaced with a ...
  • 55.2k
4 votes

What exactly does NTFS compression do to files?

@DavidPostill's answer is correct and complete, but let me try to explain too: NTFS compression is transparent to any application that uses it. This means that for every: Read of the file, the file ...
  • 3,414
4 votes
Accepted

does ntfs writes files two times when compression is used?

I was also interested in this, and couldn't find any source other than people making this claim. So time for some original research. TL;DR At least for Windows 10, the claim "NTFS compression ...
4 votes

What is $MFT file and can the size be reduced?

$Mft is the NTFS "Master File Table" – it's the file which holds all information about what files you have and where they are physically. You seem to have about 8 million files, so assuming ...
  • 408k
3 votes

What are these Extended Attributes (EAs) in the files in Windows 8?

Extended attributes ARE used in Windows, including by the kernel, which uses them to track various security restrictions and enforce them. See https://docs.microsoft.com/en-us/windows-hardware/drivers/...
  • 357
3 votes

Why do the "<" and ">" characters seem to corrupt Windows folders?

Characters < and > belong to "reserved characters" group, which must not be used to name a file or directory in Windows. https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-...
2 votes
Accepted

Why am I getting an NTFS Transaction Resource Manager Error 134?

Eh gonna necropost here too because these errors were annoying to get rid of. Not sure where to put the warning, so right up top it is: doing as I did below will remove all System Restore points/...
2 votes
Accepted

Does Windows send TRIM command with every delete?

A block isn't only deleted/unused when you delete a file but may also when you do things like update some metadata or write new data to the file. Sending a TRIM command after every block deletion ...
  • 25.2k
2 votes
Accepted

Cannot copy large VirtualBox image from local NTFS disk

Many thanks @all for the help and enthusiasm. Always enlighting to see how much help one can get here. Resolution of the story: After following advises to export the VM, the bad blocks theory got my ...
2 votes

Cannot copy large VirtualBox image from local NTFS disk

I'm a little confused on the partition formats on the source and destinations: NTFS (on Windows 7) supports a maximum file size of 16TB FAT16 supports a maximum file size of 4GB If you're trying to ...
  • 21
2 votes

Does CHKDSK /R overwrite unused space?

Does CHKDSK /R overwrite unused space? No. CHKDSK looks for errors in the file structure and disk media and if it finds errors, it will attempt to fix if the /f parameter is specified. If errors are ...
  • 43.3k
2 votes

Git clone failed on Windows due to file name length

You're probably hitting not NTFS storage restrictions, but Win32 API restrictions. The maximum path length that can be given to the OS functions such as CreateFile() (at Win32 layer) is a filesystem-...
  • 408k
2 votes

Crystal Disk Info, SSD. NTFS corrupted

Your disk SMART report shows no errors. The 100 values may be confusing, but they are normalized values that actually mean "no error". The disk seems to be in perfect health, although it ...
  • 438k
2 votes

Confusion about NTFS compression and `du` on ZFS (was: How to *really* disable NTFS compression?)

Ok, so I finally found out what's going on here. du seems to show the compressed/deduped size (ZFS). I've copied the file comp2 to a zfs dataset without compression/dedup and du shows the correct 5,5G:...
2 votes

All NTFS volumes on drive turning inaccessible at the same time

Problem is chkdsk ran and 'repaired' the file system to a 'consistent state'. However to achieve this it sacrificed the directory structure etc. and moved all files to found.000 folders. NEVER run ...
1 vote
Accepted

Incremental copy of log file content

Windows 10 and Windows Server 2019 come with: curl.exe file:////thedevice/sharename/input.log -o \\target\logs\output.log -C - The -C option resumes transfer at a specified byte position. Note that ...
  • 408k
1 vote

Recover an NTFS filesystem accidentally over-formatted with FAT - getting the filesystem back?

since AFAIK NTFS puts much of the important stuff towards the middle of the partition No, this incorrect, MFT is nowhere near the middle: It is however possible MFT is fragmented and that some of ...
1 vote

Cannot copy large VirtualBox image from local NTFS disk

Worst case is there's some creeping fault in the machine and you're at risk of loosing data. Grab your irreplaceable data immediately, even if its by copy-and-paste or email. Do it ASAP because it ...
  • 2,152
1 vote
Accepted

Making a Windows Folder Truly Read Only

As already mentioned in the comment section: The reason why you still have Full Control is because of the "CREATOR OWNER" ACE. You are the current owner of the parent and this folder. Best ...
  • 711
1 vote

How to mount NTFS in Linux without root password

Don't do it by configuring sudo to allow mount, this is highly insecure. See https://security.stackexchange.com/questions/258637/why-do-i-need-the-root-password-when-mounting-an-internal-drive-in-...
  • 1,125
1 vote
Accepted

NTFS, chkdsk, check bad sectors and recover readable parts for only specified files?

It is a large disk and it seems all files but a few are readable. For the few files, reading fails at the same point. Something like position 1.5GB of a 5GB file. The SMART data does show ...
  • 2,632
1 vote
Accepted

Folder icon, desktop.ini and file attributes

It has no meaning to the rest of the OS, and is used specifically as an indicator for Explorer to look for a desktop.ini file. The Old New Thing: Why is the readonly property for folders so strange? ...
  • 408k

Only top scored, non community-wiki answers of a minimum length are eligible