Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


14218 posts

Uber Geek
+1 received by user: 2572

Trusted
Subscriber

Topic # 242290 19-Oct-2018 20:48
Send private message

I have a file that I can't delete. When I try to delete, view, or view properties it hangs Windows explorer. The problem it's causing is my backup software complains about it. This drive is a storage spaces mirror volume sitting on top of to ReFS formatted disks. You can't check ReFS disk integrity in disk -> properties -> tools.

 

I've tried rebooting into recover mode command prompt. I cd'd to the folder then used "del filename" and got the message "The filename, directory name, or volume label syntax is incorrect". I tried "icacls * /T /Q /C /RESET" in its folder, it said "cannot find the file specified".

 

I tried safe mode. I can view the file properties, but the security tab won't show anything. I can't delete it.

 

Not sure what else I can try. Any suggestions?

 

I going to tag @Regs who was very helpful last time I had a similar problem, and @nathan who knows something about Windows.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
292 posts

Ultimate Geek
+1 received by user: 46


  Reply # 2111246 19-Oct-2018 22:37
One person supports this post
Send private message

have you got some type of boot disk / usb stick ??

 

http://www.ultimatebootcd.com/ is good

 

use one of those to boot the pc and delete the file


211 posts

Master Geek
+1 received by user: 32


  Reply # 2111252 19-Oct-2018 23:48
Send private message

Do the following PowerShell commands run from an administrative window help;

 

Get-FileIntegrity

 

Set-FileIntegrity

 

Repair-FileIntegrity





Obsequious hypocrite



14218 posts

Uber Geek
+1 received by user: 2572

Trusted
Subscriber

  Reply # 2111271 20-Oct-2018 06:04
Send private message

biggal:

 

have you got some type of boot disk / usb stick ??

 

http://www.ultimatebootcd.com/ is good

 

use one of those to boot the pc and delete the file

 

 

The disk is a storage spaces mirror based on the ReFS file system. Do you have any particular tool that fully supports ReFS and ideally Storage Spaces that could do this? I guess with ReFS support but no storage spaces support I could do each physical disk independently.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer




14218 posts

Uber Geek
+1 received by user: 2572

Trusted
Subscriber

  Reply # 2111274 20-Oct-2018 06:07
Send private message

ObidiahSlope:

 

Do the following PowerShell commands run from an administrative window help;

 

Get-FileIntegrity

 

Set-FileIntegrity

 

Repair-FileIntegrity

 

 

Thanks for the suggestion. Unfortunately while I can get-item none of the integrity commands work. Do they apply when ReFS is in a storage space mirror?

 

Note that I've changed the quite long path to c:\path, so any inconsistencies are with my replace rather than with my commands... probably.

 

 

 

Other File / Folder

 

To show that another part of the volume is ok here's what happens when I run the same commands on files that are working ok. Again, paths changed, but content is accurate.

 

FileName Enabled Enforced
-------- ------- --------
c:\files\file1.jpg True True
c:\files\file2.jpg True True

 

 

 

First Command on problem files
c:\path\x> Get-Item -Path 'c:\path\x\*'

 


Directory:

 


Mode LastWriteTime Length Name
---- ------------- ------ ----
aux.jpg

 

 

 

Second Command
Get-Item -Path 'c:\path\x\*' | Get-FileIntegrity

 

Get-FileIntegrity : The specified extrinsic Method does not exist.
At line:1 char:69
+ ... c:\path\x\*' | Get-FileIntegrity
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_FileIntegrity:ROOT/Microsoft/...T_FileIntegrity) [Get-FileIntegrity
], CimException
+ FullyQualifiedErrorId : MI RESULT 17,Get-FileIntegrity

 

Third Command
c:\path> Get-FileIntegrity -FileName 'c:\path
IM\x\aux.jpg'
Get-FileIntegrity : The specified extrinsic Method does not exist.
At line:1 char:1
+ Get-FileIntegrity -FileName 'c:\path ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_FileIntegrity:ROOT/Microsoft/...T_FileIntegrity) [Get-FileIntegrity
], CimException
+ FullyQualifiedErrorId : MI RESULT 17,Get-FileIntegrity

 


Fourth Command
Get-Item -Path 'c:\path\x\*' | Repair-FileIntegrity

 

Repair-FileIntegrity : The specified extrinsic Method does not exist.
At line:1 char:69
+ ... photos\Collections\PhoneCameraImages\DCIM\x\*' | Repair-FileIntegrity
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_FileIntegrity:ROOT/Microsoft/...T_FileIntegrity) [Repair-FileIntegr
ity], CimException
+ FullyQualifiedErrorId : MI RESULT 17,Repair-FileIntegrity





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


90 posts

Master Geek
+1 received by user: 22

Subscriber

  Reply # 2111306 20-Oct-2018 10:05
Send private message

Have you read this https://docs.microsoft.com/en-us/windows-server/storage/refs/integrity-streams you need to set the integrity first. Understand the commands on a known good file before you work with the bad file.




14218 posts

Uber Geek
+1 received by user: 2572

Trusted
Subscriber

  Reply # 2111346 20-Oct-2018 10:32
Send private message

fearandloathing: Have you read this https://docs.microsoft.com/en-us/windows-server/storage/refs/integrity-streams you need to set the integrity first. Understand the commands on a known good file before you work with the bad file.


Thanks for the link. Integrity streams were enabled for the entire volume when it was created. There's just something wrong with this file.




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


3821 posts

Uber Geek
+1 received by user: 1248


  Reply # 2111415 20-Oct-2018 13:03
Send private message

Try and delete using the 'dos' file name. 

 

I've had difficult files in the past, once was the path was too long. I'm sure I had success another time by using the dos file name. Find it by...

 

DIR /x 

 

Then delete using the dos name, have no idea if that works in REFS though. 

 

 




14218 posts

Uber Geek
+1 received by user: 2572

Trusted
Subscriber

  Reply # 2111416 20-Oct-2018 13:10
Send private message

surfisup1000:

 

Try and delete using the 'dos' file name. 

 

I've had difficult files in the past, once was the path was too long. I'm sure I had success another time by using the dos file name. Find it by...

 

DIR /x 

 

Then delete using the dos name, have no idea if that works in REFS though. 

 

 

 

 

Thanks for the idea. DOS filename is the name as the regular filename, it's "aux.jpg" with no spaces or punctuation.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


211 posts

Master Geek
+1 received by user: 32


  Reply # 2111432 20-Oct-2018 15:27
Send private message
281 posts

Ultimate Geek
+1 received by user: 79

Subscriber

  Reply # 2111434 20-Oct-2018 15:45
Send private message

Boot using linux USB?




14218 posts

Uber Geek
+1 received by user: 2572

Trusted
Subscriber

  Reply # 2111460 20-Oct-2018 16:48
Send private message

ObidiahSlope:

 

Read this thread on technet. Doesn't give you much reassurance;

 

https://social.technet.microsoft.com/Forums/windowsserver/en-US/cd28095d-e421-4538-9a9f-a15260e79a75/refs-test-with-corrupt-data-does-it-work?forum=winserverfiles

 

 

Not a lot, but there's really only one or two people there and their methodology looks somewhat questionable.

 

 

 

ech3lon:

 

Boot using linux USB?

 

 

Does Linux do ReFS formatted disks in a Storage Space mirror?





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


gzt

10264 posts

Uber Geek
+1 received by user: 1578


  Reply # 2111506 20-Oct-2018 17:43
Send private message

Windows system event log for ReFS events. Anything interesting there?



14218 posts

Uber Geek
+1 received by user: 2572

Trusted
Subscriber

  Reply # 2111616 20-Oct-2018 20:29
Send private message

I went into the Event View, System log. I sent the filter to "ReFS (Microsoft-Windows-ReFS), ReFS (ReFS), ReFSv1, StorageSpaces-Driver, StorageSpaces-ManagementAgent, StorageSpaces-SpaceManager". Event level was left blank, and then I tried all the check boxes. There were no events at all. This is fairly typical, I check these logs every few months and never see anything.

 

My confidence in ReFS and storage spaces is fairly low at this point. I haven't had any obvious file corruption.

 

A while back I was looking at building a PC for a ZFS NAS, but decided to do ReFS and storage spaces on my instead. Much cheaper and easier, and so far no problems. I'm considering moving all my data from the ReFS storage space to a temporary disk, then using a single NTFS disk for data with some kind of nightly backup. I have regular backups to offsite disks, and cloud backups, so my data is safe, I think ReFS and storage spaces it immature and needs a few years more testing before it's really used in production.

 

I am seeing a few generic disk errors, all at least a week ago, such as

 

 

 

The IO operation at logical block address 0x5f for Disk 6 (PDO name: \Device\00000081) was retried.

 

An error was detected on device \Device\Harddisk6\DR16 during a paging operation.

 

 

 

I note that my swap file is on an NTFS SSD, which isn't the disk I'm having issues with.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


gzt

10264 posts

Uber Geek
+1 received by user: 1578


  Reply # 2111638 20-Oct-2018 21:03
Send private message

Task Scheduler > Microsoft\Windows\Data Integrity Scan.

I'd assume that would log a run at least but maybe not. Is there a command line exposed in that you can run manually and get some output?

gzt

10264 posts

Uber Geek
+1 received by user: 1578


  Reply # 2111649 20-Oct-2018 21:16
Send private message

Btw just noticed Microsoft removed ReFS creation from Pro standard at Fall Creators:

https://support.microsoft.com/en-us/help/4034825/features-that-are-removed-or-deprecated-in-windows-10-fall-creators-up

Creation is available in a new sku "Windows 10 Pro for Workstations" and up.

https://support.microsoft.com/en-us/help/4034825/features-that-are-removed-or-deprecated-in-windows-10-fall-creators-up

 1 | 2
Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.