1
\$\begingroup\$

I renamed my .brd file, but when I tried to open it, I got this error message:

Error:

line 1, column 2: Premature end of document.

Is there any way to recover what I've lost?

\$\endgroup\$
  • 1
    \$\begingroup\$ do you have any .b## or .b#1 files? \$\endgroup\$ – Tom Carpenter Apr 18 '17 at 20:21
  • \$\begingroup\$ yes, recovery files right? \$\endgroup\$ – Amin Mansouri Apr 18 '17 at 20:22
  • \$\begingroup\$ They are backups, yes. .b## is a backup that is made if eagle crashes. .b#1/.b#2/etc. are periodic backups. \$\endgroup\$ – Tom Carpenter Apr 18 '17 at 20:23
  • \$\begingroup\$ Find the newest one and rename it to .brd. \$\endgroup\$ – Tom Carpenter Apr 18 '17 at 20:23
  • \$\begingroup\$ yaaay! it worked! \$\endgroup\$ – Amin Mansouri Apr 18 '17 at 20:24
5
\$\begingroup\$

Most likely your file was corrupted, either during save, or a crash. In your case it looks like you corrupted it when you renamed it.

Fortunately Eagle makes periodic backups of your files, and also a backup in the event of a crash. These will be files with the same name as your board file, but with an extension of .b## (crash backup) or .b#1/.b#2/etc. (auto-save backup).

To recover from one of the backup files, simply rename the file to .brd and open it. You should pick the one with the most recent date, hopefully it is quite recent. You will have lost any edits between when the backup was made and when you were working on the board, but if the backup is very recent, this shouldn't be too hard to rectify.

\$\endgroup\$
  • \$\begingroup\$ It's very simple, I just renamed my backup files .b#1..... to .brd, thanks to Tom Carpenter! \$\endgroup\$ – Amin Mansouri Apr 18 '17 at 20:26
  • 1
    \$\begingroup\$ @AminMansouri Don't forget to accept Tom's answer. It will indicate to the next reader that it solved the problem. \$\endgroup\$ – DerStrom8 Aug 15 '17 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.