[Samba] Re: How to repair corrupt ntprinters.tdb?

Christoph Peus cp at uni-wh.de
Thu Dec 6 11:52:15 GMT 2007


Volker Lendecke wrote:
> 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?
> 
> tdbbackup?

Thanks, but no luck:

lunkwill tmp # tdbbackup -v ntprinters.tdb
restoring ntprinters.tdb
ntprinters.tdb.bak: No such file or directory
lunkwill tmp # tdbbackup ntprinters.tdb
Failed to open ntprinters.tdb

Regards
Christoph



More information about the samba mailing list