Is it possible to recover MongoDB databases from .ns and .0, .1, . ... files?

view story

http://serverfault.com – I have a MongoDB 2.0.4 installation on Ubuntu 12.10. Recently I had some problems connecting to the database from the outside, and figured out there was something which prevented MongoDB from starting correctly. As suggested on several sources (see StackOverflow) I removed /var/lib/mongodb/mongodb.lock and ran mongod --repair. This didn't solve the problem, MongoDB wouldn't run and kept creating lock files that it didn't take care of removing afterwards. By looking at the logs, I realized that it didn't have access to some folder called $tmpSomething, so (since the name suggested a temporary f (HowTos)