mental blip causes deletion of /var
Oh dear. I can't believe that I just did that. I deleted /var --- yes everything inside it. My stupidity missed nothing ....now I can clearly see the importance of the contents of /var. Is there any way, short of a reinstall, of getting the contents of /var back?? This is on a minimal Debian Woody install.
{I have grounded myself, stopped my pocket money and have sent myself to my room. I know I have been bad.} |
Do you have another installation of Linux that you can access?
If you do... then you can recreate the directory with the permissions etc on your machine. That should clear up most things -- but not all. You could try and copy it from one system to the other but that would also create a huge mess. You are going to have to massage this system in just the right ways to get this back to where you want it. But it can be done. Attention to detail is the key (and access to a populated /var directory). |
For myself, I use the technique of not going crazy right away, but postponing the problem for a while, in this way I manage to find a more suitable solution.
|
Quote:
Exactly. So much time has passed. |
Here is a list of possible tools to help : https://www.digitalocean.com/communi...recovery-tools.
Photorec and Testdisk tend to get recommended here at LQ, but have a read. The most important thing though, is how soon after it happened (not when you discovered it) did you stop using the machine entirely(!)? Linux will have started using those 'now available' disk blocks ... You need to make a copy of the relevant disk partition and work on the copy, not the original - that way you can have several goes, possibly with different tools, and merge the results. |
Seeing as how my original post was made in 2004, I think it's high time that I marked this thread as solved. If I remember correctly, the simplest solution was to do a fresh install. I also made a promise to myself to never ever delete without thinking.
Quote:
|
All times are GMT -5. The time now is 01:32 PM. |