Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I addicently deleted my /usr/bin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ihavenoname
n00b
n00b


Joined: 15 Oct 2004
Posts: 14

PostPosted: Thu Apr 28, 2005 1:24 am    Post subject: I addicently deleted my /usr/bin Reply with quote

So uh, I accidently deleted my /usr/bin folder... So my linux install is limited to the command line, as gnome, and everything else in it is gone. Is there any hope of being able to fix this, or do I have to just re-install this?

It was all working perfectly too... And I played Doom 3 on linux, i'm almost done! :cry:

I tried searching... But I couldn't find anyone as dumb as I.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


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

PostPosted: Thu Apr 28, 2005 1:26 am    Post subject: Reply with quote

emerge -eDuv system && emerge -Duve world, youll have to recompile all thing just to be sure.
Back to top
View user's profile Send private message
ihavenoname
n00b
n00b


Joined: 15 Oct 2004
Posts: 14

PostPosted: Thu Apr 28, 2005 1:28 am    Post subject: Reply with quote

Only problem is, emerge is gone too. Perhaps I could copy over the stage 2 install from the disk... Would that work?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


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

PostPosted: Thu Apr 28, 2005 1:37 am    Post subject: Reply with quote

With a stage 2 you should have no problem doing that, but dont forget to tar your /etc to restore later, that will save you some time. :D
Back to top
View user's profile Send private message
ihavenoname
n00b
n00b


Joined: 15 Oct 2004
Posts: 14

PostPosted: Thu Apr 28, 2005 1:41 am    Post subject: Reply with quote

Ok... But that exactly do you mean by tar my /etc directory? I know it holds all the system configs, and what tar is. But i'm a bit confused.

I appear to have lost my disk... I probobly put it in a special place so it doesn't end up in the abyss of linux cds... But, I couldn't find it. I did however find a blank cd.

Edit: Darn... I don't have Nero!!! Wait... They have a trial version? Good. I will never be able to find the disk.
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Thu Apr 28, 2005 1:57 am    Post subject: Reply with quote

i did that once. it saves time to just move /var/db/pkg since it is no longer valid. keep your world file though. you can move it back then and decuft.
Back to top
View user's profile Send private message
ihavenoname
n00b
n00b


Joined: 15 Oct 2004
Posts: 14

PostPosted: Thu Apr 28, 2005 2:05 am    Post subject: Reply with quote

Ok, i'm gonna try this tomarrow. I need my computer tonite.

Maybe i'll do it in the morning, and let it do it's thing over the day. I've got a AMD Athlon 3500+ @ 2.4... It gets it done pretty fast.
Back to top
View user's profile Send private message
AussieAndrew
n00b
n00b


Joined: 10 Apr 2005
Posts: 14

PostPosted: Thu Apr 28, 2005 6:19 am    Post subject: Reply with quote

this makes me feel bad about not taking an image of my root partition actually...

might interest (or amuse) others if you told us how you managed to do it :P
Back to top
View user's profile Send private message
boogerman
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 253
Location: Tennessee

PostPosted: Fri Apr 29, 2005 3:57 pm    Post subject: Reply with quote

ihavenoname wrote:
Ok... But that exactly do you mean by tar my /etc directory? I know it holds all the system configs, and what tar is. But i'm a bit confused.

I appear to have lost my disk... I probobly put it in a special place so it doesn't end up in the abyss of linux cds... But, I couldn't find it. I did however find a blank cd.

Edit: Darn... I don't have Nero!!! Wait... They have a trial version? Good. I will never be able to find the disk.


tar -cvjf etc.tar.bz2 /etc/*
You may need to swap some of those arguments around. I'm at work on windows, so I can't really test it, and it's been a while sense I've done it... It's a good idea to do that though. It'll save you much time.
Back to top
View user's profile Send private message
NorthWoodsman
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2003
Posts: 134

PostPosted: Fri Apr 29, 2005 5:01 pm    Post subject: Reply with quote

Too much of a pain, just go

Code:

mv /etc /etc_old


Extract the stage 2 archive, then move it back
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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