Results 1 to 4 of 4

Thread: After Natty Narwhal Update, it goes straight to Grub command line.

  1. #1
    Join Date
    Apr 2006
    Beans
    16

    After Natty Narwhal Update, it goes straight to Grub command line.

    First off, my laptop is pure Linux, so no dual boot on Windows or anything like that.

    I upgraded from Meerkat to Narwhal. After all the files have been downloaded and installed it rebooted. Once it rebooted it went straight to the GRUB command line. After couple of hours of research, I ended up at

    https://help.ubuntu.com/community/Gr...LI%20to%20Boot

    My root was at (hd0,1). So therefore I put this in at the GRUB prompt.

    set root=(hd0,1)
    linux /vmlinuz root=/dev/sda1 ro
    initrd /initrd.img
    boot


    I did what it said and it got me into Ubuntu. Nice!
    It asked me to: After successfully booting into the system the user should run sudo update-grub

    I did.

    Next it asked me to review (/boot/grub/grub.cfg).

    That's where it is hairy, my file has multiple root settings and with msdos settings. That doesn't seem normal.

    Here are the contents, notice the roots, they have sets like
    set root='(/dev/sda,msdos1)'
    and I am not even running msdos. I would appreciate help in this matter.

    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by 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
    set have_grubenv=true
    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
    }

    function load_video {
    insmod vbe
    }

    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 625ed789-1cb3-4081-9c7e-f812810b5126
    if loadfont /usr/share/grub/unicode.pf2 ; then
    set gfxmode=1024x768
    load_video
    insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 625ed789-1cb3-4081-9c7e-f812810b5126
    set locale_dir=($root)/boot/grub/locale
    set lang=en_US
    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
    if background_color 44,0,30; then
    clear
    fi
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    set linux_gfx_mode=1024x768
    export linux_gfx_mode
    if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
    menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 625ed789-1cb3-4081-9c7e-f812810b5126
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=625ed789-1cb3-4081-9c7e-f812810b5126 ro quiet splash acpi_os_name=Linux acpi_osi=Linux vt.handoff=7
    initrd /boot/initrd.img-2.6.38-8-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 625ed789-1cb3-4081-9c7e-f812810b5126
    echo 'Loading Linux 2.6.38-8-generic ...'
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=625ed789-1cb3-4081-9c7e-f812810b5126 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.38-8-generic
    }
    submenu "Previous Linux versions" {
    menuentry 'Ubuntu, with Linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 625ed789-1cb3-4081-9c7e-f812810b5126
    linux /boot/vmlinuz-2.6.35-28-generic root=UUID=625ed789-1cb3-4081-9c7e-f812810b5126 ro quiet splash acpi_os_name=Linux acpi_osi=Linux vt.handoff=7
    initrd /boot/initrd.img-2.6.35-28-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 625ed789-1cb3-4081-9c7e-f812810b5126
    echo 'Loading Linux 2.6.35-28-generic ...'
    linux /boot/vmlinuz-2.6.35-28-generic root=UUID=625ed789-1cb3-4081-9c7e-f812810b5126 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.35-28-generic
    }
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###

    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 625ed789-1cb3-4081-9c7e-f812810b5126
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 625ed789-1cb3-4081-9c7e-f812810b5126
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    if [ "x${timeout}" != "x-1" ]; then
    if keystatus; then
    if keystatus --shift; then
    set timeout=-1
    else
    set timeout=0
    fi
    else
    if sleep --interruptible 3 ; then
    set timeout=0
    fi
    fi
    fi
    ### 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 ###

    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###

  2. #2
    Join Date
    Oct 2007
    Beans
    4
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: After Natty Narwhal Update, it goes straight to Grub command line.

    Not sure if it applies to your case, but I had similars problems upgrading to Natty. Installation seemed to go flawlessly but when I rebooted I got errors like "no such disk", "kernel must be loaded first", and went straight to gRUB prompt.

    I tried reinstalling GRUB from the live cd and that's when I noticed these "msdos" everywhere in my grub.cfg. Furthermore, the system complained that it didn't have enough space to install the loader on this "msdos-style partition". So I reinstalled Natty, resizing my first partition (I had to format it anyway) to give a few more blocks at the beginning of the disk. That seemed to solve the problem.

    Hope this will be of help!

  3. #3
    Join Date
    Dec 2006
    Beans
    76

    Re: After Natty Narwhal Update, it goes straight to Grub command line.

    I had the same problem. I think what is happening is that grub 1.99 is not installed in the mbr. Not sure why. Does it say grub 1.98 on your grub console? I fixed the problem with the following command lines:
    Code:
    sudo apt-get purge grub-common
    sudo apt-get install grub-pc
    To run the commands I had to boot the system from grub 1.98 with:
    Code:
    linux /vmlinuz root=UUID=877e3558-6ecf-4908-818f-b0369b692834
    initrd /initrd.img
    boot
    Notice that the UUID might not be the same in your system.

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: After Natty Narwhal Update, it goes straight to Grub command line.

    A reinstall of grub2's boot loader to the MBR may be all that is required.

    #reinstall from working (not liveCD) system - first find Ubuntu drive:
    sudo fdisk -l
    #if it's "/dev/sda" then just run:
    sudo grub-install /dev/sda
    #If that returns any errors run:
    sudo grub-install --recheck /dev/sda
    sudo update-grub

    Sometimes this does more and is required if installing to a different drive:
    #to get grub to remember where to reinstall on updates:
    sudo dpkg-reconfigure grub-pc
    #Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions
    #To see what drive grub2 uses see this line - grub-pc/install_devices:
    sudo debconf-show grub-pc

    And sometimes you have to reinstall grub as pureblood mentioned.
    chroot (if system is not bootable) & grub uninstall & reinstall -drs305
    http://ubuntuforums.org/showthread.php?t=1581099

    You are running MBR/msdos partitioning which grub includes as msdos as that is what it has been for the last 25 years. The new scheme is gpt which Macs already use. Ubuntu works very well with gpt from a BIOS boot and gpt is somewhat better, but gpt will not work with windows unless you have win7 and boot with UEFI not BIOS (very new computers). Grub seems to boot with UEFI in some cases but is a work in progress.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







Tags for this Thread

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
  •