Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Windows 10 and Phoenix OS dual boot - troubles with GRUB

  1. #11
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Windows 10 and Phoenix OS dual boot - troubles with GRUB

    The grub.cfg file in /EFI/ubuntu or /EFI/phoenix?
    Or the full grub.cfg in your install?

    The grub in the ESP is just a configfile entry to point to a full grub.cfg in your install.

    If wanting to modify grub.cfg in your install, often easiest to just copy a boot stanza you know works into 40_custom.
    sudo nano /etc/grub.d/40_custom

    How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan
    https://help.ubuntu.com/community/Ma...tomGrub2Screen
    https://help.ubuntu.com/community/Grub2/CustomMenus
    http://ubuntuforums.org/showthread.php?t=2076205
    https://help.ubuntu.com/community/Grub2/Displays
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  2. #12
    Join Date
    Jun 2015
    Beans
    49

    Re: Windows 10 and Phoenix OS dual boot - troubles with GRUB

    Okay - I am really close now.

    The laptop boots to a grub screen and I can now go into windows 10 with no issues.

    But the grub.cfg menu entry for the kernel and intrd.img are incorrectly pointed (I think) to boot the Phoenix OS

    I have new photos here: https://www.dropbox.com/sh/wltrlv2ue...KRx5lyVAa?dl=0

    Current grub menu
    set timeout=3

    menuentry 'Phoenix OS' --class android-x86 {
    search --set=root --file /efi/PhoenixOS/kernel
    linux /efi/PhoenixOS/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 SRC=/PhoenixOS vga=788
    initrd /efi/PhoenixOS/initrd.img
    }
    menuentry "Windows (UEFI)" {
    search --set=root --file /EFI/Microsoft/Boot/bootmgfw.efi
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
    }

    do I change "...set=root--file /sda5/kernel or something?

    Thanks again in advance for any help!
    Frank

  3. #13
    Join Date
    Jun 2015
    Beans
    49

    Re: Windows 10 and Phoenix OS dual boot - troubles with GRUB

    Following Einstein's example... I now know another thing that doesn't work...

    OldFred - Sorry I didn't see your post earlier.
    The grub.cfg file is in SDA1 a vfat partition at the beginning of the internal hard drive.
    It is in EFI/Boot i think. There are no other grub files like
    /etc/grub.d/40_custom or any other common grub files. I have been doing all of this editing via an install of peppermint on a usb thumb drive.


    The entry that is stuck in this grub.cfg file is:
    menuentry 'OPhoenix OS.1.efi.boot' --class android-x86 {
    search --set=root --file /efi/PhoenixOS/kernel
    linux /efi/PhoenixOS/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 SRC=/PhoenixOS vga=788
    initrd /efi/PhoenixOS/initrd.img
    }
    The above does not boot anything but doesn't throw any errors.

    Just trying to remember how the old school format was I typed in:
    menuentry 'Phoenix OS.1.efi.boot' --class android-x86 {
    set root='(hd0,4)
    l inux /kernel root=dev/sda5
    initrd /initrd.img
    }

    But that faults out grub and brings you to the grub bash menu.

    On SDA5 is the phoenix kernel and initrd.img files right at the root. I could move them or rename?

    By the way - The windows entry works :
    menuentry "Windows (UEFI)" {
    search --set=root --file /EFI/Microsoft/Boot/bootmgfw.efi
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
    }

    Thanks for any and all hints!
    Frank
    Last edited by frank105; March 27th, 2017 at 09:01 PM.

  4. #14
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Windows 10 and Phoenix OS dual boot - troubles with GRUB

    It looks like Phoenix installs all the boot into the ESP.
    Do you have this, with kernel & initrd? /efi/PhoenixOS

    Since that is not using grub but directly booting from UEFI, you would have to use UEFI's boot menu or f10 or f12 to choose what to boot.
    Is Phoenix normally just installed to one FAT32 partition? So all of system is in the ESP, used just for booting with Windows or Linux?
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #15
    Join Date
    Jun 2015
    Beans
    49

    Re: Windows 10 and Phoenix OS dual boot - troubles with GRUB

    Hmm... I think that Grub thinks /efi/PhoenixOS is where the kernel and initrd are.

    But they really are at sda5 in the root of that directory. Both files are there and they work. I just don't know how to manually build a menuentry into grub to point directly there. I think I have read too much stuff and nothing seems to make sense anymore. But I know how to get the blkid so if you can just point me to what the menu entry would be I think we will push this over the edge and make it a winner.

    I am not sure how I got it to happen but windows is booting the grub.cfg in sda1 and I know how to edit it. All other files I can get to and if I hit esc (HP uses esc instead of f10 in my case) I can boot those other files - but none of them work either. So since I know where the default boot file is, it really doesn't matter. If I figure out how to make a menuentry for sda5 I will be good to go.

    Can you help me build a menuentry do boot sda5?

    Thanks a bunch,
    Frank

  6. #16
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Windows 10 and Phoenix OS dual boot - troubles with GRUB

    You cannot mix UEFI & BIOS boot.
    Once you start booting in one mode you cannot change.

    I have many examples of both BIOS boot stanza or UEFI boot stanza (most just a chain into ESP), but none for any type of Android system.

    You Phoenix has to install boot files in UEFI mode, and it seems then they all are in the ESP - FAT32 partition, so UEFI can see it to boot. But you only can have one ESP per device. Or hide one (turn off boot flag) and unhide before rebooting into other system.

    If BIOS and other installs are UEFI, then you only can boot from UEFI boot menu, not from grub as then you have started booting in UEFI mode.

    This mentions it is 32 bit only?
    https://www.hitricks.com/en/guide-ho...pc-uefi-legacy

    This says you put Phoenix boot files inside the Ubuntu /(root) partition?
    http://www.techbian.com/install-dual...os-and-ubuntu/
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #17
    Join Date
    Jun 2015
    Beans
    49

    Re: Windows 10 and Phoenix OS dual boot - troubles with GRUB

    I flew too close to the sun and was playing fast and loose with my Peppermint Linux usb boot stick and... Messed up too many things.

    I gave up and reinstalled windows 10 and I am betting Phoenix will install without troubles.

    Thanks Old Fred for hanging in there.

    Regards,
    Frank

  8. #18
    Join Date
    Jul 2014
    Beans
    26

    Re: Windows 10 and Phoenix OS dual boot - troubles with GRUB

    Hi Frank and Oldfred, not to butt in, but I have a reverse problem to the one Frank is facing: Windows 10 boot menu is wrong and boots to windows recovery instead of going to windows desktop. ASUS ROG G551VW with UEFI GPT partitioning and factory installed windows 10 64bit. Ubuntu 16.04 installed secondary on sda5.

    I need help editing grub and correct the windows 10 grub entry, can you two help me on that since Frank have a working windows 10 entry?

    Ubuntu 16.04 boots just fine.

    Oldfred - boot-repair does not work with 16.xx. When running it, it will give you commands to paste into terminal and these commands are depreceated so they will fail, then boot-repair can't continue and you can only chose discard which will remove grub totally from the system and delete most files needed to repair or re-install grub - it's a nightmare I had to deal with yesterday - trying to manually re-install grub running from live media fails because boot-repair removed the needed files including grub-install, grub-common, grub-pc, /etc/default/grub /boot/grub/grub.cfg, 40_custom and so on. Supergrub2 disc saved me and re-installed grub but only partially - /etc/default/grub /boot/grub/grub.cfg, 40_custom is still missing. So I got /etc/default/grub /boot/grub/grub.cfg from my own pc and it seem to be the same. Point being, don't use boot-repair with 16.xx.

    grub customizer indicating missing files
    https://www.dropbox.com/s/p0hiheko4uwc39b/IMG_20170408_213421.jpg?dl=0

    grub windows 10 not working entry
    https://www.dropbox.com/s/iu94zgtd04zdffw/IMG_20170408_215354.jpg?dl=0

    Current partition table
    https://www.dropbox.com/s/52wpanh4mc...15846.jpg?dl=0

    EDIT: made a thread of my own here: https://ubuntuforums.org/showthread....3#post13631003
    Last edited by Jan_Johansson; April 9th, 2017 at 10:19 AM.

Page 2 of 2 FirstFirst 12

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
  •