View previous topic :: View next topic |
Author |
Message |
ihavenoname n00b
Joined: 15 Oct 2004 Posts: 14
|
Posted: Thu Apr 28, 2005 1:24 am Post subject: I addicently deleted my /usr/bin |
|
|
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!
I tried searching... But I couldn't find anyone as dumb as I. |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu Apr 28, 2005 1:26 am Post subject: |
|
|
emerge -eDuv system && emerge -Duve world, youll have to recompile all thing just to be sure. |
|
Back to top |
|
|
ihavenoname n00b
Joined: 15 Oct 2004 Posts: 14
|
Posted: Thu Apr 28, 2005 1:28 am Post subject: |
|
|
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 |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu Apr 28, 2005 1:37 am Post subject: |
|
|
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. |
|
Back to top |
|
|
ihavenoname n00b
Joined: 15 Oct 2004 Posts: 14
|
Posted: Thu Apr 28, 2005 1:41 am Post subject: |
|
|
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 |
|
|
augury l33t
Joined: 22 May 2004 Posts: 722 Location: philadelphia
|
Posted: Thu Apr 28, 2005 1:57 am Post subject: |
|
|
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 |
|
|
ihavenoname n00b
Joined: 15 Oct 2004 Posts: 14
|
Posted: Thu Apr 28, 2005 2:05 am Post subject: |
|
|
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 |
|
|
AussieAndrew n00b
Joined: 10 Apr 2005 Posts: 14
|
Posted: Thu Apr 28, 2005 6:19 am Post subject: |
|
|
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 |
|
Back to top |
|
|
boogerman Apprentice
Joined: 10 Dec 2004 Posts: 253 Location: Tennessee
|
Posted: Fri Apr 29, 2005 3:57 pm Post subject: |
|
|
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 |
|
|
NorthWoodsman Tux's lil' helper
Joined: 25 Apr 2003 Posts: 134
|
Posted: Fri Apr 29, 2005 5:01 pm Post subject: |
|
|
Too much of a pain, just go
Extract the stage 2 archive, then move it back |
|
Back to top |
|
|
|