Results 1 to 8 of 8

Thread: boot problems after compiling kernel 2.6.6

  1. #1

    boot problems after compiling kernel 2.6.6

    hi all.

    i'm trying to run debian with kernel 2.6.6.
    i installed debian with the sarge iso and downloaded the kernel-source-2.6.6 afterwards. i ran through the menuconf and checked support for my hardware configuration. everything seemed to go okay, but when i rebooted i got:

    VFS: cannot open root device "hda1" or unknown-block(0,0)
    please append a correct "root=" boot option
    kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)

    any help would be very much appreciated!
    oh my hardware specs are:
    asus k8v se
    AMD Athlon 64 3400+
    1024 mb samsung ram.
    Nvidia GeForce fx5600
    IBM 60 gb hd

    if i forgot anything or if more nfo is required please lemme know. I'm a half-noob 2 linux so please answer in a not too much technical way. Thanks a lot.

    Buller

  2. #2

    Re:boot problems after compiling kernel 2.6.6

    All the problems with your VIA Technologies are SATA problems, as i've done some good research. I'll check out some more sites.

    P.S: I was helping Buller on IRC and i couldn't get any more info, so I suggested he try our Forums.

  3. #3

    Re:boot problems after compiling kernel 2.6.6

    It looks as if you did not specify what the root partition is in your boot loader configurations. If you are running LILO, you need something like root = /dev/hd<letter><number> below the image = /path/to/kernel_image. As for GRUB, check this: link

    P.S. Check out the following as well: http://www.linuxquestions.org/questi...hreadid=144417

  4. #4

    Re:boot problems after compiling kernel 2.6.6

    hello,
    are you using GRUB or LILO? I am guessing that there is an issue withthe mapping - for GRUB you need to edit /boot/grub/grub/conf and /boot/grub/device.map - here are mine as examples:

    grub.conf
    Code:
    # grub.conf generated by anaconda
    #kernel /boot/vmlinuz-2.6.5-1.358 ro root=/dev/hdc2 rhgb quiet
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You do not have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /, eg.
    #          root (hd1,1)
    #          kernel /boot/vmlinuz-version ro root=/dev/hdc2
    #          initrd /boot/initrd-version.img
    #boot=/dev/hda
    default=1
    timeout=10
    splashimage=(hd1,1)/boot/grub/splash.xpm.gz
    title Fedora Core (2.6.5-1.358)
            root (hd1,1)
            kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/1 rhgb quiet PCI=noacpi 
    noapic nolapic
            initrd /boot/initrd-2.6.5-1.358.img
    
    title Kernel 2.6.6
            root (hd1,1)
            kernel /boot/vmlinuz-2.6.6 ro root=/dev/hdc2 
            initrd /boot/initrd-2.6.6.img
    
    title Kernel 2.6.7
            root (hd1,1)
            kernel /boot/vmlinuz-2.6.7 ro root=/dev/hdc2 
            initrd /boot/initrd-2.6.7.img
    
    title Linux 2.4.22
            root (hd2,0)
            kernel /boot/vmlinuz-2.4.22 ro root=/dev/hde1 idebus=ata66 hdh=ide-scsi
            initrd /boot/initrd-2.4.22.img
    Code:
    [root@bugs ~]cat /boot/grub/device.map 
    # this device map was generated by anaconda
    (fd0)     /dev/fd0
    (hd0)     /dev/hda
    (hd1)     /dev/hdc
    (hd2)     /dev/hde
    [root@bugs ~]
    if you are not using grub please let us know.

  5. #5

    Re:boot problems after compiling kernel 2.6.6

    Hi guys thanks 4 your kind help. Yes i am using Grub. I'm looking in to what you both mentioned, i will be back later and let you know how it all went. once again, your help is very much appreciated! Thanks!

    Buller

  6. #6

    Re:boot problems after compiling kernel 2.6.6

    I downloaded the knoppix conf for the 2.6 kernel and now it all works fine... but it's a shame it loads many things i don't even need. i guess i screwed up when i compiled the kernel my self... sorry for being noobish guys thanks a lot for your help, u have all been great!

    cheers Buller

  7. #7

    Re:boot problems after compiling kernel 2.6.6

    [quote author=Buller link=board=1;threadid=9571;start=0#msg87871 date=1092340159]
    I downloaded the knoppix conf for the 2.6 kernel and now it all works fine... but it's a shame it loads many things i don't even need. i guess i screwed up when i compiled the kernel my self... sorry for being noobish guys thanks a lot for your help, u have all been great!

    cheers Buller
    [/quote]

    Glad you got it working. In case you're wondering what was wrong, you can always look at the Knoppix 2.6 kernel's config and possibly compare with your kernel config and next time, you won't need a Knoppix Kernel.


  8. #8

    Re:boot problems after compiling kernel 2.6.6

    Thats a good idea! i might do that tomorrow. and of course let you guys know where i screwed up. hehe

    cheers

Similar Threads

  1. Kernel 2.6 Compiling PET
    By pbharris in forum Linux - General Topics
    Replies: 5
    Last Post: 07-08-2004, 02:09 PM
  2. Compiling Kernel under RH 8
    By trickster in forum Linux - General Topics
    Replies: 8
    Last Post: 01-04-2003, 03:20 PM
  3. Kernel Compiling
    By stryder144 in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 07-09-2002, 02:51 AM
  4. Compiling new Kernel
    By imported_LinuxGuy in forum Linux - General Topics
    Replies: 4
    Last Post: 03-30-2002, 02:22 PM
  5. Kernel compiling is POSSIBLE!
    By Sekihmet in forum Linux Distros
    Replies: 12
    Last Post: 09-12-2001, 12:43 AM

Bookmarks

Posting Permissions

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