PDA

View Full Version : [ubuntu] Can't boot Ubuntu after installation



jon60
August 17th, 2014, 04:01 PM
Hello, I installed Ubuntu from a USB stick and removed WIndows 7 from my computer. After rebooting it, it either goes to the GRUB menu if my USB is connected, or to a black screen saying there's no OS installed. How can I fix this? Thanks a lot.

This is what I get from the boot info script thing in the results file:



Boot Info Script 0.61 [1 April 2012]


============================= Boot Info Summary: ===============================

=> No boot loader is installed in the MBR of /dev/sda.
=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________ ________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi /efi/ubuntu/MokManager.efi
/efi/ubuntu/shimx64.efi

sda2: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 14.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab

sda3: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ ________________________

File system: vfat
Boot sector type: SYSLINUX 4.07 2013-07-25
Boot sector info: Syslinux looks at sector 1081376 of /dev/sdb1 for its
second stage. SYSLINUX is installed in the /uui
directory. The integrity check of the ADV area failed.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /efi/BOOT/grubx64.efi

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 976,773,167 976,773,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 1,050,623 1,048,576 EFI System partition
/dev/sda2 1,050,624 968,599,551 967,548,928 Data partition (Linux)
/dev/sda3 968,599,552 976,771,071 8,171,520 Swap partition (Linux)

Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 16.1 GB, 16079781888 bytes
255 heads, 63 sectors/track, 1954 cylinders, total 31405824 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 * 112 31,405,823 31,405,712 c W95 FAT32 (LBA)


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 88C8-F687 vfat
/dev/sda2 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf ext4
/dev/sda3 cd4f6db3-85cc-4ca2-b2dc-72969cbf7d71 swap
/dev/sdb1 CFE3-7F7E vfat UUI
/dev/sr0 iso9660 Driver CD 2.8

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,ioc harset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sr0 /media/ubuntu/Driver CD 2.8 iso9660 (ro,nosuid,nodev,uid=999,gid=999,iocharset=utf8,mo de=0400,dmode=0500,uhelper=udisks2)


=========================== sda2/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# 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
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
else
search --no-floppy --fs-uuid --set=root 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_GB
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
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 ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-02b75aa7-9b1a-4ade-bc7d-f5cb676514cf' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
else
search --no-floppy --fs-uuid --set=root 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
fi
linux /boot/vmlinuz-3.13.0-34-generic.efi.signed root=UUID=02b75aa7-9b1a-4ade-bc7d-f5cb676514cf ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-34-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-02b75aa7-9b1a-4ade-bc7d-f5cb676514cf' {
menuentry 'Ubuntu, with Linux 3.13.0-34-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-34-generic-advanced-02b75aa7-9b1a-4ade-bc7d-f5cb676514cf' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
else
search --no-floppy --fs-uuid --set=root 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
fi
echo 'Loading Linux 3.13.0-34-generic ...'
linux /boot/vmlinuz-3.13.0-34-generic.efi.signed root=UUID=02b75aa7-9b1a-4ade-bc7d-f5cb676514cf ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-34-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-34-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-34-generic-recovery-02b75aa7-9b1a-4ade-bc7d-f5cb676514cf' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
else
search --no-floppy --fs-uuid --set=root 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
fi
echo 'Loading Linux 3.13.0-34-generic ...'
linux /boot/vmlinuz-3.13.0-34-generic.efi.signed root=UUID=02b75aa7-9b1a-4ade-bc7d-f5cb676514cf ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-34-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-advanced-02b75aa7-9b1a-4ade-bc7d-f5cb676514cf' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
else
search --no-floppy --fs-uuid --set=root 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
fi
echo 'Loading Linux 3.13.0-32-generic ...'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=02b75aa7-9b1a-4ade-bc7d-f5cb676514cf ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-32-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-recovery-02b75aa7-9b1a-4ade-bc7d-f5cb676514cf' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
else
search --no-floppy --fs-uuid --set=root 02b75aa7-9b1a-4ade-bc7d-f5cb676514cf
fi
echo 'Loading Linux 3.13.0-32-generic ...'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=02b75aa7-9b1a-4ade-bc7d-f5cb676514cf ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-32-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+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda2/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=02b75aa7-9b1a-4ade-bc7d-f5cb676514cf / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=88C8-F687 /boot/efi vfat defaults 0 1
# swap was on /dev/sda3 during installation
UUID=cd4f6db3-85cc-4ca2-b2dc-72969cbf7d71 none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda2: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)


=========================== sdb1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------

if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper quiet splash --
initrd /casper/initrd.lz
}
menuentry "Install Ubuntu" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper only-ubiquity quiet splash --
initrd /casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper only-ubiquity quiet splash oem-config/enable=true --
initrd /casper/initrd.lz
}
menuentry "Check disc for defects" {
set gfxpayload=keep
linux /casper/vmlinuz.efi cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper integrity-check quiet splash --
initrd /casper/initrd.lz
}
--------------------------------------------------------------------------------

=================== sdb1: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)


========= Devices which don't seem to have a corresponding hard drive: =========

sdc

=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-mfxIm7us/Tmp_Log: No such file or directory
/home/ubuntu/Desktop/bootinfoscript: line 1646: [: 2.73495e+09: integer expression expected
cat: /tmp/BootInfo-mfxIm7us/Tmp_Log: No such file or directory
No volume groups found

oldfred
August 17th, 2014, 04:50 PM
Grub menu on flash drive is just the installer again.

With one install you will not get grub menu, it will just boot your system. Often holding escape key will then show grub menu, if it is booting that far.

But error sounds more like it is from UEFI/BIOS. Do you have UEFI set to boot in UEFI as default and does it show the ubuntu entry on the boot options?

What computer, model & video card/chip is this?

Others have posted some examples of UEFI screens.

jon60
August 17th, 2014, 07:25 PM
I've checked the BIOS and I can't seem to find anything relating to UEFI. I've tried holding down shift but that doesn't seem to do anything. I have a Lenovo H520s though I can't remember it's specifications. I've attached photo's for reference. Ignore the first USB, http://i.imgur.com/nGyl96w.jpghttp://i.imgur.com/Z59nis9.jpg.

oldfred
August 17th, 2014, 09:45 PM
Please attach screenshots, not post in line. Some users do not have high speed Internet.
You can easily attach with Advanced editor and paperclip icon in top edit panel.

If you are booting from flash drive or DVD and get grub menu, then it is booting in UEFI mode.

Is your UEFI/BIOS up to date from Lenovo?

Do you have two flash drives or external devices plugged in? Better to only have one unless installing from one to another. One of my systems will not boot flash drive if another flash drive is plugged in.

jon60
August 18th, 2014, 10:55 AM
I removed one of my USB's and now I get a message saying SYSLINUX and some other text which I can't remember. ALso, there's a flashing underscore by 'boot:'.

jon60
August 18th, 2014, 11:37 AM
It says 'SYSLINUX 4.07 EDD 2013-07-25 Copyright (C) 1994-2013 H.Peter...
Could not find kernel image: /isolinux/isolinux.cfg'

jon60
August 18th, 2014, 01:50 PM
Does it have something to do with the fact that there's no bootloader installed?

oldfred
August 18th, 2014, 03:18 PM
You installed in UEFI boot mode, so there is not supposed to be a boot loader in the gpt drive's protective MBR.

If you are now getting Syslinux that is the BIOS boot mode on the live installer. But that should boot in BIOS mode.
When you installed you must have gotten the grub menu on the flash drive boot. Your first screen shot in post #3.

Shows install with screen shots for both BIOS(purple) & UEFI(grub menu), so you know which you are using.
https://help.ubuntu.com/community/UEFI

You do not have the /efi/Boot folder with a default UEFI boot. We may need to create that manually.

From live installer mount the efi partition on hard drive:
mount /dev/sda1 /mnt
mkdir /mnt/EFI/BOOT
cp /mnt/EFI/ubuntu/* /mnt/EFI/BOOT
mv /mnt/EFI/BOOT/grubx64.efi /mnt/EFI/BOOT/bootx64.efi


Similar instructions:

Another lenovo solution copy grubx64.efi to bootx64.efi & boot hard drive not any other entry
http://ubuntuforums.org/showthread.php?t=2185869&p=12884470#post12884470




From UEFI/BIOS you want to be in UEFI mode as that is how you installed and boot an ubuntu entry in your boot options.