Questions tagged [ntfs]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
60 views

Powershell add administrator access to all files and folders under specific folder

There are a bunch of similar posts to this, but none of them seem to have the same issue that I have: I'm trying to automate a script in Powershell that utilises both icacls and takeown to add an ...
Tanaka Saito's user avatar
0 votes
0 answers
11 views

Dislocker error: "EOW information at offset 4b22000 failed to pass the tests"

I am trying to mount a BitLocker encrypted drive using Dislocker, but I am getting the following error: Wed Aug 30 21:02:19 2023 [ERROR] EOW information at offset 4b22000 failed to pass the tests Wed ...
vishal Arekar's user avatar
1 vote
1 answer
50 views

How to format an existent but case-confused path to the real one in NTFS of Windows?

I'm working on a cross-platform project and want to deal with some paths that can support multi-platforms by PowerShell. For example, I need to transfer a string of a path from an NTFS of Windows to ...
Little Train's user avatar
0 votes
0 answers
11 views

how do I find out the bit-endianness of the $BitMap file in NTFS

Before we get too into this, I'm not at all talking about byte-order-endianness. I'm talking about bit-order-endianness. Do we refer to the "zeroth" bit in a byte as the one that is least ...
stu's user avatar
  • 8,481
0 votes
0 answers
33 views

Get correct NTFS filenames with unicode characters in Linux

I have an NTFS partition mounted in Linux. Due to the encoding difference, all Unicode characters in filenames are broken. E.g. 新建文件夹 (New folder in Chinese) is shown as \320½\250\316ļ\376\274\320/. I ...
Qin Heyang's user avatar
  • 1,486
0 votes
0 answers
30 views

Windows: How do I make my disks using the NTFS file system in Windows 10 Installation

I need someone to tell me how to change my disk partitions to NTFS file system. I switched to Linux, and now am trying to reinstall Windows 10, but my disks, (disk 0 and disk 1), are both not ...
Tech Code's user avatar
1 vote
1 answer
46 views

Avoid fragmentation while writing on a sparse file by allocating space upfront

I've an application which writes a single file of size 1 TB on a NTFS volume. The writes to this are not done sequentially. There are multiple threads which writes to different offset of the file. It ...
Kanak's user avatar
  • 13
-1 votes
1 answer
41 views

Problem with Windows 11 login & BitLocker on a laptop that needs a reinstall

I got the laptop from a customer on Monday, back then it still ran, was on standby and logged in.. Then tried to backup the data to a SMB network share, but the laptop suddenly got lockups, so I ...
rsenn's user avatar
  • 9
0 votes
0 answers
22 views

Understanding "hardlinks" (linux-like) on NTFS

I'm a bit off with the explanation for hardlinks, symlinks and junctions on NTFS. I want to have c:\A\B\C c:\C\B\A be the same directory, just accessible thru to different pathes. So if I put a file ...
rhavin's user avatar
  • 1,512
0 votes
0 answers
53 views

Unicode Private Use Characters in NTFS Filenames

Windows uses characters in the Unicode private use area 0xf000 to 0xf0ff as a way of encoding characters that are legal in Linux filenames but not in Windows. These can come from Windows Subsystem for ...
Bill Sellers's user avatar
0 votes
0 answers
59 views

What cause WriteFile api call to be reported with I/O flags "Paging I/O" and "Synchronous Paging I/O" in Process Monitor?

I am monitoring the I/O operations of a Win32 application (not written by me) with Process Monitor and trying to replicate the behavior of WriteFile with a C++ program (eg: my WriteFile calls would ...
tigrou's user avatar
  • 4,226
0 votes
0 answers
48 views

In NTFS, what is the difference between the FRN and the FileID64?

NTFS seems to have two internal identifiers for file system entries: the FRN (File Reference Number), and the FileID64. From all the research I've been doing (aside from peering into actual code), ...
Ruslan's user avatar
  • 2,711
-1 votes
1 answer
163 views

NTFS formatted external hard disk working fine on Linux but whole disk detected as "Unallocated" in Windows 11 [closed]

My drive only has one partition (or none idk) /dev/sdc (for example). I don't think it has a partition table. The format is NTFS, and I can see-mount it on Linux (OpenSUSE Tumbleweed) and interact ...
Ul Tome's user avatar
  • 133
0 votes
0 answers
29 views

NTFS shared drive blanked after booting to Windows on a dual boot setup (Fedora/Windows 10)

I've been setting up my laptop for dual booting between Windows 10 and Fedora (more precisely, Nobara) on a SSD. I also have a HDD for files so I decided to format it as NTFS in order to share it ...
jahirbgoode's user avatar
1 vote
1 answer
128 views

What is the equivalent of `posix_fallocate()` on Windows?

NTFS does support sparse files, but I want to make sure the files I have to write to (which might have been created, set as sparse, and partially filled by another application) are fully allocated, so ...
lvella's user avatar
  • 12.8k
0 votes
0 answers
117 views

Linux Input/Output error on huge file after 193GB has been copied

I'm trying to copy a veracrypt image from a (veracrypt) encrypted ntfs drive which is mounted on /mnt/veracrypt. However, the copy consistently fails at 193GB (out of 2TB). $ sudo cp /mnt/veracrypt/...
Herbert's user avatar
  • 5,294
0 votes
0 answers
52 views

Assembly x86 reading kernel from NTFS filesystem disk

I have made a bootloader in (x86) assembly and I want to call the kernel.bin (coded in assembly) located in the same disk as bootloader with NTFS filesystem. I have tried to use BIOS' int 0x13 but it ...
ja0's user avatar
  • 47
0 votes
0 answers
68 views

Shrink Disk and NTFS MetaFile Defragmentation ($BITMAP)

Shrink Disk and Defragmentation I'm trying to shrink a disk. The volume is about 1 To large, and only 200 Go are curretly used. It is a virtual disk. When i ask to the disk management tool to shrink ...
Marc's user avatar
  • 1
1 vote
1 answer
190 views

Powershell: How to get and export NTFS Permissions

I currently have been using the following script to get NTFS Permissions. The issue is that when it comes to larger shares, it is very RAM intensive. # Root Share or Root path​ $RootShare = '<\\...
Shepard's user avatar
  • 23
0 votes
0 answers
47 views

PHP: Can I prevent slow work of fopen in Windows (NTFS)?

I have a script in PHP that reads several files and I run it on Windows 10. When I run it for the first time, it works slowly (tens of seconds) and next times, it works quickly (less than a second). ...
YakovL's user avatar
  • 7,607
0 votes
0 answers
11 views

NTFS "Comment" attribute access

Files and directories in Windows NTFS has a set of attributes that I would loke to access. Specifically I would like to write to the "comment" attribute of directories in NTFS. How do I do ...
Generic Name's user avatar
  • 1,092
0 votes
0 answers
29 views

Powershell: write permissions to subfolder

Im trying to set deny permissions to a bunch of folders, the folder struckture looks like this: mainfolder testuser1 subfolder 1 subfolder 2 subfolder 3 subfolder 4 testuser2 subfolder 1 ...
PimVDB's user avatar
  • 1
0 votes
1 answer
87 views

Is there a purpose for the FILE_ATTRIBUTE_READONLY on folders?

As per the Microsoft documentation, the SetFileAttributes function you can set the FILE_ATTRIBUTE_READONLY attribute on folders but the attribute it is not honored on folders. In other words a folder ...
Jabberwocky's user avatar
  • 48.3k
0 votes
0 answers
29 views

Git completely inoperable due to permission changes moving drive to new machine

I recently had my main hard drive fail (GJ Sabrent) and had to reinstall windows from scratch on a new drive. I had been storing all my GIT projects for VS and VSCode on a second SSD with bitlocker ...
Chris Rice's user avatar
0 votes
0 answers
100 views

Folder ACL Export / Import issue - inheritance

I am having issues getting the Folder inheritance state to export/import properly via get-acl, set-acl modules in PowerShell. I am exporting to a csv and it looks like everything is correct in the ...
RookieMistake's user avatar
0 votes
1 answer
62 views

NTFS Permissions Report

I am trying to run the below script to get a report of all file permissions on a shared drive: $FolderPath = Get-ChildItem -Directory -Path "\\cst-fileserver\Company" -Recurse -Force $...
Kyle P's user avatar
  • 1
0 votes
0 answers
48 views

FOLDER timestamps microsoft windows ntfs filesystem

are the timestamps "MODIFIED" and "LASTACCESS" for FOLDERS reliable? I tested a few things, read a little bit, outcome: FILE timestamps sometimes updated immediatly, sometimes not ...
McFly's user avatar
  • 13
2 votes
1 answer
139 views

How can a directory's encryption attribute be toggled from a Powershell script?

The documentation states that the encryption attribute in a directory is just a flag that indicates that all its children should be encrypted. For a file, you can toggle encryption with (Get-Item -...
darda's user avatar
  • 3,617
0 votes
0 answers
28 views

Using NFS Mount as an ODBC Data Source

We have a Windows 10 Pro PC running on a VM that has a mounted NFS drive, just using the anon switch to not require credentials. The drive letter is Z and net use shows it as an NFS Network drive ...
Scott Cantrell's user avatar
1 vote
0 answers
25 views

Performance of a program that uses System.Reflection.Metadata varies for unknow reasons

The below program is a command line tool that takes a directory path as input, recursively scans it for files with .dll as extension and verifies whether those files are valid .NET assemblies. To do ...
ackh's user avatar
  • 1,658
6 votes
1 answer
198 views

What actions update LastAccessTime?

Obviously not every action on a file or folder will immediately update its LastAccessTime since that just means that checking what is its LastAccessTime will always return the current time. But what ...
ispiro's user avatar
  • 26.6k
0 votes
0 answers
116 views

NTFS Access parameter Error - powershell script

I am trying to add permissions to files, but I cant figure out what it needs from me and I get this error: Add-NTFSAccess : Parameter set cannot be resolved using the specified named parameters. At ...
SomeGuy's user avatar
  • 97
0 votes
2 answers
105 views

Creating large number of directories, subdirectories and files

Is there any tool or script available that creates millions of files directories, sub-directories and sub-sub-directories randomly in Linux and Windows.
Susanta Dutta's user avatar
0 votes
0 answers
55 views

Text file showing up in directory, but can't be opened. Also showing as 'No such file or directory' in Linux

I have one text file in one of my computers local storage. Copying it to an external NTFS drive or flash drive causes the file to be seen as empty, or opens up as empty file in text editor on another ...
Just Bucket's user avatar
1 vote
0 answers
214 views

NodeJS: Write file on windows that's only readable by the current user

Is there a straightforward way to write a file (e.g. with fsPromises.writeFile(...)) under NodeJS and Windows/NTFS, so that the written file only has read and write permission for the current user (...
Danilo Bargen's user avatar
0 votes
0 answers
47 views

Accurately determining if a user has write access to a folder in c#

I am trying to write a .NET program to determine if a local account can write to a local file/folder in Windows by looking at the DACL (not by writing test files). I've also chosen to avoid the ...
david's user avatar
  • 131
0 votes
1 answer
93 views

Why are these 2 sectors different?

i tried to read ntfs partition. main function: int main(int argc, char** argv) { BYTE sector[512]; ReadSector(L"\\\\.\\E:", 0, sector); PrintBPB(ReadBPB(sector)); BYTE ...
Gula's user avatar
  • 13
0 votes
0 answers
21 views

Start services correctly and safely on Windows startup

I would like to start a Windows service ((as a daemon or ScheduledTask) on one of the clients in a small Active Directory domain for testing purposes only. The Windows service is Docker Desktop. ...
Z.J's user avatar
  • 301
0 votes
1 answer
939 views

Powershell / .NET - Will [System.IO.File] give me the same result as file copy in NTFS?

I am just trying to write a basic powershell script to test certain performance characteristics of hard drives. It's basically generating files of random content of $fsizefill bytes and writing it to ...
HTWingNut's user avatar
  • 213
0 votes
1 answer
789 views

How to mount NTFS in linux without fuseblk?

I need to check some data in linux kernel while mounting NTFS, but if I use mkfs.ntfs or mkntfs and then mount -t ntfs ... The string containing info about file system in kernel is "fuseblk"...
Muzhik's user avatar
  • 11
1 vote
1 answer
273 views

Setting up NTFS permissions on a Root folder using PowerShell

I'm creating a script so lesser capable techs can quickly and easily setup server side folders. I've been able to create the folder, related AD security groups and started assigning permissions, but I ...
AndrewC's user avatar
  • 11
0 votes
1 answer
33 views

PRESTIGIO tablet and NTFS pendrive

As far as I know, Android doesn't support NTFS file format, but when I connect pendrive with NTFS to my tablet (PRESTIGIO MULTIPAD 4 QUANTUM 7.85) it opens it with no problem and I can use files on it....
Huuulk99's user avatar
-1 votes
1 answer
40 views

Difference behavious between file written by code and by text editor?

I have some xml code that i like to have pretty printed (but is not parsable by tools like XmlDocument etc.) in a browser. I currently write the xml code to a file with File.WriteAllText(filepath, ...
Oliver's user avatar
  • 117
0 votes
0 answers
184 views

os.utime() doesn't change st_atime in a loop

I'm using a function to change the st_atime & st_mtime for files in a directory and the function looks like below (fileStatusDFOld is a df containing all the files' full directory): for index, row ...
Louie Lee's user avatar
  • 256
1 vote
1 answer
580 views

PowerShell Total File Count And Count Files Newer Than A Date

I want to get total file count and count of files newer than a specific date without having to do 2 separate calls. Is there a way do get both of these counts in 1 call? Inefficient Way: cls $...
Doug Punchak's user avatar
1 vote
3 answers
562 views

Why must multiple filesystem "types" exist?

File systems provide a mechanism for categorizing (and thus navigating) data on a disk. This makes sense to me. If I want to find some "group" of data, I don't want to have to remember byte ...
Izzo's user avatar
  • 4,461
0 votes
1 answer
199 views

Calculations of NTFS Partition Table Starting Points

I have a disk image. I'm able to see partition start and end values with gparted or another tools. However, I want to calculate them manually. I inserted an image , which showing my disk image ...
Ahmet Furkan Aydoğan's user avatar
0 votes
1 answer
131 views

Powershell not setting exact modified time?

So I don't really mind and it's not super important but I wrote a powershell script to set the time of a codec converted family film. The original files ext been named to MP44 and the resulting ...
BaconBurner's user avatar
1 vote
0 answers
764 views

c# File.WriteAllBytes raises "Access denied" exception, while "FileStream.Write" succeeds

I have the following code: var cnt = new byte[] { 0xaa, 0xbb }; var fileName = @"C:\ProgramData\path\to\myfile.bin"; try { File.WriteAllBytes(fileName, cnt); Console.WriteLine((&...
Disti's user avatar
  • 1,280
0 votes
2 answers
188 views

how to create a script that allows to use the path list as a reference for copying files in PowerShell in .bat script

I'm looking for a way to automate archiving where after I plug my two external drives I can copy all my resources. The problem is that I have different file structures on my laptop and on both ...
Paweł Pedryc's user avatar

1
2 3 4 5
20