Questions tagged [ntfs]

NTFS (New Technology File System) is the primary file system used by Windows.

NTFS (New Technology File System) is a proprietary file system developed by Microsoft Corporation for its Windows line of operating systems, beginning with Windows NT 3.1 and Windows 2000, including Windows XP, Windows Server 2003, and all their successors to date.

NTFS supersedes the file system as the preferred file system for Microsoft’s Windows operating systems.

NTFS has several improvements over FAT and HPFS such as improved support for metadata and the use of advanced data structures to improve performance, reliability, and disk space utilization, plus additional extensions such as security access control lists (ACL) and file system journaling.

Versions

The NTFS on-disk format has five released versions:

  • v1.0 with NT 3.1, released mid-1993
  • v1.1 with NT 3.5, released fall 1994
  • v1.2 with NT 3.51 (mid-1995) and NT 4 (mid-1996)
  • v3.0 from Windows 2000 ("NTFS V5.0" or "NTFS5")
  • v3.1 from Windows XP (autumn 2001; "NTFS V5.1")

NTFS Log

NTFS is a journaling file system and uses the NTFS Log ($LogFile) to record metadata changes to the volume. It is a critical functionality of NTFS (a feature that FAT/FAT32 does not provide) for ensuring that its internal complex data structures, or data moves performed by the defragmentation API, the modifications to MFT records, and indices will remain consistent in case of system crashes, and allow easy rollback of uncommitted changes to these critical data structures when the volume is remounted.

NTFS on other operating systems

Linux

The ability to read and write to NTFS is provided by the NTFS-3G driver. It is included in most distributions.

Mac OS X

Mac OS X 10.3 and later include read-only support for NTFS-formatted partitions.

References

961 questions
284
votes
15 answers

Maximum filename length in NTFS (Windows XP and Windows Vista)?

I'm designing a database table which will hold filenames of uploaded files. What is the maximum length of a filename in NTFS as used by Windows XP or Vista?
GateKiller
  • 74,180
  • 73
  • 171
  • 204
204
votes
8 answers

NTFS performance and large volumes of files and directories

How does Windows with NTFS perform with large volumes of files and directories? Is there any guidance around limits of files or directories you can place in a single directory before you run into performance problems or other issues? E.g. is having…
James Newton-King
  • 48,174
  • 24
  • 109
  • 130
186
votes
6 answers

What is the difference between NTFS Junction Points and Symbolic Links?

At a high level, the only obvious difference between NTFS Junction Points and Symbolic Links is that Junctions are only able to be directories, while SymLinks are allowed to also target files. What other differences between the two exist? (Note,…
Billy ONeal
  • 104,103
  • 58
  • 317
  • 552
97
votes
12 answers

How can I view the allocation unit size of a NTFS partition in Vista?

Which built in (if any) tool can I use to determine the allocation unit size of a certain NTFS partition ?
Jens
56
votes
5 answers

Enable native NTFS symbolic links for Cygwin

Recent NTFS and Windows implement symlinks: NTFS junction point can be used as directory symlink since NTFS 3.0 (Windows 2000) using linkd or junction tools. NTFS symbolic link can also be used as symlink (for both file and directory) since Windows…
oHo
  • 51,447
  • 27
  • 165
  • 200
54
votes
5 answers

How to read and modify NTFS Alternate Data Streams using .NET

How can I read and modify "NTFS Alternate Data Streams" using .NET? It seems there is no native .NET support for it. Which Win32 API's would I use? Also, how would I use them, as I don't think this is documented?
user72491
  • 3,527
  • 5
  • 24
  • 18
52
votes
3 answers

What encoding are filenames in NTFS stored as?

I'm just getting started on some programming to handle filenames with non-english names on a WinXP system. I've done some recommended reading on unicode and I think I get the basic idea, but some parts are still not very clear to me. Specifically,…
vroooom
  • 543
  • 1
  • 5
  • 5
46
votes
3 answers

How do I force Robocopy to overwrite files?

In general, Robocopy ignores files for which lastwrittendate and filesize are the same. How can we escape this design? I'd like to force overwriting with Robocopy. I expected that dst\sample.txt should be written test001. But these file are…
tbl
  • 823
  • 1
  • 8
  • 11
44
votes
4 answers

Case-sensitive path collisions on case-insensitive file system when I do git clone

when I git clone the repository the following warning appears: ... warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree: …
Juan
  • 649
  • 1
  • 6
  • 11
38
votes
13 answers

C++/Win32: How to wait for a pending delete to complete

Solved: Workable solution: sbi's answer Explanation for what really happens: Hans's answer Explanation for why OpenFile doesn't pass through "DELETE PENDING": Benjamin's answer The Problem: Our software is in large part an interpreter engine for a…
Mordachai
  • 9,412
  • 6
  • 60
  • 112
35
votes
7 answers

Nodejs + npm, installing modules on ntfs partition

I have a problem when installing npm modules. NodeJS is installed on Ubuntu 11.10 running on Virtual Box on Windows host. My project files are on NTFS partition (I have to share them with windows). When I try to install some npm module I get an…
Sosnowski
  • 351
  • 1
  • 3
  • 3
30
votes
14 answers

How do you deal with lots of small files?

A product that I am working on collects several thousand readings a day and stores them as 64k binary files on a NTFS partition (Windows XP). After a year in production there is over 300000 files in a single directory and the number keeps growing. …
Lawrence Barsanti
  • 31,929
  • 10
  • 46
  • 68
28
votes
3 answers

How to list all symbolic links on an NTFS filesystem

since Windows Vista there is an new Win32-API call CreateSymbolicLink to create a symbolic link on the NTFS filesystem. Does anyone know if there is an way to list all existing symbolic links on the filesystem?
Alexander
  • 3,724
  • 8
  • 42
  • 50
28
votes
6 answers

is there something like alternate data streams on any linux filesystem?

On Windows NTFS there is a nice but mostly unused feature called "Alternate Data Streams" (ADS) which I recently used in a hobby-dev project. On Mac HFS+ there is also a similarly nice but mostly unused feature called "named forks". I am thinking…
Peter Parker
  • 29,093
  • 5
  • 52
  • 80
24
votes
5 answers

What could cause an XML file to be filled with null characters?

This is a tricky question. I suspect it will require some advanced knowledge of file systems to answer. I have a WPF application, "App1," targeting .NET framework 4.0. It has a Settings.settings file that generates a standard App1.exe.config file…
Kyle Delaney
  • 11,616
  • 6
  • 39
  • 66
1
2 3
63 64