How to Repair Exchange Public EDB (Pub1.edb) file

Updated on October 26, 2018

Microsoft Exchange Server comprises an agile Extensible Storage Engine (ESE) and a secure Information store to facilitate seamless email communication. The Exchange Information store contains STM and EDB files where the actual mailbox data resides. STM and EDB files are divided into 2 categories – Private and Public. Private files (Priv1.edb and Priv1.stm) help the server in identifying the default mailbox storage database, while Public files (Pub1.edb and Pub1.stm) store all email information associated with the default public store. That, in effect, means that the Public EDB and STM files are where all the action takes place. They store user emails, notes, contacts, attachments, etc. and any damage to these files can lead to huge data losses. Typically, Public EDB or Pub1.edb is the file which stores crucial email attachments and MAPI messages. So in order for users to safeguard their work data, this is the file that needs to be protected from threats.

Most Common Threats to Pub1.edb

A lot of things can damage Pub1.edb file. The most common ones include:

  • An unexpected power failure because of unavailability of power backup
  • An inefficient shutdown procedure during email restoration process
  • A spontaneous hard drive sector error
  • Virus attack or Malware

Due to any of the above issues, the Exchange server might be unable to perform the standard shutdown procedure leaving the database in an inconsistent or “dirty shutdown” state. In such cases, the database is unable to isolate itself from transaction log streams which impacts the consistency and integrity of the database. At this point, if you restart the server, it looks out for missing log files of data, which, if missing, renders the Exchange corrupt.

Another aspect of Exchange problems involves the Jet Engine. “Jet engine errors” originate due to hardware or software problems which can damage the server database at different levels including the Information Store, Jet Database Engine, Exchange Server file system, etc. In this scenario too, EDB files end up getting damaged.

Regardless of what causes EDB file to get damaged, to prevent any data loss the file must be repaired at the earliest.

Recover Exchange Public Database EDB file

Pub Exchange EDB recovery requires a series of steps many of which need to be executed on the command prompt. Thus, be very careful with this procedure. Any mistake can cause irreversible damage. Also, before starting the pub EDB repair process, inspect the error properly since the repair process will change as per the error.

Next, follow the below steps:

  • Stop Exchange Information Store Services
  • Navigate to the Bin folder through command line interface using the following command: eseutil /mh ..\mdbdata\priv1.edb at the command line path: C:\exchsrvr\bin>
  • Press Enter.
  • Now check if the state of the database is clean or not. If you find any issues, you’ll need to perform a soft recovery after exporting the folder to the place where the log files are stored.
  • Execute this command at the command line path C:\Program Files\exchsrvr\MDBDATA> “C:\Program Files\exchsrvr\BIN\eseutil" /r E00
  • Now check the state again. If things are still the same, you’ll need to perform a hard recovery process. At the command line path C:\Program Files\exchsrvr\MDBDATA>, enter the following command: "C:\Program Files\exchsrvr\BIN\eseutil" /p pub1.edb
  • Navigate to the Mbdata folder and then discard the *.chk and Temp.edb files along with log files.
  • Formidably, mount and then dismount the Exchange Server database and cut off the Exchange information store services.
  • Finally, try to defragment the Public EDB mailboxes by executing the following command: C:\Program Files\exchsrvr\BIN>eseutil /d "C:\Program Files\exchsrvr\MDBDATA\pub1.edb"
  • Now perform Isinteg.exe fix by entering the following command: C:\Program Files\exchsrvr\BIN>isinteg -s (servername) -fix -test alltests
  • Close the command prompt, and then restart the Exchange Server services to reinstate the recovery of corrupt Pub1.edb files.

Though these steps are capable of repairing the Pub file in most cases of damage, however, in case of severe corruption, the process might fail to repair pub edb file. Moreover, it needs a lot of technical know-how and precision to execute since it involves a lot of command prompts. Thus, a better approach to recover the Exchange public database is by employing a secure and reliable third-party Exchange recovery tool.

The recommended way to repair pub EDB file

Stellar Repair for Exchange software is a professional tool for handling any level of corruption in EDB files and effectively restores mailbox contents such as emails, attachments, contacts, calendars, tasks, etc. The tool extracts data from damaged EDB files and saves it as PST files which can be directly imported into MS Outlook to access mailbox contents. With advanced features such as option to save recovered data in multiple formats, deleted mailbox recovery, selective mailbox recovery, Unicode EDB file recovery, etc. this utility is your best bet to recover data from damaged EDB files.

The Final Word

Repairing Exchange pub EDB files is absolutely possible with manual methods that are free of cost; however, such methods are often too complicated for beginners. Thus, to perform EDB file recovery in the easiest and safest manner, leveraging Stellar Repair for Exchange would serve the purpose!