Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
Hello, I am new to linux...i tried to compile the kernel version 2.6.22.14....i compiled all the things and i installed all the modules...after typing "make install" i am getting this ...
  1. #1
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308

    problem in kernel compilation

    Hello,
    I am new to linux...i tried to compile the kernel version 2.6.22.14....i compiled all the things and i installed all the modules...after typing "make install" i am getting this following things...

    root@sharief-desktop:/usr/src/linux-2.6.22.14# make install
    sh /usr/src/linux-2.6.22.14/arch/i386/boot/install.sh 2.6.22.14 arch/i386/boot/bzImage System.map "/boot"
    In order to use the new kernel image you have just installed, you
    will need to reboot the machine. First, however, you will need to
    either make a bootable floppy diskette, re-run LILO, or have GRUB
    installed.

    Checking for ELILO...No

    GRUB is installed. To automatically switch to new kernels, point your
    default entry in menu.lst to /boot/vmlinuz-2.6.22.14
    root@sharief-desktop:/usr/src/linux-2.6.22.14# cd /boot
    root@sharief-desktop:/boot# ls
    abi-2.6.22-14-generic grub System.map vmlinuz-2.6.22.14
    config initrd.img-2.6.22-14-generic System.map-2.6.22.14 vmlinuz-2.6.22-14-generic
    config-2.6.22.14 initrd.img-2.6.22-14-generic.bak System.map-2.6.22-14-generic
    config-2.6.22-14-generic memtest86+.bin vmlinuz



    i dont what to do next...how to change the boot file....please help me....

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Hello,

    attention! making mistakes in the file menu.lst can make your system unable to boot.

    By now, you should already be able to select the new kernel manually in GRUB when the system starts. Make sure your new kernel boots fine before you choose it as default.

    Later, you can modifiy the file menu.lst so that it selects the new kernel as default. This way, you will not need to select it manually on every boot.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    no...yet i didnt boot the new kernel....just i am trying to boot...i dont know how to configure the grub to boot from new kernel...please help me....that is my problem...

  4. #4
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    i am not having any lilo.conf and grub.conf in my system........i dont know what to do...

  5. #5
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Type "cat /boot/grub/menu.lst" and put the output here for us to read.
    And give us the output of "uname -a" too.
    Debian GNU/Linux -- You know you want it.

  6. #6
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    This is the content of the /boot/grub/menu.lst


    title Ubuntu 7.10, kernel 2.6.22-14-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-generic
    quiet

    title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce ro single
    initrd /boot/initrd.img-2.6.22-14-generic

    title Ubuntu 7.10, memtest86+
    root (hd0,0)
    kernel /boot/memtest86+.bin
    quiet

    ### END DEBIAN AUTOMAGIC KERNELS LIST


    when i type "uname -a" i get the below things

    Linux sharief-desktop 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux
    Thanks in advance...

  7. #7
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    You can try to add as a third paragraph

    Code:
    title My Custom Kernel
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14
    root=UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce ro quiet splash
    However, this kernel uses no initial ramdisk. This means that you will have to built in all those drivers that the kernel needs to access the modules on the hard disk. (static, not as modules)
    Especially the harddisk drivers and the driver for the filesystem.

    Otherwise, the kernel does not know how to read the other modules and will fail to boot.
    Debian GNU/Linux -- You know you want it.

  8. #8
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    no i am getting that new kernel..it is not showing while i reboot the system..just its going in old kernel only...i posed that code as third paragraph as follows..

    title Ubuntu 7.10, kernel 2.6.22-14-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-generic
    quiet

    title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce ro single
    initrd /boot/initrd.img-2.6.22-14-generic

    title My Custom Kernel
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22.14 root=UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce ro quiet splash


    title Ubuntu 7.10, memtest86+
    root (hd0,0)
    kernel /boot/memtest86+.bin
    quiet
    yet i am not getting the new kernel....please help me
    Thanks in advance...

  9. #9
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    yes...i edited in the /boot/grub/menu.lst.....
    then i got the newly compiled kernel in the menu while i reboot the system....but when i enter into that i am getting this following error........

    starting up.....
    uncompressing linux...ok,booting the kernel
    [ 53.987716]kernel panic - not syncing: VFS : unable to mount root fs on unknown -block(0.0)


    wher will be the root fs...how to mount that....
    Thanks in advance...

  10. #10
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Try this line:
    kernel /boot/vmlinuz-2.6.22.14 root=/dev/hda1 ro
    Debian GNU/Linux -- You know you want it.

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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