Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Okay so i installed ubuntu on my system which had Windows 8 pre-installed (Old comp so I'm sort sure it didn't have secure boot and UEFI). I used the "Install alongside windows" option which promised to keep my windows untouched. The install went normal. And now, grub does not show up Windows. Things I've tried: 1) Using os-prober 2) Using grub update (does not detect windows) 3) Using boot-repair

My best guess: It installed EFI Ubuntu alongside my Legacy Windows 8. How do I solve this?

Here is my BootInfo Script :

Boot Info Script e7fc706 + Boot-Repair extra info      [Boot-Info 23Dec2013]


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

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 
    137390080 of the same hard drive for core.img. core.img is at this 
    location and looks in partition 94 for .

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Unknown
    Boot sector info:  According to the info in the boot sector, sda1 starts 
                       at sector 0. But according to the info from fdisk, 
                       sda1 starts at sector 40.
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

sda3: __________________________________________________________________________

    File system:       BIOS Boot partition
    Boot sector type:  Grub2's core.img
    Boot sector info: 

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 13.10 
    Boot files:        /boot/grub/grub.cfg /etc/fstab 
                       /boot/grub/i386-pc/core.img

sda5: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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   312,581,807   312,581,807  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1              40       409,639       409,600 EFI System partition
/dev/sda2      69,031,936   137,390,079    68,358,144 Data partition (Windows/Linux)
/dev/sda3     137,390,080   137,392,127         2,048 BIOS Boot partition
/dev/sda4     137,392,128   304,201,727   166,809,600 Data partition (Linux)
/dev/sda5     304,201,728   312,580,095     8,378,368 Swap partition (Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        70D6-1701                              vfat       EFI
/dev/sda4        d8d9a2a4-42ce-464d-af78-7df319226b3b   ext4       
/dev/sda5        a5c85f7b-91c2-4aae-8c41-86d33b6ad88b   swap       

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

Device           Mount_Point              Type       Options

/dev/sda4        /                        ext4       (rw,errors=remount-ro)


=========================== sda4/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
set default="0"

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,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d8d9a2a4-42ce-464d-af78-7df319226b3b
else
  search --no-floppy --fs-uuid --set=root d8d9a2a4-42ce-464d-af78-7df319226b3b
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_IN
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=10
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 ###
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-d8d9a2a4-42ce-464d-af78-7df319226b3b' {
recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt4'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d8d9a2a4-42ce-464d-af78-7df319226b3b
    else
      search --no-floppy --fs-uuid --set=root d8d9a2a4-42ce-464d-af78-7df319226b3b
    fi
    linux   /boot/vmlinuz-3.11.0-12-generic root=UUID=d8d9a2a4-42ce-464d-af78-7df319226b3b ro persistent  quiet splash $vt_handoff
    initrd  /boot/initrd.img-3.11.0-12-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-d8d9a2a4-42ce-464d-af78-7df319226b3b' {
    menuentry 'Ubuntu, with Linux 3.11.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-advanced-d8d9a2a4-42ce-464d-af78-7df319226b3b' {
    recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt4'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d8d9a2a4-42ce-464d-af78-7df319226b3b
        else
          search --no-floppy --fs-uuid --set=root d8d9a2a4-42ce-464d-af78-7df319226b3b
        fi
        echo    'Loading Linux 3.11.0-12-generic ...'
        linux   /boot/vmlinuz-3.11.0-12-generic root=UUID=d8d9a2a4-42ce-464d-af78-7df319226b3b ro persistent  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.11.0-12-generic
    }
    menuentry 'Ubuntu, with Linux 3.11.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-recovery-d8d9a2a4-42ce-464d-af78-7df319226b3b' {
    recordfail
        load_video
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt4'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d8d9a2a4-42ce-464d-af78-7df319226b3b
        else
          search --no-floppy --fs-uuid --set=root d8d9a2a4-42ce-464d-af78-7df319226b3b
        fi
        echo    'Loading Linux 3.11.0-12-generic ...'
        linux   /boot/vmlinuz-3.11.0-12-generic root=UUID=d8d9a2a4-42ce-464d-af78-7df319226b3b ro recovery nomodeset persistent
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.11.0-12-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_gpt
    insmod ext2
    set root='hd0,gpt4'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d8d9a2a4-42ce-464d-af78-7df319226b3b
    else
      search --no-floppy --fs-uuid --set=root d8d9a2a4-42ce-464d-af78-7df319226b3b
    fi
    linux16 /boot/memtest86+.bin
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt4'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d8d9a2a4-42ce-464d-af78-7df319226b3b
    else
      search --no-floppy --fs-uuid --set=root d8d9a2a4-42ce-464d-af78-7df319226b3b
    fi
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda4/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/sda4 during installation
UUID=d8d9a2a4-42ce-464d-af78-7df319226b3b /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=a5c85f7b-91c2-4aae-8c41-86d33b6ad88b none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)


======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda1

00000000  eb 58 90 42 53 44 20 20  34 2e 34 00 02 01 20 00  |.X.BSD  4.4... .|
00000010  02 00 00 00 00 f0 00 00  20 00 10 00 00 00 00 00  |........ .......|
00000020  00 40 06 00 4f 0c 00 00  00 00 00 00 02 00 00 00  |.@..O...........|
00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 29 01 17 d6 70 45  46 49 20 20 20 20 20 20  |..)...pEFI      |
00000050  20 20 46 41 54 33 32 20  20 20 fa 31 c0 8e d0 bc  |  FAT32   .1....|
00000060  00 7c fb 8e d8 e8 00 00  5e 83 c6 19 bb 07 00 fc  |.|......^.......|
00000070  ac 84 c0 74 06 b4 0e cd  10 eb f5 30 e4 cd 16 cd  |...t.......0....|
00000080  19 0d 0a 4e 6f 6e 2d 73  79 73 74 65 6d 20 64 69  |...Non-system di|
00000090  73 6b 0d 0a 50 72 65 73  73 20 61 6e 79 20 6b 65  |sk..Press any ke|
000000a0  79 20 74 6f 20 72 65 62  6f 6f 74 0d 0a 00 00 00  |y to reboot.....|
000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200

Unknown BootLoader on sda2

00000000  a4 36 ac 36 b4 36 bc 36  c4 36 cc 36 d4 36 dc 36  |.6.6.6.6.6.6.6.6|
00000010  e4 36 ec 36 f4 36 fc 36  04 37 0c 37 14 37 1c 37  |.6.6.6.6.7.7.7.7|
00000020  24 37 2c 37 34 37 3c 37  44 37 4c 37 54 37 5c 37  |$7,747<7D7L7T7\7|
00000030  64 37 6c 37 74 37 7c 37  84 37 8c 37 94 37 9c 37  |d7l7t7|7.7.7.7.7|
00000040  a4 37 ac 37 b4 37 bc 37  c4 37 cc 37 d4 37 dc 37  |.7.7.7.7.7.7.7.7|
00000050  e4 37 ec 37 f4 37 fc 37  04 38 0c 38 14 38 1c 38  |.7.7.7.7.8.8.8.8|
00000060  24 38 2c 38 34 38 3c 38  44 38 4c 38 54 38 5c 38  |$8,848<8D8L8T8\8|
00000070  64 38 6c 38 74 38 7c 38  84 38 8c 38 94 38 9c 38  |d8l8t8|8.8.8.8.8|
00000080  a4 38 ac 38 b4 38 bc 38  c4 38 cc 38 d4 38 dc 38  |.8.8.8.8.8.8.8.8|
00000090  e4 38 ec 38 f4 38 fc 38  04 39 0c 39 14 39 1c 39  |.8.8.8.8.9.9.9.9|
000000a0  24 39 2c 39 34 39 3c 39  44 39 4c 39 54 39 5c 39  |$9,949<9D9L9T9\9|
000000b0  64 39 6c 39 74 39 7c 39  84 39 8c 39 94 39 9c 39  |d9l9t9|9.9.9.9.9|
000000c0  a4 39 ac 39 b4 39 bc 39  c4 39 cc 39 d4 39 dc 39  |.9.9.9.9.9.9.9.9|
000000d0  e4 39 ec 39 f4 39 fc 39  04 3a 0c 3a 14 3a 1c 3a  |.9.9.9.9.:.:.:.:|
000000e0  24 3a 2c 3a 34 3a 3c 3a  44 3a 4c 3a 54 3a 5c 3a  |$:,:4:<:D:L:T:\:|
000000f0  64 3a 6c 3a 74 3a 7c 3a  84 3a 8c 3a 94 3a 9c 3a  |d:l:t:|:.:.:.:.:|
00000100  a4 3a ac 3a b4 3a bc 3a  c4 3a cc 3a d4 3a dc 3a  |.:.:.:.:.:.:.:.:|
00000110  e4 3a ec 3a f4 3a fc 3a  04 3b 0c 3b 14 3b 1c 3b  |.:.:.:.:.;.;.;.;|
00000120  24 3b 2c 3b 34 3b 3c 3b  44 3b 4c 3b 54 3b 5c 3b  |$;,;4;<;D;L;T;\;|
00000130  64 3b 6c 3b 74 3b 7c 3b  84 3b 8c 3b 94 3b 9c 3b  |d;l;t;|;.;.;.;.;|
00000140  a4 3b ac 3b b4 3b bc 3b  c4 3b cc 3b d4 3b dc 3b  |.;.;.;.;.;.;.;.;|
00000150  e4 3b ec 3b f4 3b fc 3b  04 3c 0c 3c 14 3c 1c 3c  |.;.;.;.;.<.<.<.<|
00000160  24 3c 2c 3c 34 3c 3c 3c  44 3c 4c 3c 54 3c 5c 3c  |$<,<4<<<D<L<T<\<|
00000170  64 3c 6c 3c 74 3c 7c 3c  84 3c 8c 3c 94 3c 9c 3c  |d<l<t<|<.<.<.<.<|
00000180  a4 3c ac 3c b4 3c bc 3c  c4 3c cc 3c d4 3c dc 3c  |.<.<.<.<.<.<.<.<|
00000190  e4 3c ec 3c f4 3c fc 3c  04 3d 0c 3d 14 3d 1c 3d  |.<.<.<.<.=.=.=.=|
000001a0  24 3d 2c 3d 34 3d 3c 3d  44 3d 4c 3d 54 3d 5c 3d  |$=,=4=<=D=L=T=\=|
000001b0  64 3d 6c 3d 74 3d 7c 3d  84 3d 8c 3d 94 3d 9c 3d  |d=l=t=|=.=.=.=.=|
000001c0  a4 3d ac 3d b4 3d bc 3d  c4 3d cc 3d d4 3d dc 3d  |.=.=.=.=.=.=.=.=|
000001d0  e4 3d ec 3d f4 3d fc 3d  04 3e 0c 3e 14 3e 1c 3e  |.=.=.=.=.>.>.>.>|
000001e0  24 3e 2c 3e 34 3e 3c 3e  44 3e 4c 3e 54 3e 5c 3e  |$>,>4><>D>L>T>\>|
000001f0  64 3e 6c 3e 74 3e 7c 3e  84 3e 8c 3e 94 3e 9c 3e  |d>l>t>|>.>.>.>.>|
00000200


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

cat: /tmp/BootInfo-z3XYFCre/Tmp_Log: No such file or directory

ADDITIONAL INFORMATION :
=================== log of boot-repair 2014-03-12__16h16 ===================
boot-repair version : 3.199~ppa40~saucy
boot-sav version : 3.199~ppa40~saucy
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 3.199~ppa40~saucy
boot-repair is executed in installed-session (Ubuntu 13.10, saucy, Ubuntu, x86_64)
CPU op-mode(s):        32-bit, 64-bit
BOOT_IMAGE=/boot/vmlinuz-3.11.0-12-generic root=UUID=d8d9a2a4-42ce-464d-af78-7df319226b3b ro persistent quiet splash

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== os-prober:
/dev/sda4:The OS now in use - Ubuntu 13.10 CurrentSession:linux

=================== blkid:
/dev/sda1: LABEL="EFI" UUID="70D6-1701" TYPE="vfat"
/dev/sda4: UUID="d8d9a2a4-42ce-464d-af78-7df319226b3b" TYPE="ext4"
/dev/sda5: UUID="a5c85f7b-91c2-4aae-8c41-86d33b6ad88b" TYPE="swap"


1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== /etc/grub.d/ :
drwxr-xr-x  2 root root    4096 Oct 17 00:32 grub.d
total 72
-rwxr-xr-x 1 root root  7850 Oct 10 23:18 00_header
-rwxr-xr-x 1 root root  5949 Aug 15  2013 05_debian_theme
-rwxr-xr-x 1 root root 11479 Oct 10 23:18 10_linux
-rwxr-xr-x 1 root root 10258 Oct 10 23:18 20_linux_xen
-rwxr-xr-x 1 root root  1798 Jun 17  2013 20_memtest86+
-rwxr-xr-x 1 root root 11531 Oct 10 23:18 30_os-prober
-rwxr-xr-x 1 root root  1426 Oct 10 23:18 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Oct 10 23:18 40_custom
-rwxr-xr-x 1 root root   216 Oct 10 23:18 41_custom
-rw-r--r-- 1 root root   483 Oct 10 23:18 README




=================== /etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="persistent"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"



=================== UEFI/Legacy mode:
This installed-session is not in EFI-mode.
SecureBoot disabled.


=================== PARTITIONS & DISKS:
sda4    : sda,  not-sepboot,    grubenv-ok  grub2,  grub-pc ,   update-grub,    64, with-boot,  is-os,  not--efi--part, fstab-without-boot, fstab-without-efi,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot, apt-get,    grub-install,   with--usr,  fstab-without-usr,  not-sep-usr,    standard,   farbios,    .
sda1    : sda,  not-sepboot,    no-grubenv  nogrub, no-docgrub, no-update-grub, 32, no-boot,    no-os,  is-correct-EFI, part-has-no-fstab,  part-has-no-fstab,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot, nopakmgr,   nogrubinstall,  no---usr,   part-has-no-fstab,  not-sep-usr,    standard,   not-far,    /mnt/boot-sav/sda1.

sda : GPT,  BIOS_boot,  has-correctEFI,     not-usb,    has-os, 40 sectors * 512 bytes


=================== parted -l:

Model: ATA ST3160215AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name  Flags
1      20.5kB  210MB   210MB   fat32           EF    boot
2      35.3GB  70.3GB  35.0GB                  WI    msftdata
3      70.3GB  70.3GB  1049kB                        bios_grub
4      70.3GB  156GB   85.4GB  ext4
5      156GB   160GB   4290MB  linux-swap(v1)

=================== parted -lm:

BYT;
/dev/sda:160GB:scsi:512:512:gpt:ATA ST3160215AS;
1:20.5kB:210MB:210MB:fat32:EF:boot;
2:35.3GB:70.3GB:35.0GB::WI:msftdata;
3:70.3GB:70.3GB:1049kB:::bios_grub;
4:70.3GB:156GB:85.4GB:ext4::;
5:156GB:160GB:4290MB:linux-swap(v1)::;


=================== mount:
/dev/sda4 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=shubham)
/dev/sda1 on /mnt/boot-sav/sda1 type vfat (rw)


=================== ls:
/sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda4 sda5 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  autofs block bsg btrfs-control bus cdrom char console core cpu cpu_dma_latency disk dri ecryptfs fb0 fd full fuse hidraw0 hpet input kmsg log mapper mcelog mem net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sg0 sg1 shm snapshot snd sr0 stderr stdin stdout uinput urandom usb vga_arbiter vhost-net zero
ls /dev/mapper:  control

=================== hexdump -n512 -C /dev/sda1
00000000  eb 58 90 42 53 44 20 20  34 2e 34 00 02 01 20 00  |.X.BSD  4.4... .|
00000010  02 00 00 00 00 f0 00 00  20 00 10 00 00 00 00 00  |........ .......|
00000020  00 40 06 00 4f 0c 00 00  00 00 00 00 02 00 00 00  |.@..O...........|
00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 01 29 01 17 d6 70 45  46 49 20 20 20 20 20 20  |..)...pEFI      |
00000050  20 20 46 41 54 33 32 20  20 20 fa 31 c0 8e d0 bc  |  FAT32   .1....|
00000060  00 7c fb 8e d8 e8 00 00  5e 83 c6 19 bb 07 00 fc  |.|......^.......|
00000070  ac 84 c0 74 06 b4 0e cd  10 eb f5 30 e4 cd 16 cd  |...t.......0....|
00000080  19 0d 0a 4e 6f 6e 2d 73  79 73 74 65 6d 20 64 69  |...Non-system di|
00000090  73 6b 0d 0a 50 72 65 73  73 20 61 6e 79 20 6b 65  |sk..Press any ke|
000000a0  79 20 74 6f 20 72 65 62  6f 6f 74 0d 0a 00 00 00  |y to reboot.....|
000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== df -Th:

Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda4      ext4       79G  3.2G   71G   5% /
none           tmpfs     4.0K     0  4.0K   0% /sys/fs/cgroup
udev           devtmpfs  2.0G   12K  2.0G   1% /dev
tmpfs          tmpfs     396M  1.1M  395M   1% /run
none           tmpfs     5.0M     0  5.0M   0% /run/lock
none           tmpfs     2.0G   80K  2.0G   1% /run/shm
none           tmpfs     100M   72K  100M   1% /run/user
/dev/sda1      vfat      197M   35M  162M  18% /mnt/boot-sav/sda1

=================== fdisk -l:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2267dead

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1   312581807   156290903+  ee  GPT


EFI detected. Please check the options.

=================== Recommended repair
Recommended-Repair
This setting will reinstall the grub2 of sda4 into the MBR of sda.
Grub-efi will not be selected by default because: no-win-efi
Additional repair will be performed: unhide-bootmenu-10s


Unhide GRUB boot menu in sda4/etc/default/grub

*******lspci -nnk | grep -iA3 vga
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RV730 XT [Radeon HD 4670] [1002:9490]
Subsystem: PC Partner Limited / Sapphire Technology Device [174b:e101]
Kernel driver in use: radeon
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] RV710/730 HDMI Audio [Radeon HD 4000 series] [1002:aa38]
*******

grub-install (GRUB) 2.00-19ubuntu2,grub-install (GRUB) 2.

Reinstall the GRUB of sda4 into the MBR of sda
Installation finished. No error reported.
grub-install /dev/sda: exit code of grub-install /dev/sda:0

update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.11.0-12-generic
Found initrd image: /boot/initrd.img-3.11.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
Unhide GRUB boot menu in sda4/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.


The boot files of [The OS now in use - Ubuntu 13.10] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools su
share|improve this question
    
post the output of [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD" command. –  Avinash Raj Mar 12 at 11:06
    
please post the full boot-repair log. –  Avinash Raj Mar 12 at 11:06
    
@ Avinash Raj: Output is "Legacy boot on HDD" –  user3210476 Mar 12 at 14:14
    
Change UEFI mode to legacy mode in bios. –  Avinash Raj Mar 12 at 14:18
    
UEFI & BIOS are not compatible or once you start booting in one mode you cannot change to other mode. Then you cannot from a BIOS Ubuntu use grub to boot a UEFI Windows. You can boot only by using UEFI menu and may have to turn on/off UEFI or CSM/BIOS settings. Both need to be UEFI. Boot-Repair can convert by un-installing grub-pc(BIOS) and installing grub-efi(UEFI). –  oldfred Mar 12 at 14:50
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.