HOWTO Install Gentoo Linux: Troubleshooting

From Gentoo Linux Wiki

Jump to: navigation, search


This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Image:Gentoo_tux.png

Base Install

  1. What is Gentoo?
  2. About
  3. Preparation
  4. Partitioning
  5. Configuring
  6. Stage Progression
  7. Kernel
  8. Bootloader
  9. Test
  10. Converting from or to a non-Gentoo distribution
  11. Troubleshooting
  12. Maintaining

Configuration

Base Extras

Server

Desktop

Other Articles

edit

Contents

[edit] Troubleshooting

The first step may be, in fact, to take a look at the official Gentoo Linux Frequently Asked Questions.

[edit] Error Messages During Boot Process

Did you:

  • mount /proc?
  • mount /dev?
  • link localtime?
    • rm /etc/localtime; ln -s /usr/share/zoneinfo/${TIMEZONE} /etc/localtime
    • failure to do this causes `date` to fail as well as many php scripts - anything that converts from unix-time to real time
  • figure out how to make volume group devices appear?
    • vgchange -a n; vgchange -a y; vgchange -a n; vgchange -a y
    • vgexport -a vg0 (export all the volumes)
    • vgimport -a vg0 (import all the volumes into the existing system)

[edit] Compile Issues

First rebuilding with simpler {C,CXX,LD}FLAGS:

CFLAGS="-O2 -pipe -march=i686" \
CXXFLAGS="${CFLAGS}" \
LDFLAGS=" " emerge ${PACKAGE}
  1. If that works, then troubleshoot by readding all of your CFLAGS one-by-one, then LDFLAGS. That's how I came up with the CFLAGS I'm using so I believe that they should work flawlessly so far as you change the -mtune option to match your arch.
  2. Check http://bugs.gentoo.org for a similar bug, file one if necessary.

[edit] DNS Problems

  • DNS name resolution works for root only. /etc/resolv.conf has the wrong permissions; chmod it as follows:
Code: Changing permissions on /etc/resolv.conf
chmod 0644 /etc/resolv.conf
Personal tools