Results 1 to 5 of 5

Thread: Compiling new Kernel

  1. #1

    Compiling new Kernel

    Hi! Just for fun (and only for fun) I am trying to compile my first ever Linux kernel on my RH 7.2 machine. I'm using the 2.4.18 kernel, and everything went smoothly...I did make mrproper, make menuconfig, etc, etc. However, I am having some trouble near the end. The very last step is to install the new kernel with "make install". However, I think this assumed you are using lilo, because it gave me an error that I didn't have Lilo...which I don't - I'm currently using GRUB. Besides going back to LILO, is there a way around this? And because of such an error, it says "Kernel Panic: VFS: Unable to mount root fs on 3:02" when I try to boot from this new kernel. I'm pretty sure I did everything else correctly including using mkinitrd to make the new image file and altering my grub.conf file. Thanks. (I'm still a newbie at this. )

  2. #2

    Re: Compiling new Kernel

    make install assumes you are using lilo. What you probably want to do is put the kernel into /boot as vmlinuz-2.4.18 and edit your grub config acordingly. Just make sure you followed theses steps duiring the creation of your kernel:

    make mrproper
    make some-config-type
    make bzImage
    make modules
    make modules_install

    cp pathto/arch/bzImage /boot/vmlinuz-2.4.18

  3. #3
    Guest

    Re: Compiling new Kernel

    make menuconfig && make clean && make dep && make bzlilo && make modules && make modules_install && reboot

  4. #4

    Re: Compiling new Kernel

    Could I also just get rid of my grub.conf file and start my own lilo.conf file in my /etc directory? That way make install should work without a hitch.

  5. #5
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re: Compiling new Kernel

    That would work. See if there is a /etc/lilo.conf file and if it has any data for you to start with. Otherwise you are going to have to make one by hand (IIRC -- linuxconf isnt in RH7.2, so a crummy GUI interface isnt there)

    I have been using grub and haven't had any issues thus far.

Similar Threads

  1. Kernel compiling
    By peter in forum Tutorials
    Replies: 0
    Last Post: 11-24-2008, 01:16 AM
  2. Kernel compiling
    By Sheriff in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 12-07-2003, 02:23 PM
  3. Compiling Kernel under RH 8
    By trickster in forum Linux - General Topics
    Replies: 8
    Last Post: 01-04-2003, 03:20 PM
  4. Compiling a Kernel? How to?
    By tellurye in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 06-13-2002, 07:10 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
  •