I've got a weird problem with my gentooserver after upgrading my kernel with genkernel. For some reason it wont boot anymore. When i try to boot it says:
Code: Select all
Grub loading Stage1.5
Grub loading, please wait...
So, i booted from a gentoo liveCD, setted up my network and sshd and logged into it. After that:
Code: Select all
swapon /dev/sda2
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
Code: Select all
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
Code: Select all
cp /proc/mounts /etc/mtab
Code: Select all
(chroot) livecd / # fdisk -l
Disk /dev/sda: 33.8 GB, 33820286976 bytes
255 heads, 63 sectors/track, 4111 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x277b277a
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5 40131 83 Linux
/dev/sda2 6 37 257040 82 Linux swap / Solaris
/dev/sda3 38 4111 32724405 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
(chroot) livecd / #
Code: Select all
(chroot) livecd grub # grub-install /dev/sda
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
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'.
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
(chroot) livecd grub #
(/boot is on sda1)
Code: Select all
grub
grub> root (hd0,0)
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)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
grub> quitmenu.lst:
Code: Select all
default 0
timeout 15
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.34-gentoo-r6
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r6 root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.34-gentoo-r6
ln -s menu.lst grub.conf
and rebooted but still the same problem.
I also used a clean CFLAG and recompiled Grub with:
Code: Select all
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" emerge grubAfter that i ofc installed grub again with:
Code: Select all
grub-install --no-floppy /dev/sdaHere is the content of my /boot:
Code: Select all
(chroot) livecd / # ls -l /boot
total 31482
-rw-r--r-- 1 root root 0 Sep 22 14:58 Regenerating
-rw-r--r-- 1 root root 1272275 Jul 12 2009 System.map-2.6.29-gentoo-r5
-rw-r--r-- 1 root root 1272275 Jul 12 2009 System.map-genkernel-x86-2.6.29-gentoo-r5
-rw-r--r-- 1 root root 1354903 Feb 28 2010 System.map-genkernel-x86-2.6.31-gentoo-r10
-rw-r--r-- 1 root root 1444884 Sep 22 18:00 System.map-genkernel-x86-2.6.34-gentoo-r6
lrwxrwxrwx 1 root root 1 May 23 2007 boot -> .
-rw-r--r-- 1 root root 2715888 Jul 11 2009 bzImage-2.6.29-gentoo-r5
-rw-r--r-- 1 root root 91255 Jul 12 2009 config-2.6.29-gentoo-r5
drwxr-xr-x 2 root root 1024 Sep 23 12:39 grub
drwxr-xr-x 2 root root 1024 Aug 19 14:32 grub.old
-rw-r--r-- 1 root root 3209774 Jul 12 2009 initramfs-genkernel-x86-2.6.29-gentoo-r5
-rw-r--r-- 1 root root 3189625 Feb 28 2010 initramfs-genkernel-x86-2.6.31-gentoo-r10
-rw-r--r-- 1 root root 3415722 Sep 22 18:51 initramfs-genkernel-x86-2.6.34-gentoo-r6
-rw-r--r-- 1 root root 2715888 Jul 12 2009 kernel-2.9.29-gentoo-r5
-rw-r--r-- 1 root root 2715888 Jul 12 2009 kernel-genkernel-x86-2.6.29-gentoo-r5
-rw-r--r-- 1 root root 2799456 Feb 28 2010 kernel-genkernel-x86-2.6.31-gentoo-r10
-rw-r--r-- 1 root root 3155008 Sep 22 18:00 kernel-genkernel-x86-2.6.34-gentoo-r6
drwx------ 2 root root 12288 May 23 2007 lost+found
-rw-r--r-- 1 root root 2715888 Jul 12 2009 vmlinuz-2.6.29-gentoo-r5
I got nu more clue's where to look for next. Anybody willing to help?
Thanks in advance!
Grtz EzMe




