



heres an ss of itjmbsvicetto wrote:What command did you use to copy the kernel to /boot? Did you run make install? Did you use cp? What file did you copy?
If you can't answer the above, boot the live-cd, mount the partitions and post the output of ls -l /mnt/gentoo/boot here. It would also be helpful to see the output of ls -l /mnt/gentoo/usr/src/linux/arch/<arch>/boot.
Code: Select all
zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6
Code: Select all
kernel /boot/initramfs-genkernel-x86-2.6.20-gentoo-r8Code: Select all
kernel (hd0,2)/usr/src/linux/arch/i386/boot/bzImage
AHH ok thanks!NeddySeagoon wrote:gehzumteufel,
Everything looks ok. Boot normally but press e when you get to the grub menu. Use grubs editor to changetoCode: Select all
kernel /boot/initramfs-genkernel-x86-2.6.20-gentoo-r8leave the rest of the kernel line unchanged.Code: Select all
kernel (hd0,2)/usr/src/linux/arch/i386/boot/bzImage
The attempts to boot from the kernel in the kernel build location.
Genkernel has installed your kernel for you but Grub claims its in the wrong format

For starters, you can have a single boot partition, so you should decide if you want to boot from Gentoo's partition or from PcLinux's.ronvenema wrote:Hi all, I just finished installing 2007 from the Live CD using the command line installer. Everything seemed to go swimmingly until I rebooted. Grub wasn't able to boot the OS. Here is how my Operating System harddrive is set up:
Here is the menu.lst that grub created:Since I boot multiple systems I am using the PcLinux grub booter and here is the contents of menu.lst:Code: Select all
title=Gentoo Linux root (hd3,6) kernel /boot/kernel-genkernel-x86-2.6.20-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 doscsi initrd /boot/initramfs-genkernel-x86-2.6.20-gentoo-r8It seems to boot ok but stops at the following error message:Code: Select all
title=Gentoo kernel (hd0,6)/boot/kernel-genkernel-x86-2.6.20-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 doscsi initrd (hd0,6)/boot/initramfs-genkernel-x86-2.6.20-gentoo-r8Any help would be appreciated. TIACode: Select all
Determining root device Block device /dev/sda7 is not a valid root device The root block device is unspecified or not detected
like in the menu.lst generated by the gentoo install. (There it is (hd3,6)... typing error?).title=Gentoo
root (hd0,6)
kernel (hd0,6)/boot/kernel-genkernel-x86-2.6.20-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 doscsi
initrd (hd0,6)/boot/initramfs-genkernel-x86-2.6.20-gentoo-r8

gsoe,gsoe wrote:You are missing a "root" statement in your menu.lst. You needlike in the menu.lst generated by the gentoo install. (There it is (hd3,6)... typing error?).title=Gentoo
root (hd0,6)
kernel (hd0,6)/boot/kernel-genkernel-x86-2.6.20-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 doscsi
initrd (hd0,6)/boot/initramfs-genkernel-x86-2.6.20-gentoo-r8
Code: Select all
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.20-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 doscsi
initrd /boot/initramfs-genkernel-x86-2.6.20-gentoo-r8
appears and doesn't disappear"GRUB loading stage 1.5."
now the special part of my problem: I have a Bios option to change the "Sata Mode" from "RAID" to "IDE". Probably a simulation of an IDE-HDD instad of a SATA-HDD.# Welcher Eintrag standardmäßig gebootet werden soll. 0 ist der Erste, 1 ist der Zweite usw.
default 0
# Wie viele Sekunden gewartet werden soll, bevor der Standardeintrag gebootet wird.
timeout 5
# Eine nettes, fettes Hintergrundbild um die ganze Sache ein wenig zu würzen
# Auskommentieren, wenn Sie keine Grafikkarte installiert haben.
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.20-r8
# Partition in der das Kernel-Image (oder das Betriebssystem) vorhanden ist
root (hd0,0)
kernel /boot/kernel-2.6.20-gentoo-r8 root=/dev/sda3
title=Gentoo Linux 2.6.20-r8 (Rescue)
# Partition in der das Kernel-Image (oder das Betriebssystem) vorhanden ist
root (hd0,0)
kernel /boot/kernel-2.6.20-gentoo-r8 root=/dev/sda3 init=/bin/bb
# Die nächsten vier Zeilen werden nur benötigt wenn Sie einen Dualboot mit einem Windows System einrichten wollen.
# Hier in diesem Fall liegt Windows auf /dev/hda6.
#title=Windows XP
#rootnoverify (hd0,5)
#makeactive
#chainloader +1
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 defaults,noatime 1 2
/dev/sda3 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/dvd /mnt/dvd auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
proc /proc proc nodec,nosuid,noexec 0 0

Code: Select all
grub -no-floppyCode: Select all
emerge --infoCode: Select all
less /proc/cpuinfo
Code: Select all
htpc ~ # emerge --info
Portage 2.1.2.7 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 VIA Esther processor 1200MHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 30 May 2007 11:50:01 +0000
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.61
sys-devel/automake: 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -mmmx -msse -msse2 -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe -mmmx -msse -msse2 -msse3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de http://gentoo.mneisen.org/ ftp://ftp.mneisen.org/gentoo ftp://ftp.unina.it/pub/linux/distributions/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa ao apache2 apm audiofile berkdb bindist bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups curl curlwrappers dbus dri dts dv dvd dvdr dvdread emboss encode esd exif fam fastcgi ffmpeg flac fortran ftp gd gdbm gif hal iconv ieee1394 inifile innodb java javascript jpeg jpeg2k latin1 ldap libcaca libg++ lirc lm_sensors mad mailwrapper matroska mikmod mmx mp3 mpeg mplayer mudflap musepack mysql mysqli nls nocd nptl nptlonly ogg opengl openmp oss pam pcre pdf perl php png python quicktime readline reflection samba sdl session snmp spl sse sse2 ssl svg tcl tcpd tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd vorbis win32codecs wmf x264 x86 xine xml xorg xpm xv xvid zip zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="imon" LIRC_DEVICES="imon_pad2keys" USERLAND="GNU" VIDEO_CARDS="via"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Code: Select all
processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 10
model name : VIA Esther processor 1200MHz
stepping : 9
cpu MHz : 1197.093
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm up pni est tm2 rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en
bogomips : 2398.85
clflush size : 64

Code: Select all
CFLAGS="-O2 -march=i686 -pipe -mmmx -msse -msse2 -msse3 -fomit-frame-pointer" Code: Select all
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm up pni est tm2 rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en 
Code: Select all
livecd ~ # fdisk -l
Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 522 4192933+ 6 FAT16
/dev/sda2 * 523 2610 16771860 83 Linux
/dev/sda3 2611 7297 37648327+ a5 FreeBSD
livecd ~ # mount /dev/sda2 /mnt/gentoo/
livecd ~ # /mnt/gentoo/sbin/grub
grub> find /boot/grub/stage1
(hd0,1)
grub> root (hd0,1)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,1)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
grub> quit
livecd ~ # reboot
doneNeddySeagoon wrote:turn off these CFLAGS, emerge grub, reinstall it to the MBR and try again.
Code: Select all
htpc # grub-install --no-floppy /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda


thx for your answerNeddySeagoon wrote:SecondFirst,
RAID mode in your BIOS may well want you to put two identical drives into a BIOS raid set. You cannot RAID a single drive, well, not usefully, anyway.
The kernel can cope with that but needs help from a third party module called dmraid.
BIOS raid is a BadThing - if you want to know more ask.
Choose IDE mode and tell us what devices you get in in /dev/ for your drive. If its /dev/sd... then the 'IDE-MODE' in your BIOS can be safely used.
You may nor be able to use NCQ, even if its supported by both your SATA controller and the drive.
This feature needs kernel support and that part of the code is not yet fully developed.
Its working on some chip sets.



Code: Select all
livecd ~ # /mnt/gentoo/sbin/grub 
