PDA

View Full Version : windows doesn't boot from grub but ubuntu boots.



aanchal3
May 31st, 2015, 04:30 PM
i first installed windows 8.1 and then installed ubuntu 14.04 alongside windows. now i'm only able to boot ubuntu from grub. if i choose the windows loader option. it give a blank screen n i have to force shut down my laptop to go to the grub menu again. i tried updating grub and also did the boot repair but it didnt work.
here's the result of the boot-repair: http://paste.ubuntu.com/11475093/

the result of bootinfoscript is given below or u can see the attached file:

Boot Info Script 0.61 [1 April 2012]


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

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

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD

sda2: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Windows/System32/winload.exe

sda3: __________________________________________________ ________________________

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

sda4: __________________________________________________ ________________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ ________________________

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

sda6: __________________________________________________ ________________________

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

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 718,847 716,800 7 NTFS / exFAT / HPFS
/dev/sda2 718,848 204,802,047 204,083,200 7 NTFS / exFAT / HPFS
/dev/sda3 204,802,048 1,024,002,047 819,200,000 6 FAT16
/dev/sda4 1,024,004,094 1,953,523,711 929,519,618 5 Extended
/dev/sda5 1,024,004,096 1,936,943,103 912,939,008 83 Linux
/dev/sda6 1,936,945,152 1,953,523,711 16,578,560 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 CA44E2F244E2DFE5 ntfs System Reserved
/dev/sda2 8C64250C6424FA9A ntfs
/dev/sda5 39d4bf2e-09c0-4b39-a463-0078e1585a15 ext4
/dev/sda6 3e07d9f8-d342-40f8-a5ff-6cc9f82edce2 swap

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

Device Mount_Point Type Options

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


=========================== sda5/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_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 39d4bf2e-09c0-4b39-a463-0078e1585a15
else
search --no-floppy --fs-uuid --set=root 39d4bf2e-09c0-4b39-a463-0078e1585a15
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_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=10
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
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,0; 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-39d4bf2e-09c0-4b39-a463-0078e1585a15' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 39d4bf2e-09c0-4b39-a463-0078e1585a15
else
search --no-floppy --fs-uuid --set=root 39d4bf2e-09c0-4b39-a463-0078e1585a15
fi
linux /boot/vmlinuz-3.16.0-30-generic root=UUID=39d4bf2e-09c0-4b39-a463-0078e1585a15 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.16.0-30-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-39d4bf2e-09c0-4b39-a463-0078e1585a15' {
menuentry 'Ubuntu, with Linux 3.16.0-30-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-30-generic-advanced-39d4bf2e-09c0-4b39-a463-0078e1585a15' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 39d4bf2e-09c0-4b39-a463-0078e1585a15
else
search --no-floppy --fs-uuid --set=root 39d4bf2e-09c0-4b39-a463-0078e1585a15
fi
echo 'Loading Linux 3.16.0-30-generic ...'
linux /boot/vmlinuz-3.16.0-30-generic root=UUID=39d4bf2e-09c0-4b39-a463-0078e1585a15 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-30-generic
}
menuentry 'Ubuntu, with Linux 3.16.0-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-30-generic-recovery-39d4bf2e-09c0-4b39-a463-0078e1585a15' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 39d4bf2e-09c0-4b39-a463-0078e1585a15
else
search --no-floppy --fs-uuid --set=root 39d4bf2e-09c0-4b39-a463-0078e1585a15
fi
echo 'Loading Linux 3.16.0-30-generic ...'
linux /boot/vmlinuz-3.16.0-30-generic root=UUID=39d4bf2e-09c0-4b39-a463-0078e1585a15 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-30-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='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 39d4bf2e-09c0-4b39-a463-0078e1585a15
else
search --no-floppy --fs-uuid --set=root 39d4bf2e-09c0-4b39-a463-0078e1585a15
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 39d4bf2e-09c0-4b39-a463-0078e1585a15
else
search --no-floppy --fs-uuid --set=root 39d4bf2e-09c0-4b39-a463-0078e1585a15
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 8 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-CA44E2F244E2DFE5' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 CA44E2F244E2DFE5
else
search --no-floppy --fs-uuid --set=root CA44E2F244E2DFE5
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### 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 ###
--------------------------------------------------------------------------------

=============================== sda5/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/sda5 during installation
UUID=39d4bf2e-09c0-4b39-a463-0078e1585a15 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=3e07d9f8-d342-40f8-a5ff-6cc9f82edce2 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)


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

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




please help me with this...thanks

oldfred
May 31st, 2015, 06:01 PM
Even though you installed Windows 8 in BIOS boot mode, it still is Windows 8 with its always on hibernation or fast startup. You must turn that off if you want to dual boot.
But with a BIOS install, you cannot fix it from Linux, and need to either reboot directly in Windows by temporarily restoring Windows boot loader (Boot-Repair's advanced mode) or using the Windows repair console in your repair flash drive or installer.

Also you show a FAT16 as sda3, but system cannot mount it. Does that partition have errors or not formatted correctly?

WARNING for Windows 8 Dual-Booters
http://ubuntuforums.org/showthread.php?t=1953674
It defaults shutdown to a hybrid hibernation/off state for fast startup
http://www.kapilarya.com/how-to-enable-disable-fast-start-up-in-windows-8
But then files may be corrupted similar to Windows 7 Hibernation:
http://ubuntu-with-wubi.blogspot.ca/2012/09/windows-8-fast-start-and-hybrid-sleep.html
http://superuser.com/questions/144720/missing-files-when-windows-7-returns-from-hibernate-w-dual-boot
Fast Startup off/hibernation
http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html
http://www.kapilarya.com/how-to-enable-disable-fast-start-up-in-windows-8
Fast startup is hidden.
If issues you may need these?
Control Panel -> Power icon -> Choose what power buttons do -> Change settings that are currently unavailable, make sure fast startup is unchecked
powercfg /h off

aanchal3
June 1st, 2015, 03:29 AM
well i restored the windows boot loader and now i'm directly directed to the windows. then to repair grub i tried booting ubuntu using the usb with ubuntu installation. but when i choose the option "try ubuntu without installing" or any other option i get the error message:/casper/initrd.lz:read error@21052488
what do i do now should i reinstall ubuntu again?

oldfred
June 1st, 2015, 02:49 PM
Something is wrong with flash drive. I would just download a new ISO and reinstall from ISO to flash drive with whichever installer you used. unetbootin is most often suggested, but others have also worked.