Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: help needed - error : file not found error : you need to load kernel first

  1. #11
    Join Date
    Nov 2009
    Location
    Kuala Lumpur, Malaysia
    Beans
    325
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: help needed - error : file not found error : you need to load kernel first

    here it goes..

    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
    set saved_entry=${prev_saved_entry}
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi

    function savedefault {
    if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
    fi
    }

    function recordfail {
    set recordfail=1
    if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    if loadfont /usr/share/grub/unicode.pf2 ; then
    set gfxmode=640x480
    insmod gfxterm
    insmod vbe
    if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
    fi
    fi
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ ${recordfail} = 1 ]; then
    set timeout=-1
    else
    set timeout=10
    fi
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=e844c8e5-bc5b-4998-ad3e-ef26a85aee46 ro quiet splash
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    echo 'Loading Linux 2.6.32-21-generic ...'
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=e844c8e5-bc5b-4998-ad3e-ef26a85aee46 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sda1)" {
    insmod ntfs
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set 04a8ece4a8ecd568
    chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###

    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###

  2. #12
    Join Date
    Nov 2009
    Location
    Kuala Lumpur, Malaysia
    Beans
    325
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: help needed - error : file not found error : you need to load kernel first

    here it goes..

    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
    set saved_entry=${prev_saved_entry}
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi

    function savedefault {
    if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
    fi
    }

    function recordfail {
    set recordfail=1
    if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    if loadfont /usr/share/grub/unicode.pf2 ; then
    set gfxmode=640x480
    insmod gfxterm
    insmod vbe
    if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
    fi
    fi
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ ${recordfail} = 1 ]; then
    set timeout=-1
    else
    set timeout=10
    fi
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=e844c8e5-bc5b-4998-ad3e-ef26a85aee46 ro quiet splash
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    echo 'Loading Linux 2.6.32-21-generic ...'
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=e844c8e5-bc5b-4998-ad3e-ef26a85aee46 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set e844c8e5-bc5b-4998-ad3e-ef26a85aee46
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sda1)" {
    insmod ntfs
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set 04a8ece4a8ecd568
    chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###

    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###

  3. #13
    Join Date
    Jun 2009
    Location
    Manchester
    Beans
    87

    Re: help needed - error : file not found error : you need to load kernel first

    Do all the menu's have this problem?
    Have you deleted the kernel image?
    Are you sure root is still hd0,6?

  4. #14
    Join Date
    Nov 2009
    Location
    Kuala Lumpur, Malaysia
    Beans
    325
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: help needed - error : file not found error : you need to load kernel first

    Do all the menu's have this problem?
    Have you deleted the kernel image?
    Are you sure root is still hd0,6?
    yes i think I accidentally delete the kernel image , argh, I didnt realize that part comin. and just go and rm that thing.

    and yes, the root is at hd0,6. still there. by the way, is there a way to check it ?

  5. #15
    Join Date
    Nov 2009
    Location
    Kuala Lumpur, Malaysia
    Beans
    325
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: help needed - error : file not found error : you need to load kernel first

    Do all the menu's have this problem?
    no, only the ubuntu .

  6. #16
    Join Date
    Jun 2009
    Location
    Manchester
    Beans
    87

    Re: help needed - error : file not found error : you need to load kernel first

    You need to install a new kernel then. You could copy one over from a live cd.

  7. #17
    Join Date
    Nov 2009
    Location
    Kuala Lumpur, Malaysia
    Beans
    325
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: help needed - error : file not found error : you need to load kernel first

    You need to install a new kernel then. You could copy one over from a live cd.
    owh. can I know which part that i need to copy from the live cd?
    thank you for your reply

  8. #18
    Join Date
    Jun 2009
    Location
    Manchester
    Beans
    87

    Re: help needed - error : file not found error : you need to load kernel first

    Boot the LiveCD
    Mount the Ubuntu partition somewhere, eg /mnt/ubuntu

    cp /boot/vmlinuz-* /mnt/ubuntu/boot/

    Edit grub.cfg so that it boots this kernel version.

  9. #19
    Join Date
    Nov 2009
    Location
    Kuala Lumpur, Malaysia
    Beans
    325
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: help needed - error : file not found error : you need to load kernel first

    @Noz3001, can you tell me ways on how doing it properly, because i find it difficult to do it.

  10. #20
    Join Date
    Jun 2009
    Location
    Manchester
    Beans
    87

    Re: help needed - error : file not found error : you need to load kernel first

    Well, do this on the LiveCD:

    mkdir /mnt/ubuntu
    mount /dev/sda6 /mnt/ubuntu


    Then do
    ls /boot

    Write down the file name of the vmlinuz- file and then

    cp /boot/<put the filename here> /mnt/ubuntu/boot

    then

    nano /mnt/ubuntu/boot/grub/grub.cfg

    Look for 'menuentry Ubuntu, with Linux.....'

    and then change the beginning of the "linux" line a few lines under to

    linux /boot/<put the filename here>

    BUT DON'T CHANGE THE PARAMETERS AFTER THIS

    Then Ctrl+O, Ctrl+X and reboot

Page 2 of 3 FirstFirst 123 LastLast

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
  •