Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/Var Deleted, Is that the end?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
anchorman082589
n00b
n00b


Joined: 02 Oct 2005
Posts: 27
Location: Ny metro

PostPosted: Tue Oct 11, 2005 2:17 am    Post subject: /Var Deleted, Is that the end? Reply with quote

Hi,

I just unintentionally deleted my /Var folder, is this the end of a functional instlation of Gentoo, or can i save it?
_________________
"to be yourself is all that you can do"
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Tue Oct 11, 2005 2:25 am    Post subject: Reply with quote

It can be annoying, but not the end at all.

You might need to recreate manually some dirs as the applications give you errors not being able to find them. Alternatively, you can "emerge system". Most vitall stuff should be recreated. You will also need to do "emerge metadata" or "emerge sync" to recreate the portage cache. The rest of the stuff should (mostly) be recreated as the applications work. Of course, if you were using any spool directory into var (for printer of mail server or anything) all that is lost.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
anchorman082589
n00b
n00b


Joined: 02 Oct 2005
Posts: 27
Location: Ny metro

PostPosted: Tue Oct 11, 2005 2:32 am    Post subject: Reply with quote

Thanks, i am emerge system right now. I just go to thinking though, will this overwrite my sytem files (my fstab and the like)?

Thanks for the help in advance,

Dan
_________________
"to be yourself is all that you can do"
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Tue Oct 11, 2005 3:04 am    Post subject: Reply with quote

After that you will receive a message telling you that you need to run "etc-update" to check for new updates in the configuration files (mostly under /etc/). If you managed to get a running gentoo, you should already be familiar with etc-update tool. It just show the differences between old file and new ones. If you modified a file (like fstab) and it is working, when etc-update reachs to that just choose to keep the old file and discard the new one. A good policy is to always accept to update files that you did not configure by hand, and manually change the rest.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
anchorman082589
n00b
n00b


Joined: 02 Oct 2005
Posts: 27
Location: Ny metro

PostPosted: Tue Oct 11, 2005 3:23 am    Post subject: Reply with quote

K, I did this just as i was getting to the first boot (mounted my /var partition as the swap, not a good idea), but I get the drift i think.
_________________
"to be yourself is all that you can do"
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Tue Oct 11, 2005 7:40 am    Post subject: Reply with quote

Moved from Other Things Gentoo to Duplicate Threads, please see this topic.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum