LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 09-23-2004, 08:12 AM   #1
ZooL
Member
 
Registered: Aug 2004
Location: England
Distribution: Slackware 10.1
Posts: 41

Rep: Reputation: 15
Restoring /var tree


I somehow managed to wipe the whole of the /var directory tree. Is there a quick way I can restore this and the permissions? If not, can someone tell me what directories to create and their permissions. I'm using Slackware 10, so I've lost all the packages info aswell, is there any way of getting these back?
 
Old 09-23-2004, 08:43 AM   #2
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Sorry, I don't know another way, but did you make a backup?
 
Old 09-23-2004, 09:17 AM   #3
ZooL
Member
 
Registered: Aug 2004
Location: England
Distribution: Slackware 10.1
Posts: 41

Original Poster
Rep: Reputation: 15
Nope, . I could maybe get the packages data back by just re-installing them from the CD (I have every package installed so it wouldn't be hard), and I have kept all the packages I have created. Is there any other important data I will need to get back? I know a lot of it is just log files.
 
Old 09-23-2004, 09:21 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 198Reputation: 198
Well you could restore all the default directories and such with permissions but some vital files would be missing, especially the packages info stored in the directory. If you use pkgtools like removepkg, installpkg, etc, all those are wiped so you couldn't use those tools to perform upgrades, installs of tgz packages, etc.

But one system is different from another. You could have had directories others don't have and vice versa. I'd suggest if you don't have too much on this machine, back up all your other configs/files and just do a reinstall of your system if you don't have a backup copy of your /var directory.
 
Old 09-23-2004, 09:29 AM   #5
ZooL
Member
 
Registered: Aug 2004
Location: England
Distribution: Slackware 10.1
Posts: 41

Original Poster
Rep: Reputation: 15
Yeah, I know about the packages info, but I could probably get this back as I said in my last post. I don't seem to have any other problems, just a few error messages about missing directories. But I could hopefully fix these by restoring the directories and permissions. Is there anything else critically important that is put in /var in Slackware?
 
Old 09-23-2004, 02:05 PM   #6
ZooL
Member
 
Registered: Aug 2004
Location: England
Distribution: Slackware 10.1
Posts: 41

Original Poster
Rep: Reputation: 15
Does anyone have any ideas? Or am I just going to have to reinstall?
 
Old 09-23-2004, 08:31 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Unlike Windows, there is no practical way to recover deleted files in Linux. Unless you've got a backup copy of /var, I would say your best bet is just to reinstall. Good luck with it. -- J.W.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help restoring /var permissions Thiink Slackware 1 02-21-2005 05:36 AM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 06:46 PM
rm cannot remove /var/run/atd.pid and /var/run/xdm.pid danishmr Linux - Software 1 05-04-2004 08:01 AM
the bible = the tree of the knowledge of good and evil () Jesus = the tree of life Michael111 General 2 04-14-2004 04:28 PM
need a P-Tree (Patricia Tree) library manaskb Programming 1 11-02-2002 06:15 PM


All times are GMT -5. The time now is 11:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration