Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changed box, I need serious help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Mon Mar 14, 2005 1:50 pm    Post subject: Changed box, I need serious help! Reply with quote

Hi,

My other computer is malfunctioning, and would take a few months until I receive replacement parts.

But I cannot live without a fully functional computer!!!

I am currently stuck in Knoppix Live-CD now. Because my Gentoo would not work properly in this computer.

I cannot get it to start X, or even ping.

My other computer's specs are:

AMD Athlon XP 2000+
ECS K7S7AG MOBO

And this computer's specs are:
AMD Duron 1.6 GHz
MSI KM4M-L

I plan to keep Gentoo on this computer. What do I have to do to here to make it all work?

*I am a newbie! Go easy on me, please!*
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Mon Mar 14, 2005 2:40 pm    Post subject: Reply with quote

Is there room on the computer you have now, to put your other hard drive?

Like, put your Gentoo drive from the broken box, into the working box. Then you could set up dual boot, or something.

Give us some more details on what's wrong...
HTH
_________________
Get Serious - Get JAWA CZ
Back to top
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Mon Mar 14, 2005 3:59 pm    Post subject: Reply with quote

I believe the kernel treats Athlon XP & Duron as the same, but maybe modern GCC doesn't through your CFLAGS. You might need to recompile world --deep with CFLAGS set to -march=k7 or some such.

Also ensure your kernel options are set correctly for the motherboard chipset on the second computer.

You can recompile your kernel and your packages from the LiveCD. Depending on how much might have gone wrong you might need to extract a Stage3 over your old system (be sure to backup /etc first).

HTH
_________________
Play The Hitchhiker's Guide to the Galaxy!
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Mon Mar 14, 2005 4:27 pm    Post subject: Reply with quote

Again, I am *newbie* My installation was done by someone else over SSH. But this time, it is up to myself since I cannot get the connection working in Gentoo.

Quote:
maybe modern GCC doesn't through your CFLAGS. You might need to recompile world --deep with CFLAGS set to -march=k7 or some such.

How do I do this?

Quote:
You can recompile your kernel and your packages from the LiveCD. Depending on how much might have gone wrong you might need to extract a Stage3 over your old system (be sure to backup /etc first).

This means there is a chance my personal stuff (not the distro stuff) might be erased?
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Mon Mar 14, 2005 6:33 pm    Post subject: Reply with quote

You can see your CFLAGS setting in /etc/make.conf: cat /etc/make.conf

If you extract the Stage3 over your system to get your compiler and Portage back in working order you may overwrite your configs (stored in the /etc directory) so that is why I suggested backing it up. You can back it up using tar, something like tar cvf /mnt/gentoo/root/etc_backup.tar /mnt/gentoo/etc from the LiveCD once you've mounted your filesystem.

You can follow the Gentoo Installation Handbook to extract the Stage3.

Once extracted and chrooted onto your existing partition, you can double-check your /etc/make.conf settings (nano -w /etc/make.conf) and then recompile all of your packages (if needed because the CFLAGS were set for "athlon-xp" instead of "k7") with emerge world --emptytree -a. Make sure you uncomment the CXXFLAGS too.

After recompiling you can skip ahead in the guide to unmount and reboot. Something like exit; cd /; umount /mnt/gentoo; shutdown -r now.

J
_________________
Play The Hitchhiker's Guide to the Galaxy!
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Mon Mar 14, 2005 9:20 pm    Post subject: Reply with quote

And how do I mount?
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Mon Mar 14, 2005 9:32 pm    Post subject: Reply with quote

It's in the installation guide. Something like mount /dev/hda3 /mnt/gentoo ... of course hda3 may be different depending on which partition was used as the root partition on your system. You can fdisk -l /dev/hda to see the partitions.
_________________
Play The Hitchhiker's Guide to the Galaxy!
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Mon Mar 14, 2005 10:39 pm    Post subject: Reply with quote

Okay, this is so awkward, I am replying with the text-browser!!!

The emerge world stopped to due an error:
Code:
>>> md5 src_uri ;-) patch-2.5.9.tar.gz
>>> Unpacking source...
>>> Unpacking patch-2.5.9.tar.gz to /var/tmp/portage/patch-2.5.9.tar.gz/work
>>> Source unpacked...
configure: WARNING: If you wanted to set the --build type, don't use --host.
     If a cross compiler is detected then cross compiler mode will be used.
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See 'config.log' for more details.
make: *** No targets specified and no makefile found.  Stop.

!!! ERROR: sys-devel/patch-2.5.9 failed.
!!! Function src_compile Line 38, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

Please help!

If I quit now, will my installation of stage3 reset?

Text-browser is terrible!
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Mon Mar 14, 2005 11:01 pm    Post subject: Reply with quote

Back in Knoppix. Here's the additional update:

1. My login/password doesn't work anymore. Both general account and su.

2. I got this message during boot:
Code:
 Fsck could not correct all errors, manual repair needed (!!)

_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Mon Mar 14, 2005 11:17 pm    Post subject: Reply with quote

Okay, the first error is likely because your CFLAGS and/or CXXFLAGS are set incorrectly.

The part about the filesystem is odd, but you can check it from the LiveCD: e2fsck /dev/hda3 or whichever partition needs checked...
_________________
Play The Hitchhiker's Guide to the Galaxy!
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Tue Mar 15, 2005 12:21 am    Post subject: Reply with quote

Where is the mistake?
Code:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=k7 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Tue Mar 15, 2005 2:24 pm    Post subject: Reply with quote

Okay your CFLAGS seems correct, but just in case you have an older GCC try setting -march=i686 and see if there's a difference. If it still errors, you likely need GCC reinstalled from the Stage3.
_________________
Play The Hitchhiker's Guide to the Galaxy!
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Tue Mar 15, 2005 2:49 pm    Post subject: Reply with quote

I didn't work.

Also, still cannot log in with user/pass.
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Tue Mar 15, 2005 3:06 pm    Post subject: Reply with quote

The Stage3 probably overwrote your /etc/passwd & /etc/shadow files which contain your user accounts and passwords. This is why I recommended you backup /etc. So now you should login with the LiveCD, mount your partition, and restore the saved files like this: cd /; tar xvf /mnt/gentoo/root/etc_backup.tar.

If after you've extracted the Stage3 over your system you still cannot get emerge to compile a package, I'm out of ideas... you might want to try using the LiveCD to back up your data to another disk or partition or getting the data off the system with sftp to another computer, and then reformat and reinstall...

J
_________________
Play The Hitchhiker's Guide to the Galaxy!
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Tue Mar 15, 2005 4:27 pm    Post subject: Reply with quote

I can log in now. But cannot start x or get my network working. Also, there was an error about 'dma' or something.
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Tue Mar 15, 2005 4:29 pm    Post subject: Reply with quote

Okay, now that you're logged in can you remerge all your packages? emerge --emptytree -a world
_________________
Play The Hitchhiker's Guide to the Galaxy!
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Tue Mar 15, 2005 8:24 pm    Post subject: Reply with quote

emerge stopped on the 2nd package. :( How can I fix this?

Code:
>>> emerge (2 of 89) sys-lib/gpm-1.20.1 to /


I got multiple lines of this:

Code:
failed: Temporary failure in name resolution


Last line ending in this:

Code:
!!! download gpm-1.20.1.tar.bz2.  Aborting.


May contain some typos in codes since I am typing from a piece of paper rather than copy-and-paste.
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
gentoo_lan
l33t
l33t


Joined: 08 Sep 2004
Posts: 891
Location: Charles Town, WV

PostPosted: Tue Mar 15, 2005 8:57 pm    Post subject: Reply with quote

Cyberian-ZH wrote:
emerge stopped on the 2nd package. :( How can I fix this?

Code:
>>> emerge (2 of 89) sys-lib/gpm-1.20.1 to /


I got multiple lines of this:

Code:
failed: Temporary failure in name resolution


Last line ending in this:

Code:
!!! download gpm-1.20.1.tar.bz2.  Aborting.


May contain some typos in codes since I am typing from a piece of paper rather than copy-and-paste.


It appears to be a network failure. You might just be able to try again later and see if you can connect and download the source file.
Back to top
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Tue Mar 15, 2005 9:07 pm    Post subject: Reply with quote

Check your DNS setting in /etc/resolv.conf to ensure you can resolve queries for the mirror servers.

One of the first merges you might want to try is mirrorselect and use it (man mirrorselect or mirrorselect -h) to find the fastest Gentoo mirrors from your location.

J
_________________
Play The Hitchhiker's Guide to the Galaxy!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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