digitalmars.D - Mono corrupted D files
- AsmMan (25/25) Sep 03 2014 Something very strange happened 2/3 days ago. Two of my D files
- AsmMan (2/28) Sep 03 2014 If it is relevant, I'm using Windows 8.1 64-bit
- Israel (10/41) Sep 03 2014 Its hard to say friend. Im not exactly a mono "Expert" but i
- AsmMan (15/58) Sep 03 2014 I think it was what happend... instead of the default
- Sativa (11/37) Sep 03 2014 You have probably already lost the data, but it is possible that
- AsmMan (8/49) Sep 03 2014 Which backup are you talking about? the windows' native one? if
- Etienne Cimon (4/11) Sep 03 2014 http://www.dtidata.com/resourcecenter/2007/05/01/file-recovery-sector-ed...
- AsmMan (7/25) Sep 05 2014 I was so happy when my search got a result... but these results
- Etienne Cimon (4/9) Sep 06 2014 That's still very good, you could also repeat the search for other
- AsmMan (15/26) Sep 06 2014 I gave up to recovery them. No idea why but it does show only old
- Bruno Medeiros (7/28) Sep 04 2014 Does Mono have a "local history" for files in Mono projects? Something
- AsmMan (4/50) Sep 05 2014 I asked on xamarim studio forum but I think there's no such a
- AsmMan (8/8) Sep 05 2014 Does anyone knows if the Mono for D is active on this forum? or
- Dicebot (2/10) Sep 06 2014 https://github.com/aBothe/Mono-D
- Kapps (6/32) Sep 06 2014 Sounds like something crashed during the middle of a write. I
- AsmMan (12/47) Sep 06 2014 My guess: I had a project opened on mono/xamarim studio where all
Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.
Sep 03 2014
On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote:Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.If it is relevant, I'm using Windows 8.1 64-bit
Sep 03 2014
On Wednesday, 3 September 2014 at 21:46:54 UTC, AsmMan wrote:On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote:Its hard to say friend. Im not exactly a mono "Expert" but i would assume what happened was... --You put your system to hibernate --The computer somehow lost power and the memory dump was diminished. --When you turned your computer back on, that dump was corrupted and somehow affected your files. zip the files up and uplaod them, maybe someone here can help salvage what is left?Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.If it is relevant, I'm using Windows 8.1 64-bit
Sep 03 2014
On Thursday, 4 September 2014 at 00:37:52 UTC, Israel wrote:On Wednesday, 3 September 2014 at 21:46:54 UTC, AsmMan wrote:I think it was what happend... instead of the default configuration to after x minutes (if no one is using the computer) it was defined to "never" (at least, until baterry power is < 10%) hibernate. If so, there's nothing which I can do, isn't? :( I had a very small hope the windows restore could restore it but didn't. I'll give a try to softwares like recuva. Who knows if I may find the files in there for any reason. I read http://security.stackexchange.com/questions/49166/is-filling-up-the-empty-space-in-a-disk-with-any-data-enough measure-against-fil one of the answer said it is easily recoverable. Let's see how "easily" it is without this special machine he nentioned.On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote:Its hard to say friend. Im not exactly a mono "Expert" but i would assume what happened was... --You put your system to hibernate --The computer somehow lost power and the memory dump was diminished. --When you turned your computer back on, that dump was corrupted and somehow affected your files.Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.If it is relevant, I'm using Windows 8.1 64-bitzip the files up and uplaod them, maybe someone here can help salvage what is left?I don't know if it can be useful. The files is nothing but zeroes. Check out: http://oi58.tinypic.com/51zfyh.jpg This file has 18k just of zeroes.
Sep 03 2014
On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote:Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.You have probably already lost the data, but it is possible that a different copy of the file is located on the drive. If you've restored a backup you are probably screwed. Sometimes programs will store files in a temp directory or when they save the file it won't overwrite the old one, but delete it and make a new one. These can be recovered in many cases as long as the data hasn't be overwritten by other files. They may not exist on the file system but in the free space, you have to use an undelete program that does a low level scan of the file system for deleted files.
Sep 03 2014
On Thursday, 4 September 2014 at 02:22:27 UTC, Sativa wrote:On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote:How can I check it?Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.You have probably already lost the data, but it is possible that a different copy of the file is located on the drive.If you've restored a backup you are probably screwed.Which backup are you talking about? the windows' native one? if so, I didn't because it isn't turned on.Sometimes programs will store files in a temp directory or when they save the file it won't overwrite the old one, but delete it and make a new one.did you mean to I delete the .d file and open mono and it may make a new copy from temporary directory?These can be recovered in many cases as long as the data hasn't be overwritten by other files. They may not exist on the file system but in the free space, you have to use an undelete program that does a low level scan of the file system for deleted files.What software do you recommend? I tried recuva but it didn't show even a single d file...
Sep 03 2014
On 2014-09-03 17:13, AsmMan wrote:Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it...http://www.dtidata.com/resourcecenter/2007/05/01/file-recovery-sector-editor-find-lost-data/ If you remember an exact string from the document and some bytes are still floating around somewhere on the drive, this method will find it
Sep 03 2014
On Thursday, 4 September 2014 at 03:04:12 UTC, Etienne Cimon wrote:On 2014-09-03 17:13, AsmMan wrote:I was so happy when my search got a result... but these results are very small blocks of an old version of the files I lost. One of the files had around 800 lines I can find say, 150/180 lines using it. Now I know how this called: http://en.wikipedia.org/wiki/Zero_byte_fileSomething very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it...http://www.dtidata.com/resourcecenter/2007/05/01/file-recovery-sector-editor-find-lost-data/ If you remember an exact string from the document and some bytes are still floating around somewhere on the drive, this method will find it
Sep 05 2014
On 2014-09-05 21:48, AsmMan wrote:I was so happy when my search got a result... but these results are very small blocks of an old version of the files I lost. One of the files had around 800 lines I can find say, 150/180 lines using it. Now I know how this called: http://en.wikipedia.org/wiki/Zero_byte_fileThat's still very good, you could also repeat the search for other strings from the blocks you lost, they may be in different versions and different blocks.
Sep 06 2014
On Saturday, 6 September 2014 at 17:51:50 UTC, Etienne Cimon wrote:On 2014-09-05 21:48, AsmMan wrote:I gave up to recovery them. No idea why but it does show only old versions of the file instead of the most recent. And they are small blocks which aren't more than 20% of the file starting from line 1. I can't find any part of these 80% in nowhere (I read and compared all results). I got in touch to Mono for D's author and there is no such an auto backup on Mono/Xamarim. He recommended another undelete tool which didn't worked for me too. This time I'll do more than one backup and active the windows' native one. Big thanks for everyone which tried to help me. I'm already reinstalling XS (btw, I asked for windows for desktop version and now I'm installing all platforms supported by xamarim stuido which I'm not going to develop to).I was so happy when my search got a result... but these results are very small blocks of an old version of the files I lost. One of the files had around 800 lines I can find say, 150/180 lines using it. Now I know how this called: http://en.wikipedia.org/wiki/Zero_byte_fileThat's still very good, you could also repeat the search for other strings from the blocks you lost, they may be in different versions and different blocks.
Sep 06 2014
On 03/09/2014 22:13, AsmMan wrote:Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.Does Mono have a "local history" for files in Mono projects? Something like an automatic version history that keep tracks of the last X changes made to the file? -- Bruno Medeiros https://twitter.com/brunodomedeiros
Sep 04 2014
On Thursday, 4 September 2014 at 15:52:57 UTC, Bruno Medeiros wrote:On 03/09/2014 22:13, AsmMan wrote:I asked on xamarim studio forum but I think there's no such a feature. Windows does, but it wasn't turned on at time.Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.Does Mono have a "local history" for files in Mono projects? Something like an automatic version history that keep tracks of the last X changes made to the file?
Sep 05 2014
Does anyone knows if the Mono for D is active on this forum? or even knows how can I contact he? I can't find any email/web page... Probably he knows if there's a way to get back this zero-ed files. Get them back by reading from a hex debugger was the closest I did so far but as it just show blocks of the file (and with repeats and a lot of parts missing) a rewriter is probably better.
Sep 05 2014
On Saturday, 6 September 2014 at 02:03:00 UTC, AsmMan wrote:Does anyone knows if the Mono for D is active on this forum? or even knows how can I contact he? I can't find any email/web page... Probably he knows if there's a way to get back this zero-ed files. Get them back by reading from a hex debugger was the closest I did so far but as it just show blocks of the file (and with repeats and a lot of parts missing) a rewriter is probably better.https://github.com/aBothe/Mono-D
Sep 06 2014
On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote:Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.Sounds like something crashed during the middle of a write. I would be surprised if this was related to Mono-D at all (I highly doubt that he changed the way files are saved). I'd also be concerned about the potential of a dying HDD, though that's less likely if this is the only thing that broke.
Sep 06 2014
On Saturday, 6 September 2014 at 19:09:30 UTC, Kapps wrote:On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote:My guess: I had a project opened on mono/xamarim studio where all the files has already been saved before I hibernate the computer. The computer somehow lost the power xamarim/mono tried to save it but computer aborted before making these files into zero-byte-file. A zero-byte-file does happen when a program is writing to a file but is prematurely aborted because this write isn't transfered to file at same time but to a "cache" instead of and at later time written in the file. The computerd turned off before it. I think the Etienne Cimon's method didn't worked well because I used the computer after it. Maybe if I had kept the computer untouched I could get back them.Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I had a old copy of it on a external hard drive but I needed to format it to use in something else and didn't put my files before it... Instead of turn off my windows machine I always hirbenate it and left open all stuff and then I just back quickly to point where I was on. That day, when I logged on system I noticied first non-usual behavior: the machine looked like I had restarted it instead of hibernate. All stuff I left open (including mono) wasn't open anymore. I find it strage but moved on. But to my surprise when I open mono, the "recent projects" always available on left menu bar was empty. Just like I had installed mono not used yet. I open my project directly by clicking on "open" and navigating to folder of projec and then I see the two of main project files with a values set to zero. Can some Mono expected help me? My question is: can I recovery these files? or what remains to me is cry? restore the system didn't helped (and I neither expected to but I tried) Not sure if it is related: that day my machine had no a network connection.Sounds like something crashed during the middle of a write. I would be surprised if this was related to Mono-D at all (I highly doubt that he changed the way files are saved). I'd also be concerned about the potential of a dying HDD, though that's less likely if this is the only thing that broke.
Sep 06 2014