Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.