View previous topic :: View next topic |
Author |
Message |
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Tue Apr 28, 2009 1:14 pm Post subject: Installing a Stage 3 tarball onto an existing system? |
|
|
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 |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Tue Apr 28, 2009 1:19 pm Post subject: |
|
|
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 |
|
|
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Tue Apr 28, 2009 1:22 pm Post subject: |
|
|
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 |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Tue Apr 28, 2009 2:37 pm Post subject: |
|
|
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 |
|
|
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Tue Apr 28, 2009 2:54 pm Post subject: |
|
|
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 |
|
|
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Tue Apr 28, 2009 4:16 pm Post subject: |
|
|
If this page is correct then that is indeed what the -k switch does:
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 |
|
|
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Fri May 01, 2009 1:14 pm Post subject: |
|
|
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 |
|
|
Clad in Sky l33t
Joined: 04 May 2007 Posts: 888 Location: Germany
|
Posted: Sat May 02, 2009 8:02 am Post subject: |
|
|
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 |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Sat May 02, 2009 8:57 am Post subject: |
|
|
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 |
|
|
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Sun May 03, 2009 7:57 pm Post subject: |
|
|
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 |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Mon May 04, 2009 12:02 am Post subject: |
|
|
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 |
|
|
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Tue May 05, 2009 3:41 am Post subject: |
|
|
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 |
|
|
|