Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

  1. #1
    Join Date
    Oct 2011
    Beans
    9

    dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    Hello everybody,

    I got some problem during the installation of Ubuntu on a UEFI ultrabook.
    I give you all the infos about what I have done:
    1) restore my laptop to the factory default configuration (so only Windwos 8 was on my harddrive);
    2) install Ubuntu Secure Remix; here I got the first "surprise": "This computer currently has no detected operating system" and using os-prober I got "/dev/sda6:Windows Recovery Environment (loader):Windows:chain", while I also should got "/dev/sda2:Window 8.....". Here you can find the Boot Info Script http://paste.ubuntu.com/1460646/;
    3) so I aborted the installation and I tried to verify my harddrive partition scheme through fixparts under Windows 8. Apparently everything was fine;
    4) I tried a new installation of Ubuntu selecting "Other" and performing a manual partioning. The installation ended fine. At the first reboot I was only able to load Ubuntu through the grub2. Here you can read the Boot Info script at that moment http://paste.ubuntu.com/1460627/;
    5) so I performed boot-repair to get back Windows loading at the grub2 shell. After that the Boot Info Script was http://paste.ubuntu.com/1460646/ (os-prober continues to give only "/dev/sda6:Windows Recovery Environment (loader):Windows:chain");
    6) at the next reboot this was what I got at the grub2 options:
    a) ubuntu (that loads correctly Ubuntu OS);
    b) advance options for Ubuntu;
    c) Windows UEFI loader (that loads properly Windwos 8);
    d) Windows Boot UEFI bootx64.efi.bkp (as c);
    e) Windows Recovery Enviroment (loader) (on /dev/sda6) (this gives the following error messages: error: impossible find command'drivemap'; error: invalid EFI file path; press any key to continue (and it comes back to grub2);

    How can I get working/loading the Windows Recovery Environment? The problem seems to be located in grub2. Have I to re-install grub? (Boot-repair should already have done it?!?!?!?!)

    Any recommendation is well accepted!!!

    Thanks in advace

  2. #2
    Join Date
    Jul 2011
    Beans
    18

    Re: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    For general boot problems (even specific problems UEFI - GPT) with grub-boot-loader you can use the boot program from a LiveCD-USB of Ubuntu.

  3. #3
    Join Date
    Oct 2011
    Beans
    9

    Re: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    Quote Originally Posted by catalin.vasilescu View Post
    For general boot problems (even specific problems UEFI - GPT) with grub-boot-loader you can use the boot program from a LiveCD-USB of Ubuntu.
    As I have written in the first message, I performed the Ubuntu (12.10 64 bit) installation via Ubuntu Secure Remix that includes boot-repair and other useful tools. And I made use of it as I described at the point (5).
    But even using boot-repair, I still cannot access to the Windows recovery environment at the grub2 shell.

  4. #4
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Arrow Re: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    Hello
    Quote Originally Posted by ugiulio View Post
    "This computer currently has no detected operating system" and using os-prober I got "/dev/sda6:Windows Recovery Environment (loader):Windows:chain", while I also should got "/dev/sda2:Window 8.....". Here you can find the Boot Info Script http://paste.ubuntu.com/1460646/;
    The problem is that os-prober did not detect your Windows8:

    Code:
    =================== os-prober:
    /dev/sda8:Sistema operativo ora in uso - Ubuntu-Secure-Remix 12.10 30nov2012 CurrentSession:linux
    /dev/sda6:Windows Recovery Environment (loader):Windows:chain
    Please report this bug here: https://launchpad.net/ubuntu/+source/os-prober/+filebug , then tell us the link so that we can follow-up.

    Quote Originally Posted by ugiulio View Post
    4) I tried a new installation of Ubuntu selecting "Other" and performing a manual partioning. The installation ended fine. At the first reboot I was only able to load Ubuntu through the grub2. Here you can read the Boot Info script at that moment http://paste.ubuntu.com/1460627/;
    5) so I performed boot-repair to get back Windows loading at the grub2 shell. After that the Boot Info Script was http://paste.ubuntu.com/1460646/ (os-prober continues to give only "/dev/sda6:Windows Recovery Environment (loader):Windows:chain");
    6) at the next reboot this was what I got at the grub2 options:
    a) ubuntu (that loads correctly Ubuntu OS);
    b) advance options for Ubuntu;
    c) Windows UEFI loader (that loads properly Windwos 8);
    d) Windows Boot UEFI bootx64.efi.bkp (as c);
    e) Windows Recovery Enviroment (loader) (on /dev/sda6) (this gives the following error messages: error: impossible find command'drivemap'; error: invalid EFI file path; press any key to continue (and it comes back to grub2);
    You did everything right.

    Quote Originally Posted by ugiulio View Post
    How can I get working/loading the Windows Recovery Environment? The problem seems to be located in grub2. Have I to re-install grub? (Boot-repair should already have done it?!?!?!?!)
    Yes, Boot-Repair already did it. As said above, the problem is not in GRUB, but in 'os-prober' (which is used by GRUB).

    In your GRUB menu, you should have 3 entries created by Boot-Repair:
    1) "Windows UEFI loader"
    2) "Windows Boot UEFI bootx64.efi.bkp"
    3) "Windows Boot UEFI bootx64.efi.bkp sdb1"

    1) and 2) should both boot Windows.
    3) will probably boot the Windows Recovery. (be careful if you try it, it may break your partition table)

  5. #5
    Join Date
    Oct 2011
    Beans
    9

    Re: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    Hello YannBuntu!
    Quote Originally Posted by YannBuntu View Post
    Please report this bug here: https://launchpad.net/ubuntu/+source/os-prober/+filebug , then tell us the link so that we can follow-up.
    I've just report the bug as you suggested: https://bugs.launchpad.net/ubuntu/+s...r/+bug/1093523

    Quote Originally Posted by YannBuntu View Post
    In your GRUB menu, you should have 3 entries created by Boot-Repair:
    1) "Windows UEFI loader"
    2) "Windows Boot UEFI bootx64.efi.bkp"
    3) "Windows Boot UEFI bootx64.efi.bkp sdb1"

    1) and 2) should both boot Windows.
    3) will probably boot the Windows Recovery. (be careful if you try it, it may break your partition table)
    Yep, 1) and 2) options boot Windows 8 , smoothly. I have no (3) option. As I've written in the first message I got " Windows Recovery Enviroment (loader) (on /dev/sda6)". If I select this option, it gives the following error messages: error: impossible find command'drivemap'; error: invalid EFI file path; press any key to c. I hope I ontinue (and it comes back to grub2);

    Put the bug of os-prober aside for a moment, do you think I could get back the "inaccessible" Windows Recovery Environment via rEFInd, for example?

    Thanks for your help. I hope I submitted the bug in the proper way. Correct me if I've made some mistake.

  6. #6
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Arrow Re: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    Thanks for the bug report.

    Quote Originally Posted by ugiulio View Post
    I have no (3) option.
    My mistake. This one was linked to efi files on your usb stick, so useless.

    Quote Originally Posted by ugiulio View Post
    I got " Windows Recovery Enviroment (loader) (on /dev/sda6)". If I select this option, it gives the following error messages
    This one can't work, it is due to this GRUB bug: https://bugs.launchpad.net/ubuntu/+s...2/+bug/1024383

    Quote Originally Posted by ugiulio View Post
    do you think I could get back the "inaccessible" Windows Recovery Environment via rEFInd, for example?
    Refind will erase GRUB, and i'm not sure if it can help.

    AFAIK, you can simply add a Windows Recovery entry in GRUB by adding the paragraph below at the bottom of the /etc/grub.d/40_custom file of your installed Ubuntu:

    Code:
    menuentry "Windows Recovery UEFI" {
    search --fs-uuid --no-floppy --set=root D0FC-0E9B
    chainloader (\${root})/EFI/Asclepius/bootx64.efi 
    }
    i will try to improve Boot-Repair so that it automatically adds Recovery entries.

    EDIT: done. The last version of Boot-Repair (3.197ppa8) should automatically add an "Other /EFI/Asclepius/bootx64.efi recovery" entry in your GRUB menu.
    Last edited by YannBuntu; December 27th, 2012 at 07:20 PM. Reason: 40_custom instead of 25_custom

  7. #7
    Join Date
    Jun 2007
    Location
    Canada
    Beans
    31
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    Hi, I don't mean to hijack this thread but I seem to be having the exact same problem as ugiulio with my new Ultrabook (S46CA). I can boot into Windows and Ubuntu but not into Windows Recovery.

    I just installed and ran the new version of boot-recovery (boot-sav-extra_3.197~ppa10~quantal_all.deb) and still having the same problem. Here is the result of boot-repair: http://paste.ubuntu.com/1466219/


    And in case it might be of use, here is the content of grub.cfg

    Code:
    #
    # 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,gpt5'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  ca6b5778-6ce5-4b46-b511-24d70cdb1ebd
    else
      search --no-floppy --fs-uuid --set=root ca6b5778-6ce5-4b46-b511-24d70cdb1ebd
    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
      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
    if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
    menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ca6b5778-6ce5-4b46-b511-24d70cdb1ebd' {
    recordfail
    	gfxmode $linux_gfx_mode
    	insmod gzio
    	insmod part_gpt
    	insmod ext2
    	set root='hd0,gpt5'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  ca6b5778-6ce5-4b46-b511-24d70cdb1ebd
    	else
    	  search --no-floppy --fs-uuid --set=root ca6b5778-6ce5-4b46-b511-24d70cdb1ebd
    	fi
    	linux	/boot/vmlinuz-3.5.0-17-generic root=UUID=ca6b5778-6ce5-4b46-b511-24d70cdb1ebd ro   quiet splash $vt_handoff
    	initrd	/boot/initrd.img-3.5.0-17-generic
    }
    submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-ca6b5778-6ce5-4b46-b511-24d70cdb1ebd' {
    	menuentry 'Ubuntu, with Linux 3.5.0-17-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-17-generic-advanced-ca6b5778-6ce5-4b46-b511-24d70cdb1ebd' {
    	recordfail
    		gfxmode $linux_gfx_mode
    		insmod gzio
    		insmod part_gpt
    		insmod ext2
    		set root='hd0,gpt5'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  ca6b5778-6ce5-4b46-b511-24d70cdb1ebd
    		else
    		  search --no-floppy --fs-uuid --set=root ca6b5778-6ce5-4b46-b511-24d70cdb1ebd
    		fi
    		echo	'Loading Linux 3.5.0-17-generic ...'
    		linux	/boot/vmlinuz-3.5.0-17-generic root=UUID=ca6b5778-6ce5-4b46-b511-24d70cdb1ebd ro   quiet splash $vt_handoff
    		echo	'Loading initial ramdisk ...'
    		initrd	/boot/initrd.img-3.5.0-17-generic
    	}
    	menuentry 'Ubuntu, with Linux 3.5.0-17-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-17-generic-recovery-ca6b5778-6ce5-4b46-b511-24d70cdb1ebd' {
    	recordfail
    		insmod gzio
    		insmod part_gpt
    		insmod ext2
    		set root='hd0,gpt5'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  ca6b5778-6ce5-4b46-b511-24d70cdb1ebd
    		else
    		  search --no-floppy --fs-uuid --set=root ca6b5778-6ce5-4b46-b511-24d70cdb1ebd
    		fi
    		echo	'Loading Linux 3.5.0-17-generic ...'
    		linux	/boot/vmlinuz-3.5.0-17-generic root=UUID=ca6b5778-6ce5-4b46-b511-24d70cdb1ebd ro recovery nomodeset 
    		echo	'Loading initial ramdisk ...'
    		initrd	/boot/initrd.img-3.5.0-17-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/25_custom ###
    
    menuentry "Windows UEFI loader" {
    search --fs-uuid --no-floppy --set=root 02F6-23A5
    chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi.bkp
    }
    
    menuentry "Windows Boot UEFI bootx64.efi.bkp" {
    search --fs-uuid --no-floppy --set=root 02F6-23A5
    chainloader (${root})/EFI/Boot/bootx64.efi.bkp
    }
    ### END /etc/grub.d/25_custom ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Windows Recovery Environment (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-1072DD5B72DD45DE' {
    	insmod part_gpt
    	insmod ntfs
    	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  1072DD5B72DD45DE
    	else
    	  search --no-floppy --fs-uuid --set=root 1072DD5B72DD45DE
    	fi
    	drivemap -s (hd0) ${root}
    	chainloader +1
    }
    menuentry 'Windows 8 (loader) (on /dev/sda4)' --class windows --class os $menuentry_id_option 'osprober-chain-B6C4E84CC4E81103' {
    	insmod part_gpt
    	insmod ntfs
    	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  B6C4E84CC4E81103
    	else
    	  search --no-floppy --fs-uuid --set=root B6C4E84CC4E81103
    	fi
    	drivemap -s (hd0) ${root}
    	chainloader +1
    }
    ### 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 ###

    Attached you will find screen captures of the various partitions on sda and sdb

    on sda:
    partition 5 is /
    partition 7 is /home
    partition 8 is /SWAP

    partition 2 is Recovery
    partition 9 is Restore

    Any help is greatly appreciated

    Cheers

    Shoryuken
    Attached Images Attached Images

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    I am not real familiar with Windows 8.

    With Windows 7 there were two recovery partitions. Windows & Vendor.

    Windows called its boot/repair a recovery partition and either booted system or with f8 got you into the repair console. You could make a repairCD from there also, so if you cannot boot you still could make repairs.

    The Vendor recovery was an image of the hard drive as purchased. It could restore system to as purchased as it was just an image not an install DVD set. But it usually allowed you to make a set of DVDs in case you had to restore if hard drive totally failed.

    Which recovery is it that you want to get into?

    Windows 8 UEFI repair USB must be FAT32
    http://social.msdn.microsoft.com/For...-166dddf32205/
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Jun 2007
    Location
    Canada
    Beans
    31
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    Quote Originally Posted by oldfred View Post

    Windows called its boot/repair a recovery partition and either booted system or with f8 got you into the repair console. You could make a repairCD from there also, so if you cannot boot you still could make repairs.

    The Vendor recovery was an image of the hard drive as purchased. It could restore system to as purchased as it was just an image not an install DVD set. But it usually allowed you to make a set of DVDs in case you had to restore if hard drive totally failed.

    Which recovery is it that you want to get into?
    Thanks oldfred,

    I'm trying to get into the repair (F8) partition. Unfortunately ASUS didn't include a tool to make recovery CDs (a search on Google showed a thread where someone with Windows 8 contacted ASUS who confirmed no tools).

    I looked at the link you provided but since I don't have a Windows 8 iso I can't make a bootale flash drive either.

    Cheers

    Shoryuken

  10. #10
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Arrow Re: dualboot (win8+ubunu12.10), grub2, Windows recovery environment

    @shoryuken: i don't see any EFI Recovery file, so your Recovery is probably available only in Legacy mode. This is very different from ugiulio's case, so please create a new thread (then just indicate its link).

Page 1 of 2 12 LastLast

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
  •