Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-19-2010, 12:58 PM   #1
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
Adding a kernel in GRUB for Kubuntu 9.10: Invalid Magic number

Please ignore "Invalid Magic number" in the thread title.

I've compiled and added a kernel in Gentoo before. It doesn't seem to go quite as smoothly in Kubuntu 9.10

These are the steps I followed: I unpacked the kernel in /usr/src and ran make && make modules_install succesfully. Then I copied the kernel in arch/x86/boot/bzImage to /boot/bzImage-2.6.32

This entry is the one given by Kubuntu:
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        set quiet=1                                            
        insmod ext2                                            
        set root=(hd0,7)                                       
        search --no-floppy --fs-uuid --set 216c6301-61dd-4bd9-8f26-625935bccd23
        linux   /boot/vmlinuz-2.6.31-14-generic root=UUID=216c6301-61dd-4bd9-8f26-625935bccd23 ro   quiet splash
sudo update-grub won't find my kernel.

I just read the script that update grub uses. Changed the name of the kernel from xyz to vmlinuz-2.6.32-generic and it worked.

Last edited by gregorian; 04-19-2010 at 01:14 PM.
Old 04-19-2010, 08:59 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
and a response to stop the auto-bump.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
grub2 returns a "invalid magic number" error when booting slackware 13.0's kernel baji Slackware - Installation 4 03-09-2010 07:15 PM
LXer: Linux Kernel Ext3 Invalid Inode Number Denial of Service LXer Syndicated Linux News 0 08-08-2006 09:33 PM
gunzip: Invalid magic sceadu Linux - Software 1 01-12-2005 07:26 AM
invalid tar magic error bpw Linux - General 4 03-04-2004 09:41 PM
Kernel, Bad Magic Number Alybyzrp Linux - Newbie 0 10-29-2003 02:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration