PDA

View Full Version : [ubuntu_studio] Dual Boot Can No Longer Access Windows 8



rich-james1984
May 25th, 2014, 11:42 PM
Hello everyone.

I have read through a ton of these threads about this subject and even tried many of the methods advised in each one.
Most of the situations though were similair to mine but not exactly (unless I never found that precise thread and if I missed it I am sorry)

I have been stuck on this since I installed Ubuntu Studio yesterday, and never got it to get back into Windows 8. I hardly slept and spent
all night and day on it on day two now. So I would greatly appreciate some assistance. I am not a man of money but I am ready to put a bounty
on this thing. If someone would help me I got $20 with their name on it haha. I don't know if that is allowed here but I am just pulling my hair out.

Okay here is the situation:

I have a Lenovo ideapad z585. It came preinstalled with Windows 8 on it as well as a couple recovery drives(not sure why there more than one
but it looked like a generic recovery plus a full on lenovo packaged recovery(just a guess here))

Okay so I have my Windows 8 Partition on /dev/sda5.
My Ubuntu Studio on /dev/sda6

I have tried so many varations in grub to try to change up the chainloader etc I don't know anymore what to do.

I have turned off UEFI in bios and it is in Legacy Mode and Legacy First(two different options in BIOS)

I have my boot repair boot info I will post underneath.

Thank you all so much PLEASE HELP ME!!!!

(Okay I dont know where to find the boot info to add the attachment)

rich-james1984
May 25th, 2014, 11:45 PM
Here is my 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,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 dc80c0b1-010c-44ee-b244-be1448357cf3
else
search --no-floppy --fs-uuid --set=root dc80c0b1-010c-44ee-b244-be1448357cf3
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=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
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
### 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-dc80c0b1-010c-44ee-b244-be1448357cf3' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 dc80c0b1-010c-44ee-b244-be1448357cf3
else
search --no-floppy --fs-uuid --set=root dc80c0b1-010c-44ee-b244-be1448357cf3
fi
linux /boot/vmlinuz-3.13.0-24-lowlatency root=UUID=dc80c0b1-010c-44ee-b244-be1448357cf3 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-24-lowlatency
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-dc80c0b1-010c-44ee-b244-be1448357cf3' {
menuentry 'Ubuntu, with Linux 3.13.0-24-lowlatency' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-lowlatency-advanced-dc80c0b1-010c-44ee-b244-be1448357cf3' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 dc80c0b1-010c-44ee-b244-be1448357cf3
else
search --no-floppy --fs-uuid --set=root dc80c0b1-010c-44ee-b244-be1448357cf3
fi
echo 'Loading Linux 3.13.0-24-lowlatency ...'
linux /boot/vmlinuz-3.13.0-24-lowlatency root=UUID=dc80c0b1-010c-44ee-b244-be1448357cf3 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-24-lowlatency
}
menuentry 'Ubuntu, with Linux 3.13.0-24-lowlatency (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-lowlatency-recovery-dc80c0b1-010c-44ee-b244-be1448357cf3' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 dc80c0b1-010c-44ee-b244-be1448357cf3
else
search --no-floppy --fs-uuid --set=root dc80c0b1-010c-44ee-b244-be1448357cf3
fi
echo 'Loading Linux 3.13.0-24-lowlatency ...'
linux /boot/vmlinuz-3.13.0-24-lowlatency root=UUID=dc80c0b1-010c-44ee-b244-be1448357cf3 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-24-lowlatency
}
menuentry 'Ubuntu, with Linux 3.13.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-advanced-dc80c0b1-010c-44ee-b244-be1448357cf3' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 dc80c0b1-010c-44ee-b244-be1448357cf3
else
search --no-floppy --fs-uuid --set=root dc80c0b1-010c-44ee-b244-be1448357cf3
fi
echo 'Loading Linux 3.13.0-24-generic ...'
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=dc80c0b1-010c-44ee-b244-be1448357cf3 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-24-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-recovery-dc80c0b1-010c-44ee-b244-be1448357cf3' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 dc80c0b1-010c-44ee-b244-be1448357cf3
else
search --no-floppy --fs-uuid --set=root dc80c0b1-010c-44ee-b244-be1448357cf3
fi
echo 'Loading Linux 3.13.0-24-generic ...'
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=dc80c0b1-010c-44ee-b244-be1448357cf3 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-24-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/25_windows_uefi ###
menuentry "Windows 8 (loader)" {
insmod search_fs_uuid
insmod chain
insmod part_gpt
insmod fat
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid
chainloader /Windows/Boot/EFI/bootmgfw.efi
}
menuentry "Windows 8 Recovery(loader)" {
insmod search_fs_uuid
insmod chain
insmod part_gpt
insmod part_gpt
insmod part_gpt
insmod fat
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 --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 5252-1851
else
search --no-floppy --fs-uuid --set=root 5252-1851
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/25_windows_uefi ###

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### 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 ###

ubfan1
May 26th, 2014, 02:40 AM
First thing, you MUST be in UEFI mode to boot Windows 8. Secure boot is probably what you should have tried to turn off, but really, you only need to do that if something does not work, like you cannot boot at all from the install media. Since your grub.cfg file does not appear to use the signed kernels, you probably need secure boot off. Tty that and see what works, usually it's Windows which comes up without seeing grub, but that's another issue.

oldfred
May 26th, 2014, 04:42 AM
If Ubuntu is in Legacy/BIOS/CSM mode you cannot boot Windows from grub menu.
UEFI & BIOS boot modes are not compatible. You must be in the same mode to boot from grub menu.

You must have 64 bit version and boot in UEFI mode. See link in my signature for more info.

Lenovo Ideapad z585 Precise Installed wifi OK Dual Boot Win 7 no Sound SOLVED - other issues
http://ubuntuforums.org/showthread.php?t=2170099
https://help.ubuntu.com/community/InstallUbuntu11.10OnLenovoEFI/GPT/WLAN/Power/BIOS

Lenovo Community Bios Access
http://forums.lenovo.com/t5/IdeaPad-Y-U-V-Z-and-P-series/z580-can-t-access-bios-setup-or-boot-menu-after-changing-to/td-p/812737/page/2
Lenovo Active Protection System™ – for hard drive