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

Christoph Peus cp at uni-wh.de
Fri Dec 7 13:18:02 GMT 2007


Volker Lendecke wrote:
> On Thu, Dec 06, 2007 at 12:52:15PM +0100, Christoph Peus wrote:
>> 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
> 
> Ok, then you're basically screwed. You might want to look at
> it with tdbtool, but to get the data out of the tdb file
> and/or repair it you need to be quite familiar with the tdb
> format.

tdbtool cannot open it neither:
"Could not open /tmp/ntprinters.tdb: Input/output error"

As the server seems to work well with the corrupt tdb, would "net rpc 
printer MIGRATE" be a solution for saving the tdb-files contents to 
another samba server? (Or does the migration feature copy the 
ntprinters.tdb as is? I doubt it...)
Thanks for your support.

Christoph



More information about the samba mailing list