Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need to reformat to reinstall diff stage tarball??
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
fwempa
Apprentice
Apprentice


Joined: 09 Oct 2005
Posts: 150

PostPosted: Sun Oct 23, 2005 3:51 pm    Post subject: Need to reformat to reinstall diff stage tarball?? Reply with quote

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
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sun Oct 23, 2005 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sun Oct 23, 2005 4:17 pm    Post subject: Re: Need to reformat to reinstall diff stage tarball?? Reply with quote

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.
Code:
# emerge -e world
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sun Oct 23, 2005 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sun Oct 23, 2005 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sun Oct 23, 2005 4:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sun Oct 23, 2005 4:41 pm    Post subject: Reply with quote

No, but I prefer not to let scripts build the toolchain and such for me.
Back to top
View user's profile Send private message
fwempa
Apprentice
Apprentice


Joined: 09 Oct 2005
Posts: 150

PostPosted: Sun Oct 23, 2005 5:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sun Oct 23, 2005 5:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sun Oct 23, 2005 7:38 pm    Post subject: Reply with quote

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.

Code:
gcc-config 1
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