[Samba] How to repair corrupt ntprinters.tdb?

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Dec 6 10:44:23 GMT 2007

On Thu, Dec 06, 2007 at 11:17:09AM +0100, Christoph Peus wrote:
> Hi,
> we are using samba 3.0.24 as a printspooler for 80 network printers with 
>  a 500kB ntprinters.tdb for some years now. When we recently restarted 
> samba we noticed that the ntprinters.tdb automatically shrinked to 24kB 
> and printing was no longer possible.
> tdbdump of the original tdb-file is impossible too:
> "Failed to open ntprinters.tdb"
> The strange thing about this: we can solve the problem temporarily if we 
> copy the original 500kB tdb over the shrinked version while samba is 
> already running! So samba seems to accept the tdb-files contents if it 
> has been started with a clean tdb-file.
> Is there something like a tdb repair-tool? I would be lucky to find a 
> way of getting all the settings out of this somehow corrupt tdb instead 
> of rebuilding it from scratch...
> Any ideas?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20071206/8d5970a6/attachment.bin

More information about the samba mailing list