Windows 7 files reverting to old version problem?

Community Forums/General Help/Windows 7 files reverting to old version problem?

marksibly(Posted 2010) [#1]
Hi,

Has anyone heard of an issue with Windows where files mysteriously revert back to older versions?

It's been happening on and off for a few days now with bmx (and other) text files. Never anything major, just sort of like the last save didn't work (even though it did, because I ran the app!).

It happened big time an hour ago when we had a power spike or something, the computer reset and the file I had been working on (and saving and running etc) had reverted back about an hour!

So far, this has only affect my USB HD - but that could be because that's all I really use. Caching is turned OFF for the USB HD so I can fast-remove it.

Could this be something to do with system restore? File system virtualization?

There are a few references to similar problems on the 'net, but no real solutions/answers.

Whatever it is, it's starting to get pretty unnerving!


Nate the Great(Posted 2010) [#2]
never had the issues but I found this

http://www.techsupportforum.com/microsoft-support/windows-vista-windows-7-support/428197-replaced-file-keeps-reverting-older-version.html

it sounds like a virtualization problem on vista and 7. I think it means you change the files and it acts like you changed the files but that is all 'virtualized' because it didnt really change the file, just made a new temporary one for some reason or another.


marksibly(Posted 2010) [#3]
Hi,

Yeah it sounds similar, except the files in question are on a removable USB drive, not in program files or anything like that.

I can't find 'virtualized' versions anywhere like C:\users either.

I'm already running as admin too - anything else I can try?


Nate the Great(Posted 2010) [#4]
Group Policy contains two security settings that you can use to turn off file virtualization:

User Account Control: Run all administrators in Admin Approval mode. When this setting is disabled, UAC is disabled, including file and registry virtualization.
User Account Control: Virtualize file and registry write failures to per-user locations. When disabled, this setting will disable only file and registry virtualization.


from http://technetvietnam.net/blogs/hoangho/archive/2010/06/04/file-virtualization-in-windows-7.aspx

I dont have 7 so I cant try it but the second option looks promising. If it doesnt work, it isnt virtualization.

edit: that website is kinda sketchy but I couldnt find a better one.


GaryV(Posted 2010) [#5]
I am at a loss to why this would be happening on a USB drive.


JKP(Posted 2010) [#6]
@marksibly: May be a stupid question but have you tried chkdsk in case the volume has somehow become corrupt? Also, have you checked that the file is not readonly?

What kind of text files are affected? Is there anything unusual running in the background, e.g. remote backup and restore software?


Shortwind(Posted 2010) [#7]
Mark, let's start by getting the obvious/dumb questions/tests out of the way first:

1. Run a complete chkdsk /f /v on the drive in question. What USB HD? (Brand, size, SSD?)

2. What editor are you using? What version?

3. Is this a native install of win 7, or virtual machine? Which version of Win 7, 32 or 64 bit, home, basic, premium, server, home server?

4. What "versioning (cvs)" software are you running, if any?

5. How long have you been awake? Make sure your in office cohorts aren't playing tricks on you with networking, vnc, etc... (LOL, ok this is just for fun.)

6. Are you running Blitzmax/editor from the usb HD, or local?

7. What anti-virus software are you running?

8. Do you have this problem on any other USB drive, or just this one in particular?

9. Desktop/Notebook/other? Brand? Chipset? What drive?

10. NTFS or FAT? Primary partition or other on the device? Have you checked the file security on the drive, directory, and all files?

To me this implies a HD cache problem. You may not have caching turned on in windows, but the HD still has it's own internal interface with caching, and you can't access these settings on the drive directly.

I'd recommend you discontinue the use of that particular USB HD and try another, from a different manufacturer until your sure it's not the USB HD in question. Can you then duplicate these problems? If so it's some other hardware issue, or software issue.

Let's us know soon. :D

P.S. Why no UPS on your system???


xlsior(Posted 2010) [#8]
Yeah it sounds similar, except the files in question are on a removable USB drive, not in program files or anything like that.


Stupid question, but are you properly telling windows to unmount the USB drive before unplugging it?

All drive access is cached, but depending on what else is going on it can potentially take a significant amount of time between your application *thinking* it is done saving, and the writes actually happening in the background.

You can never count on the write being 'done' until the cache is force-written to the device, which happens either on shutdown, or when you tell windows you wish to unplug the USB device.

(If you don't, a write may be done a fraction of a second later, or in rare circumstances may take minutes to complete)

Also, make sure that the filesystem itself isn't broken on the usb device, and perform a checkdisk.


skidracer(Posted 2010) [#9]
I wouldn't trust a drive which didn't support Eject based unmounting which I don't think this one does.

Throw the thing away and go with a $20 memory stick that isn't encumbered by rubbish third party drivers or use your phone which may have a more worthy USB mass storage device interface.


marksibly(Posted 2010) [#10]
Hi,

> go with a $20 memory stick

Memory sticks are SLOW! Or are there new 'as fast as a hard drive' ones around?

Also, I moved everything to C:\ and still had some strange problems. It appears to be something to do with processes that exit abnormally or throw exceptions or something, perhaps with files still open, dunno.

And my project has reached the point where I'm doing lots of filesystem-ish stuff that IS crashing a lot, and it appears to confusing the hell out of Windows and affecting other files too.

Issue is solved for now anyway - I've moved back to the Mac for a bit!


skidracer(Posted 2010) [#11]
Windows7 just asked to restart and then after quick reboot told me to not turn my computer off.

Ever? Perhaps it's serious...


xlsior(Posted 2010) [#12]
Windows7 just asked to restart and then after quick reboot told me to not turn my computer off.

Ever? Perhaps it's serious...


Many of the automated windows updates will tell you that upon restart, since it's still wrapping up some of the updates at that point (couldn't overwrite any of the files that were still active and locked prior to the reboot, so it will finish that part up after the restart)


GaryV(Posted 2010) [#13]
Issue is solved for now anyway - I've moved back to the Mac for a bit!
:)


*(Posted 2010) [#14]

Also, I moved everything to C:\ and still had some strange problems. It appears to be something to do with processes that exit abnormally or throw exceptions or something, perhaps with files still open, dunno.



Unfortunately this is an old windows problem (dating back to 95) files left open in some instances can cause corruption if this is the case here windows reverts back to a previous uncorrupted version.


H&K(Posted 2010) [#15]
Yes, Ive had this happen.

Has anyone noticed that Games on Win 7 often revert back to default settings?
If you look you will find its the same problem Mark is having, the settings file is being replaced with an older one. I can say for sure this happend to civ iv to me.


TaskMaster(Posted 2010) [#16]
I have been using Win 7 for quite a while and have never seen this.

Very strange.


*(Posted 2010) [#17]
TaskMaster: I do think its because of processes having to be terminated that will cause the problem, in Win95 it was the TaskManager killing thing that comes up with the classic 'if you terminate this process you will lose any unsaved data' warning. The thing is sometimes windows gets muddled and corrupts the files so reverts to a previous version (trying to hope you dont notice I think). I have lost work over this too so any milestone gets backed up quadruple times (CDR, Flash Key, SVN, and External storage drive on another computer).