Questions tagged [fsutil]

25 questions
18
votes
3 answers

How to create 1G zeroed sparse file in windows?

In linux: $ dd if=/dev/null of=mysparse seek=1G count=0 $ du -b mysparse 549755813888 mysparse $ du -B1 mysparse 0 mysparse In windows I have been playing with fsutil but I can not get the size on disk to be smaller than the size in the…
sabgenton
  • 684
11
votes
3 answers

Does having TRIM enabled affect other hard drives on a computer (and how do you know when Windows is using it)?

I recently purchased a new solid state drive (an OCZ Vertex 2 (80 GB)) to use primarily for my operating system. I also have three other SATA hard drives of assorted sizes for long-term data storage. I successfully installed Windows 7 onto the…
Breakthrough
  • 34,847
6
votes
2 answers

What does a DisableLastAccess value of 3 mean?

On my Windows 10 system when i run the command: fsutil behavior query disablelastaccess it returns DisableLastAccess = 3 (System Managed, Enabled) I've never manually set this value and I can't seem to find out what the value of '3' means. I came…
Rasberry
  • 453
4
votes
1 answer

Is it possible to delete a hardlink to a locked file?

In short, I need to do what was asked here: One hardlink is locked. How do I remove the other? The given solution doesn't work for me as I'm trying to create/delete a hardlink to a file that is in use by an application I can't stop and I expect to…
Morinar
  • 151
3
votes
3 answers

How can I determine the file system of a given drive letter from a Windows 10 NON-ADMIN cmd.exe?

I want to run this command and capture the output: fsutil fsinfo volumeInfo C: But unless I open a cmd.exe manually "as administrator", it won't execute the command for some absurd reason. This means that it cannot be run from PHP CLI. What is a…
Advit
  • 61
3
votes
1 answer

What does the command "fsutil file createnew" really do?

In the Windows OS command line, when I need to quickly create a file of arbitrary size, I use the command: fsutil file createnew I recently created a 100GB file using this native tool, and I was surprised that it took…
2
votes
4 answers

How do I delete hardlinks, symbolic links, junction points, etc please?

I could be wrong, but I'm yet to hear a valid argument for the exploitability that these things deliver...outweighing their very dubious / debatable functionality. They seem to me to be marginally handy, but I don't think I have any need for them. I…
jonny
  • 27
2
votes
1 answer

Can a directory junction in a trusted folder be a trusted mount point in Windows 11?

For example, I have a home directory c:\users\me. Inside that, I have c:\users\me\Dropbox. I also have a junction c:\users\me\Cloud -> c:\users\me\Dropbox to indicate that my current Cloud provider is Dropbox. Stop moaning, it works for me, mostly.…
2
votes
1 answer

How to read "fsutil usn readjournal C:" output

There is a utility that can be run on the Microsoft Windows command line called fsutil. One of the commands that it accepts is fsutil usn readjournal along with several other arguments. Is there documentation on how to read the…
1
vote
2 answers

What is short-path missing for C:\Program Files? How can I add it back?

Windows 7 (32-bit) I have an application that requires short path syntax for a sub-directory under Program Files (c:\Program Files\Foo Example\Foo Example2). On MOST of my user systems, it's enabled by default and working fine. However on a select…
Mike B
  • 2,720
1
vote
1 answer

Setting folder as case-sensitive with fsutil.exe file doesn't work

I am trying to make the folder case-sensitive on Windows 10 following one of the many tutorials using fsutil.exe: How to Enable or Disable Case Sensitive Attribute for Folders in Windows 10 First I executed command Enable-WindowsOptionalFeature…
Kngh2
  • 113
1
vote
2 answers

Chkdsk Stage 3 Error but "Chkdsk /f" Fails to Execute Repair at Windows Restart

Summary: I have a volume corruption: Specifically, it is a chkdsk Stage 3 Error. At stage 3, Chkdsk verifies Security Descriptors and USN Journals. However, chkdsk /f repair fails to run at Windows restart. Details: I have run chkdsk. It reports…
1
vote
1 answer

Is "fsutil behavior query mftzone" for all partitions in Windows 8.1 64-bit?

I have 2 HDDs and 5 partitions in them, and I can't find this question answered on DuckDuckGo, Google nor Microsoft; the command doesn't allow to specify a drive letter, so I suppose is for all partitions, but I don't know for sure. Or the default…
1
vote
1 answer

'fsutil' is not recognized as an internal or external command, operable program or batch file

Hi im having an issue with a batch file. im trying to run fsutil and take the user entry of size, name, and location and pass that to cmd to create files...i have copied a piece of code that was on this site but cannot figure out what is wrong ..any…
0
votes
2 answers

How to remove sparsefile attribute

Answers to how to remove the sparsefile file attribute appear to revolve around: fsutil sparse setflag 0|1 This does not work for me. I am on Windows 7 Pro 32-bit NTFS, as an administrator, using an elevated command prompt. Following the…
EndUzr
  • 101
1
2