Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all, I have a Centos5.0 box running on kernel 2.6.18-8. Well, I need to replace kernel with a newer one. But, when I do compile kernel 2.6.30.5 or 2.6.35, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    12

    Kernel 2.6.30+ compile and boot problem


    Hi all,

    I have a Centos5.0 box running on kernel 2.6.18-8.

    Well, I need to replace kernel with a newer one. But, when I do compile kernel 2.6.30.5 or 2.6.35, I can't boot it. It gives fallowing errors;

    Code:
    mount: could not find file system '/dev/root'
    Setting up other filesystems.
    Setting up new root fs
    setuproot: error mounting /proc: No such file or directory
    setuproot: error mounting /sys: No such file or directory
    Switching to new root and running init.
    unmounting old /dev
    unmounting old /proc
    unmounting old /sys
    switchroot: mount failed: No such file or directory
    Kernel panic - not syncing: Attempted to kill init!
    Pid: 1, comm: init Not tainted 2.6.35 #1
    Call Trace:
     [<c042f754>] ? panic+0x50/0xc1
     [<c0431e21>] ? do_exit+0x5b/0x60a
     [<c04a1c13>] ? fput+0x175/0x19d
     [<c043242a>] ? do_group_exit+0x5a/0x7f
     [<c043245c>] ? sys_exit_group+0xd/0x10
     [<c068a96d>] ? syscall_call+0x7/0xb

    Well, but if I compile 2.6.18.8 kernel and boot via this one. Everything goes just fine? But, how and why?

    I just do this;

    -Open tar ball
    -Enter directory
    -Type "make menuconfig" and use default configure
    -Type "make rpm"
    -Wait for 2 hours
    -type "rpm -ivh ........"
    -Change grub
    -Boot
    Last edited by zgrw; 09-27-2010 at 07:51 AM.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Post the contents of grub.conf file here. Are you using UUID or device names assigned to partition(s)?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    12
    well I am using labels; Here is my menu.lst file (legacy grub)

    Code:
    default=0
    timeout=3
    splashimage=(hd0,0)/boot/grub/splash.xpm.gz
    hiddenmenu
    serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1
    terminal --timeout=3 serial console
    
    title CentOs (2.6.18.8)
    	root (hd0,0)
    	kernel /boot/vmlinuz-2.6.18.8 ro root=LABEL=/ console=ttyS0,19200n8 console=tty0
    	initrd /boot/initrd-2.6.18.8.img
    
    title CentOs (2.6.18-999.lbr5.std.31)
    	root (hd0,0)
    	kernel /boot/vmlinuz-2.6.18-999.lbr5.std.31 ro root=LABEL=/ console=ttyS0,19200n8 console=tty0
    	initrd /boot/initrd-2.6.18-999.lbr5.std.31.img
    This works great but 2.6.30.5 doesn't

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jan 2010
    Posts
    12
    I found a bug report on redhat.com

    bugzilla.redhat.com/show_bug.cgi?id=203696

    Now, I am compiling 2.6.27.54 just to try. When it finishes, I will try to boot with that one. I will also publish results here and also if it fails I will post the contents of my initrd image.

  6. #5
    Just Joined!
    Join Date
    Jan 2010
    Posts
    12
    2.6.27.54 is also no good; here is initrd;


    Code:
    [root@centos boot]# gzip -dc initrd-2.6.27.54.img | cpio -i --list
    dev
    dev/tty3
    dev/systty
    dev/tty9
    dev/tty1
    dev/console
    dev/tty8
    dev/tty
    dev/rtc
    dev/ram
    dev/tty12
    dev/mapper
    dev/tty10
    dev/ram0
    dev/tty0
    dev/tty7
    dev/ttyS3
    dev/tty11
    dev/ttyS2
    dev/ptmx
    dev/zero
    dev/tty4
    dev/ttyS0
    dev/ram1
    dev/tty2
    dev/null
    dev/tty6
    dev/ttyS1
    dev/tty5
    etc
    init
    sbin
    lib
    lib/jbd.ko
    lib/ehci-hcd.ko
    lib/ohci-hcd.ko
    lib/uhci-hcd.ko
    lib/sd_mod.ko
    lib/usb-storage.ko
    lib/ext3.ko
    lib/firmware
    lib/scsi_mod.ko
    bin
    bin/kpartx
    bin/nash
    bin/dmraid
    bin/modprobe
    bin/insmod
    proc
    sysroot
    sys
    10671 blocks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •