View previous topic :: View next topic |
Author |
Message |
fwempa Apprentice
Joined: 09 Oct 2005 Posts: 150
|
Posted: Sun Oct 23, 2005 3:51 pm Post subject: Need to reformat to reinstall diff stage tarball?? |
|
|
I installed Stage II tarball a while back. I have been learning and exploring Gentoo and am loving it. Now, though, I would like to better tweak my setup. A stage I tarball is in order.
Question:
Do i need to reformat the drive to reinstall from scratch with a different stage?
Since i used stage II, are there extra or different files that wont be needed or used in a stage I that will be left cluttering the drive? If they are there can i just delete them (if i could identify them). Please advise me as to which method would be best. Can i simply start over again using the same partitions and the new tarball or should i reformat?
Thanks |
|
Back to top |
|
|
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Sun Oct 23, 2005 4:15 pm Post subject: |
|
|
You don't need a new stage tarball, you just need to recompile everything properly. Set up your CFLAGS, USE flags, etc, and then recompile the toolchain and then the world. There's a script around.. I'll go look for it. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Oct 23, 2005 4:17 pm Post subject: Re: Need to reformat to reinstall diff stage tarball?? |
|
|
fwempa wrote: | Question:
Do i need to reformat the drive to reinstall from scratch with a different stage? |
Yes.
The stage tarball is just a seed used to start building your Gentoo system. Once you have Gentoo installed, the seed is no longer needed.
If you just want to recompile every package on your system, you can do this.
|
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sun Oct 23, 2005 4:20 pm Post subject: |
|
|
Monkeh wrote: | You don't need a new stage tarball, you just need to recompile everything properly. Set up your CFLAGS, USE flags, etc, and then recompile the toolchain and then the world. There's a script around.. I'll go look for it. |
I was just answering the same thing when I saw your post, so my contribution is this link
https://forums.gentoo.org/viewtopic-t-282474.html
I've successfully used two times it to upgrade to gcc 3.4.4, one from a working system and the second during installation. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Sun Oct 23, 2005 4:22 pm Post subject: |
|
|
dgaffuri wrote: | Monkeh wrote: | You don't need a new stage tarball, you just need to recompile everything properly. Set up your CFLAGS, USE flags, etc, and then recompile the toolchain and then the world. There's a script around.. I'll go look for it. |
I was just answering the same thing when I saw your post, so my contribution is this link
https://forums.gentoo.org/viewtopic-t-282474.html
I've successfully used two times it to upgrade to gcc 3.4.4, one from a working system and the second during installation. |
Exactly. I just went poking around to find it. I've never used it (I like to do things by hand), but it should speed the process up considerably for someone new to it. |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sun Oct 23, 2005 4:37 pm Post subject: |
|
|
Monkeh wrote: | I've never used it (I like to do things by hand), but it should speed the process up considerably for someone new to it. |
Just curious, saying "by hand" you mean that you emerge the whole system package by package? _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Sun Oct 23, 2005 4:41 pm Post subject: |
|
|
No, but I prefer not to let scripts build the toolchain and such for me. |
|
Back to top |
|
|
fwempa Apprentice
Joined: 09 Oct 2005 Posts: 150
|
Posted: Sun Oct 23, 2005 5:45 pm Post subject: |
|
|
Ah yes, BUT...
I noticed that the CHOST flag should NOT be changed unless starting with a Stage I. My CHOST was i386... want to change that to reflect my K6-2 processor. Before actually reading enuf (my bad), i changed CHOST and did a recompile as in:
Code: | emerge binutils gcc linux-headers glibc |
I then did: Code: |
emerge -e system && emerge -e system && emerge -e world |
All started ok but then i got error: Code: |
gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
make: *** [xditview.o] Error 1
ERROR: sys-apps/groff-1.19.1-r2 failed
Function src_compile, line 91 exitcode 2 |
So i figured i had to restart from scratch.
Last night i restarted the install from the beginning, but did not reformat anything. Am up to the point where i have just downloaded the stage I tarball and latest portage snapshot. Am still working in the LIVE CD root, and am to
Step 6: Installing the base system
Am i committed to this reinstal or can i just reboot without the CD? Is the above error fatal and do i now need to reinstall due to a corrupted TC????
So many questions, but loving the trip?
Last edited by fwempa on Sun Oct 23, 2005 6:06 pm; edited 1 time in total |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sun Oct 23, 2005 5:54 pm Post subject: |
|
|
Bad idea. BTW as far as I know there's no need to change CHOST at all. You may want to look at this thread https://forums.gentoo.org/viewtopic-t-321340.html, read it all. And you may still reinstall from scratch. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Sun Oct 23, 2005 7:38 pm Post subject: |
|
|
Run gcc-config -l. It should output something like this: Code: | [1] i586-pc-linux-gnu-3.3.5-20050130 *
[2] i586-pc-linux-gnu-3.3.5-20050130-hardened
[3] i586-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i586-pc-linux-gnu-3.3.5-20050130-hardenednopiessp
[5] i586-pc-linux-gnu-3.3.5-20050130-hardenednossp
|
Then just run it with the correct profile number, in my case, 1.
|
|
Back to top |
|
|
|