Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I had a Slackware 12 system and I've recompiled a newer kernel version. After installing it, the system is not booting any more. As I don't want to reinstall ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    2

    system not booting after kernel compilation


    Hi,

    I had a Slackware 12 system and I've recompiled a newer kernel version. After installing it, the system is not booting any more. As I don't want to reinstall everything and lose existing information, I need to know what can be done to restore my system.

    Any help would be highly appreciated.

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Hello and Welcome.
    Did you have a different Kernel working before you compiled your own? You can add the old kernel to grub and use that to boot with.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Quote Originally Posted by "MikeTbob
    You can add the old kernel to grub and use that to boot with.
    Slackware uses lilo, but other than that it's a good point. Did you (PeterMas) not keep the old kernel in your lilo.conf? That would have been the safest choice.

    Anyway, your system should still be rescuable (<=that should be a word). Assuming you have only your new kernel entry in lilo.conf, do this:

    Boot up the Slackware install CD/DVD. At the prompt, mount your root partition. That is probably /dev/hda1 or /dev/sda1
    Code:
    mount /dev/hda1 /mnt
    Now change your root directory (because you where running from the CD/DVD and you want to run from the hard drive)
    Code:
    chroot /mnt
    Voila! You're working on the hard drive again. Edit lilo.conf to restore your old kernel:
    Code:
    vim /etc/lilo.conf
    And now finish it by running lilo. Don't forget this!
    Code:
    lilo
    Reboot
    Code:
    reboot
    And you should be done.
    Can't tell an OS by it's GUI

  4. #4
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Thanks for the info regarding Lilo, Freston. I've never used Slack.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  5. #5
    Just Joined!
    Join Date
    Sep 2009
    Posts
    2
    Thank you, Freston. I followed your instructions exactly and everything worked great!

    Indeed, Slackware uses lilo.

Posting Permissions

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