Orbi WiFi 7 RBE973
Reply

R6700v3 Corrupting used USB Storage Devices

AshleighTheQT
Follower

R6700v3 Corrupting used USB Storage Devices

Hello all,

 

I have recently started have a VERY bizarre issue with the NAS feature of my R6700v3 router. It reads files correctly, and sends them to clients correctly, but if you try to save them, it does some weird crap. Namely, I'll use my batch script for managing game save data.

 

EDIT 1: The smilies you see in the script are NOT actually that on the file; that's the really dumb forum auto-smiley.

 

This is what it's supposed to look like:

@echo off

:main
cd /D "%~dp0"
echo "Please specify the page you want to swap with the game's current savedata."
choice /C "0123" /M "Save page:"
goto PageOut%ERRORLEVEL%

:PageOut1
SET SAVEDATAASSIGNMENT = "0"
ECHO "Moving current game save data to TEMP page folder."
xcopy /y .\game\saves\*.save .\save-page\TEMP\
del /y .\game\saves\*.save
ECHO "Moving game page 0 to current game save folder."
xcopy /y .\save-page\%SAVEDATAASSIGNMENT%\*.save .\game\saves\
del /y .\save-page\%SAVEDATAASSIGNMENT%\*.save
ECHO "Moving data from TEMP folder to page folder 0."
xcopy /y .\save-page\TEMP\*.save .\save-page\%SAVEDATAASSIGNMENT%\
del /y .\save-page\TEMP\*.save
ECHO "Task completed."
EXIT

:PageOut2
SET SAVEDATAASSIGNMENT = "1"
ECHO "Moving current game save data to TEMP page folder."
xcopy /y .\game\saves\*.save .\save-page\TEMP\
del /y .\game\saves\*.save
ECHO "Moving game page 0 to current game save folder."
xcopy /y .\save-page\%SAVEDATAASSIGNMENT%\*.save .\game\saves\
del /y .\save-page\%SAVEDATAASSIGNMENT%\*.save
ECHO "Moving data from TEMP folder to page folder 0."
xcopy /y .\save-page\TEMP\*.save .\save-page\%SAVEDATAASSIGNMENT%\
del /y .\save-page\TEMP\*.save
ECHO "Task completed."
EXIT

:PageOut3
SET SAVEDATAASSIGNMENT = "2"
ECHO "Moving current game save data to TEMP page folder."
xcopy /y .\game\saves\*.save .\save-page\TEMP\
del /y .\game\saves\*.save
ECHO "Moving game page 0 to current game save folder."
xcopy /y .\save-page\%SAVEDATAASSIGNMENT%\*.save .\game\saves\
del /y .\save-page\%SAVEDATAASSIGNMENT%\*.save
ECHO "Moving data from TEMP folder to page folder 0."
xcopy /y .\save-page\TEMP\*.save .\save-page\%SAVEDATAASSIGNMENT%\
del /y .\save-page\TEMP\*.save
ECHO "Task completed."
EXIT

:PageOut4
SET SAVEDATAASSIGNMENT = "3"
ECHO "Moving current game save data to TEMP page folder."
xcopy /y .\game\saves\*.save .\save-page\TEMP\
del /y .\game\saves\*.save
ECHO "Moving game page 0 to current game save folder."
xcopy /y .\save-page\%SAVEDATAASSIGNMENT%\*.save .\game\saves\
del /y .\save-page\%SAVEDATAASSIGNMENT%\*.save
ECHO "Moving data from TEMP folder to page folder 0."
xcopy /y .\save-page\TEMP\*.save .\save-page\%SAVEDATAASSIGNMENT%\
del /y .\save-page\TEMP\*.save
ECHO "Task completed."
EXIT

But this is what is actually written to the disk:

 

 

@echo off

:main
cd /D "%~dp0"
echo "Please specify the page you want to swap with the game's current savedata."
choice /C "0123" /M "Save page:"
goto PageOut%ERRORLEVEL%

:PageOut1
SET SAVEDATAASSIGNMENT = "0"
ECHO "Moving current game save data to TEMP page folder."
xcopy /y .\game\saves\*.save .\save-page\TEMP\
del /y .\game\saves\*.save
ECHO "Moving game page 0 to current game save folder."
xcopy /y .\save-page\%SAVEDATAASSIGNMENT%\*.save .\game\saves\
del /y .\save-page\%SAVEDATAASSIGNMENT%\*.save
ECHO "Moving data from TEMP folder to page folder 0."
xcopy /y .\save-page\TEMP\*.save .\save-page\%SAVEDATAASSIGNMENT%\
del /y .\save-page\TEMP\*.save
ECHO "Task completed."
EXIT

:PageOut2
SET SAVEDATAASSIGNMENT = "1"
ECHO "Moving current game save data to TEMP page folder."
xcopy /y .\game\saves\*.save .\save-page\TEMP\
del /y .\game\saves\*.save
ECHO "Moving game page 0 to current game save folder."
xcopy /y .\save-page\%SAVEDATAASSIGNMENT%\*.save .\game\saves\
del /y .\save-page\%SAVEDATAASSIGNMENT%\*.save
ECHO "Moving data from TEMP folder to page folder 0."
xcopy /y .\save-page\TEMP\*.save .\save-page\%SAVEDATAASSIGNMENT%\
del /y .\save-page\TEMP\*.save
ECHO "Task completed."
EXIT

:PageOut3
SET SAVEDATAASSIGNMENT = "2"
ECHO "Moving current game save data to TEMP page folder."
xcopy /y .\game\saves\*.save .\save-page\TEMP\
del /y .\game\saves\*.save
ECHO "Moving game page 0 to current game save folder."
xcopy /y .\save-page\%SAVEDATAASSIGNMENT%\*.save .\game\saves\
del /y .\save-page\%SAVEDATAASSIGNMENT%\*.save
ECHO "Moving data from TEMP folder to page folder 0."
xcopy /y .\save-page\TEMP\*.save .\save-page\%SAVEDATAASSIGNMENT%\
del /y .\save-page\TEMP\*.save
ECHO "Task completed."
EXIT

:PageOut4
SET SAVEDATAASSIGNMENT = "3"
ECHO "Moving current game save data to TEMP page folder."
xcopy /y .\game\saves\*.save .\save-page\TEMP\
del /y .\game\saves\*.save
ECHO "Moving game page 0 to current game save folder."
xcopy /y .\save-page\%SAVEDATAASSIGNMENT%\*.save .\game\saves\
del /y .\save-page\%SAVEDATAASSIGNMENT%\*.save
ECHO "Moving data from TEMP folder to page folder 0."
xcopy /y .\save-page\TEMP\*.save .\save-page\%SAVEDATAASSIGNMENT%\
del /y .\save-page\TEMP\*.save
ECHO "Task completed."
EXIT
EXITIT

As you can see, it's writing data from elsewhere in the file on the end of the actual end of the file, and if you keep removing this corruption, and saving it, the corruption basically doubles its size with each save, i.e. 1 byte of corruption turns into 2, into 4, etc.

 

 

I know it's not the disk itself (a Western Digital My Passport 4 TB; formatted as NTFS with compression enabled [Note, by the way, the router can read compressed files fine, but cannot write compressed files, at all. Is that normal?]), as I did a full surface scan and filesystem check of the disk using CHKDSK, and it returned nothing but a couple broken file security descriptors, but no bad clusters / bad sectors, and no corrupted sectors either. Whatever the router is writing to the disk, it's doing it correctly; as in, it's not mangling the filesystem itself, or the sectors / clusters, just the data it thinks it needs to write to the disk, before it actually starts writing.

Firmware version is V1.0.4.120_10.0.91, and I will not be updating to the most recent version, as I've seen a lot of people being competely unable to access the Admin web interface if they do this. I know it's not the fact it's a really large disk; it's been fine on that same firmware version for at least a month or two, and only started this last night.

 

OS of the client I'm seeing this occur on (although, since it's SMB, I presume all clients would encounter this too)

Lenovo ThinkPad X201
Operating System 1: Windows 10 Pro 64-Bit Version 10.0.19044; Build 19044
Operating System 2: Linux Mint 18
CPU: Intel Core i5-540M
RAM: 4 GB DDR3-1066; 4 GB Page File

If anyone here knows what to do to get this to stop occuring, that would be appreciated; this NAS feature is how I store all of my everything (games, documents, and the archive of literally every single file I've ever downloaded since... 2016 or so?) and since I don't know when the router started corrupting files, I really don't know how many of my games and files on the disk are mangled like this; since the corruption isn't in the filesystem itself, but rather on the file before being written to the disk, there is no way to check for it.

Message 1 of 1
Top Contributors
Discussion stats
  • 0 replies
  • 333 views
  • 0 kudos
  • 1 in conversation
Announcements

Orbi WiFi 7