Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing a Stage 3 tarball onto an existing system?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Tue Apr 28, 2009 1:14 pm    Post subject: Installing a Stage 3 tarball onto an existing system? Reply with quote

Through one thing or another, I managed to pretty seriously break my Gentoo. I got it back up and running more or less, but it's still crippled and missing certain critical binaries like "locate" and "libstc++.so.6", so I can't emerge anything. Would it be a really bad idea to dump a Stage 3 tarball onto the system and then "emerge -NDuav world && revdep-rebuild"?
_________________
I suck at signatures.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Tue Apr 28, 2009 1:19 pm    Post subject: Reply with quote

You'd overwrite all your configs and stuff...bad idea. I'd suggest getting just the libs you need from another machine so that you can 'emerge -e system'. After that 'emerge -e world' will go smoothly.
Back to top
View user's profile Send private message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Tue Apr 28, 2009 1:22 pm    Post subject: Reply with quote

Ah, O.K. Thanks. I guess I'll have to Google for the needed files since I don't have another machine handy.

I can get coreutils from one of the ../gentoo/distfiles mirrors. Now to find libstc++.so.6

(Oh, the lesson to learn here, folks, is that if you're doing any sort of critical updating on your Gentoo box, don't do it while you're tried, and don't rush. That's how you make mistakes. :?)
_________________
I suck at signatures.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Tue Apr 28, 2009 2:37 pm    Post subject: Reply with quote

Can you get online with this machine? If you can, then all you need to do is manually go to a mirror, download the files, and put them into your /usr/portage/distfiles directory.
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Tue Apr 28, 2009 2:54 pm    Post subject: Reply with quote

Yeah, I can get online. I've downloaded the latest version of coreutils, which should help, but I can't find a copy of libstdc++.so.6

Another idea comes to mind: I notice that tar has an option that reads:

Code:
-k, --keep-old-files
         keep existing files; don't overwrite them from archive


As I read it, that option will extract files from the archive but it won't whack existing files in the destination. Am I understanding that correctly? If so then I could theoretically extract everything I need from a Stage 3 tarball without wiping out my config files and screwing myself even worse.
_________________
I suck at signatures.
Back to top
View user's profile Send private message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Tue Apr 28, 2009 4:16 pm    Post subject: Reply with quote

If this page is correct then that is indeed what the -k switch does:

Quote:
The ‘--keep-old-files’ (‘-k’) option prevents tar from replacing existing files with files with the same name from the archive. The ‘--keep-old-files’ option is meaningless with ‘--list’ (‘-t’). Prevents tar from replacing files in the file system during extraction.

http://www.gnu.org/software/tar/manual/html_section/extract-options.html#SEC71

So it looks like I should be able to grab a Stage 3 tarball and then extract it with "tar -xvfk foo".
_________________
I suck at signatures.
Back to top
View user's profile Send private message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Fri May 01, 2009 1:14 pm    Post subject: Reply with quote

Well, it seems to have worked (though if anybody else tries it, you'll want to include the "j" switch to maintain permissions: "tar -xvfjk foo"). After running an "emerge -e system" followed by "emerge -e world" I've finally got KDE back up and running so I'm no longer stuck with the basic X windows interface. Things didn't always go perfectly smoothly, and there are a couple of niggling issues that I still have to squash, but at least my system is more or less back in business.
_________________
I suck at signatures.
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 888
Location: Germany

PostPosted: Sat May 02, 2009 8:02 am    Post subject: Reply with quote

Funny you asked the question about the stage 3 just now.

I didn't, I just installed the tarball. Really bad idea *g*.
Thanks for the -k switch. That'll come in handy next time.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Sat May 02, 2009 8:57 am    Post subject: Reply with quote

If you have a seperate harddisk like a USB harddrive next time make a backup first.
That's what I do.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Sun May 03, 2009 7:57 pm    Post subject: Reply with quote

Gerard van Vuuren wrote:
If you have a seperate harddisk like a USB harddrive next time make a backup first.
That's what I do.
Gerard.

Make a back-up of what? Your system files? Which folders, exactly?
_________________
I suck at signatures.
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Mon May 04, 2009 12:02 am    Post subject: Reply with quote

Your "/" directory.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Tue May 05, 2009 3:41 am    Post subject: Reply with quote

Oh, right. Wish I had done that before I killed my system. Ah well, it's back up and running now, so I'll remember that for the next time I want to perform some potentially system busting maintenance.
_________________
I suck at signatures.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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