Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grub wont boot after a kernel upgrade
#1

Hi all,

 

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:
Grub loading Stage1.5 Grub loading, please wait...




 

Then grub hangs up indefinetely.

 

So, i booted from a gentoo liveCD, setted up my network and sshd and logged into it. After that:

 



Code:
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




 

then chroot to the system

 



Code:
chroot /mnt/gentoo /bin/bash env-update source /etc/profile export PS1="(chroot) $PS1"




 

After that i updated /etc/mtab sinds Grub needs this:

 



Code:
cp /proc/mounts /etc/mtab




 

My partition table:

 



Code:
(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 / #




 

After that i tried reinstalling Grub:

 



Code:
(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:
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> quit




 

I wiped my MBR to make sure that the new info get's installed:

 



Code:
dd if=/dev/zero of=/dev/sda bs=446 count=1




 

But still the same problem.

 



Code:
(chroot) livecd / # grub --version grub (GNU GRUB 0.97)




 



Code:
(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: 0x00000000 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




 

/boot

 



Code:
total 7867 drwxr-xr-x 4 root root 1024 Sep 27 14:46 . drwxr-xr-x 20 root root 4096 Mar 26 2010 .. -rw-r--r-- 1 root root 1444015 Sep 27 14:22 System.map-genkernel-x86-2.6.34-gentoo-r6 drwxr-xr-x 2 root root 1024 Sep 27 14:24 grub -rw-r--r-- 1 root root 3401991 Sep 27 14:22 initramfs-genkernel-x86-2.6.34-gentoo-r6 -rw-r--r-- 1 root root 3154656 Sep 27 14:23 kernel-genkernel-x86-2.6.34-gentoo-r6 drwx------ 2 root root 12288 Sep 27 14:12 lost+found




 

/boot/grub

 



Code:
total 231 drwxr-xr-x 2 root root 1024 Sep 27 14:24 . drwxr-xr-x 4 root root 1024 Sep 27 14:46 .. -rw-r--r-- 1 root root 197 Sep 27 14:18 default -rw-r--r-- 1 root root 45 Sep 27 14:18 device.map -rw-r--r-- 1 root root 8692 Sep 27 14:18 e2fs_stage1_5 -rw-r--r-- 1 root root 7820 Sep 27 14:18 fat_stage1_5 -rw-r--r-- 1 root root 7088 Sep 27 14:18 ffs_stage1_5 -rw-r--r-- 1 root root 271 Sep 27 14:26 grub.conf -rw-r--r-- 1 root root 7088 Sep 27 14:18 iso9660_stage1_5 -rw-r--r-- 1 root root 8676 Sep 27 14:18 jfs_stage1_5 lrwxrwxrwx 1 root root 9 Sep 27 14:20 menu.lst -> grub.conf -rw-r--r-- 1 root root 7292 Sep 27 14:18 minix_stage1_5 -rw-r--r-- 1 root root 9684 Sep 27 14:18 reiserfs_stage1_5 -rw-r--r-- 1 root root 33856 Sep 27 14:24 splash.xpm.gz -rw-r--r-- 1 root root 512 Sep 27 14:18 stage1 -rw-r--r-- 1 root root 107808 Sep 27 14:18 stage2 -rw-r--r-- 1 root root 7344 Sep 27 14:18 ufs2_stage1_5 -rw-r--r-- 1 root root 6692 Sep 27 14:18 vstafs_stage1_5 -rw-r--r-- 1 root root 9524 Sep 27 14:18 xfs_stage1_5




 

grub.conf

 



Code:
default 0 timeout 10 #splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Gentoo Linux 2.6.34-gentoo-r6 root (hd0,0) kernel /boot/kernel-genkernel-x86-2.6.34-gentoo-r6 root=/dev/ram0 init=/linuxrc real_root=/dev/sda3 initrd /boot/initramfs-genkernel-x86-2.6.34-gentoo-r6




 

fstab:

 



Code:
/dev/sda1 /boot ext2 defaults,noatime 1 2 /dev/sda2 none swap swap 0 0 /dev/sda3 / ext3 noatime 0 1 /dev/cdrom /mnt/cdrom auto noauto,user 0 0 /dev/sdb /home/big auto noatime 0 0 shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 proc /proc proc defaults 0 0




 

lspci:

 



Code:
(chroot) livecd / # lspci 00:00.0 Host bridge: Silicon Integrated Systems [siS] 645xx (rev 02) 00:01.0 PCI bridge: Silicon Integrated Systems [siS] Virtual PCI-to-PCI bridge (AGP) 00:02.0 ISA bridge: Silicon Integrated Systems [siS] SiS963 [MuTIOL Media IO] (rev 04) 00:02.1 SMBus: Silicon Integrated Systems [siS] SiS961/2 SMBus Controller 00:02.3 FireWire (IEEE 1394): Silicon Integrated Systems [siS] FireWire Controller 00:02.5 IDE interface: Silicon Integrated Systems [siS] 5513 [iDE] 00:02.7 Multimedia audio controller: Silicon Integrated Systems [siS] AC'97 Sound Controller (rev a0) 00:03.0 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f) 00:03.1 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f) 00:03.2 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f) 00:03.3 USB Controller: Silicon Integrated Systems [siS] USB 2.0 Controller 00:04.0 Ethernet controller: Silicon Integrated Systems [siS] SiS900 PCI Fast Ethernet (rev 91) 00:07.0 RAID bus controller: Silicon Image, Inc. SiI 3512 [sATALink/SATARaid] Serial ATA Controller (rev 01) 00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1)




 

file -s /dev/sd*

 



Code:
livecd ~ # file -s /dev/sd* /dev/sda: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 2: ID=0x82, starthead 0, startsector 80325, 514080 sectors; partition 3: ID=0x83, starthead 0, startsector 594405, 65448810 sectors, code offset 0x48 /dev/sda1: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, 1st sector stage2 0x9041, code offset 0x48 /dev/sda2: Linux/i386 swap file (new style) 1 (4K pages) size 64259 pages /dev/sda3: x86 boot sector, LInux i386 boot LOader /dev/sdb: Linux rev 1.0 ext3 filesystem data (needs journal recovery) (large files) livecd ~ #




 

No idea where to look for anymore :)YOu guys got any idea..? TIA!

 

Grt EzMe

Reply
#2
Can you interrupt the grub boot sequence? Or don't you get as far as the splash screen?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)