Question: /var is gone, now what?

Posted by pm on Thu 6 Oct 2005 at 12:16

This is another story to prove that you should have backup of the system burned on removable media. I had installed /var on separate drive and that drive died last night.

Question: is there any smart way to re-create /var structure?

Of course I can create folders hierarchy (/var/log, /var/run, etc.) or I can even copy /var from some other debian system, but how do I re-create /var/lib/dpkg/status to get apt running?

Not to mention all other applications that keep their data under /var. Any hints?

Brgds,
Piotr

This article can be found online at the Debian Administration website at the following bookmarkable URL:

This article is copyright 2005 pm - please ask for permission to republish or translate.