Page 1 of 11 123 ... LastLast
Results 1 to 10 of 104

Thread: Confused with grub2-efi / opensuse / win 8

  1. #1
    Join Date
    Jun 2008
    Location
    Stoney Stanton - England
    Posts
    1,103

    Default Confused with grub2-efi / opensuse / win 8

    I trated myself to a new desktop computer yesterday.

    It is my first experience of efi (instead of a bios). The p/c came with windows 8 installed - which I have left on, simply creating some partitions to share data and some empty space for opensuse to install. Ran the opensuse dvd (12.3 m2 64 bit) and it installed fine (once I had turned-off 'secure boot' in the efi settings).

    I selected grub2-efi as the bootloader. My problem was that that the p/c just booted into windows 8. I eventually found a efi setting to make opensuse the default o/s. This starts opensuse fine but with no alternative to load windows instead - without changing the setting in efi back to windows, which is a bit round the houses. I am guessing that it is best to leave opensuse as the defaut efi o/s but to add an entry to the opensuse boot loader to allow windows to start - if selected.

    Although I am fairly fine using opensuse I have always used grub 1 - so do not know where to start? Can anyone please point me in the right direction? I have ran fdisk -l but as efi uses gpt it isn't of much use. I am guessing the relevant entries are:

    sda1 - HPFS/NTFS
    sda2 - EFI boot - Fat
    sda3 - Microsoft Reserved
    sda4 - Win95 FAT32 LBA
    sda5 - Windows drive c - HPFS/NTFS
    sda6-11 are just windows data partitions
    sda12 - EFI boot
    sda13 - / linux
    sda14 - linux swap

    Many thanks

  2. #2
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: Confused with grub2-efi / opensuse / win 8

    UEFI systems usually provide firmware boot menu support. So you can select any of available boot items. You can also set one time boot menu item for the next boot using "efibootmgr -n".

    Hmm ... I wonder how Windows handle suspend-to-disk. Whether it sets BootNext to ensure system is booted into Windows next time. If not, using Linux as default boot option may not be the best choice.

    Currently openSUSE does not support autodetection of other boot loaders on ESP. See https://bugzilla.novell.com/show_bug.cgi?id=775610#c7 for extensive description how you can manually add Windows to boot menu. Hopefully patches to support UEFI systems will be added in time for 12.3.

    You have two ESP on the same disk. That may cause issues with Windows recovery (or general BCD configuration). Did you add it manually or it was automatic suggestion? Could you please install gptfdisk and provide output of "gdisk -l /dev/sda" in tags code, please.

  3. #3
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Confused with grub2-efi / opensuse / win 8

    Quote Originally Posted by arvidjaar View Post
    UEFI systems usually provide firmware boot menu support. So you can select any of available boot items. You can also set one time boot menu item for the next boot using "efibootmgr -n".

    Hmm ... I wonder how Windows handle suspend-to-disk. Whether it sets BootNext to ensure system is booted into Windows next time. If not, using Linux as default boot option may not be the best choice.

    Currently openSUSE does not support autodetection of other boot loaders on ESP. See https://bugzilla.novell.com/show_bug.cgi?id=775610#c7 for extensive description how you can manually add Windows to boot menu. Hopefully patches to support UEFI systems will be added in time for 12.3.

    You have two ESP on the same disk. That may cause issues with Windows recovery (or general BCD configuration). Did you add it manually or it was automatic suggestion? Could you please install gptfdisk and provide output of "gdisk -l /dev/sda" in tags code, please.
    What would be the procedure to boot openSUSE from a GPT partitioned disk? How do you create a ESP partition? I see that its is said to be FAT, but what FAT is it in the openSUSE Partitioner? So there are two basic problems. How might you install openSUSE to an existing GPT disk, forgetting for the moment about Windows being there and be able to boot from a GPT hard disk. But more important to me, is how you would install openSUSE to a GPT disk, with our standard tools and get it to boot? I assume you have a UEFI compatible computer and that secure boot is turned off. I see lots of lip service to be able to use a GPT disk, and indeed the kernel can read and write to an existing GPT partitioned disk, but no specific instructions in the most basic setup to make this work with the standard openSUSE 12.2 installation disk. The different possibilities are endless I know. But assume these very basic steps:

    1. You have a UEFI compatible PC.
    2. You are not using Secure Boot.
    3. You have an existing GPT hard disk setup and it must remain GPT. You may create it as you wish before the install.
    4. You can create and remove Partitions as you desire to install openSUSE within the normal GPT setup, but you are not reverting to a MBR setup.
    5. You will install openSUSE 12.2 from the standard DVD.
    6. When complete, you are booting openSUSE from a GPT disk in a EFI based PC with openSUSE 12.2.

    Can this be done? But more importantly, what would be the blow by blow, step by step instructions? If you can't get this to work, then nothing else matters in my opinion and indeed for openSUSE 12.3 to remain relevant, this has got to work. We can and will blame all sorts of other things on Windows, which is OK, but we have to have our own way of doing this. So, can you fulfill my request? By the way, please_try_again has such instructions, but I don't find VFAT as a choice in openSUSE for the ESP. Consider that this has to be using openSUSE or you specify the EXACTLY what tools are to be used.

    Thank You for using openSUSE,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  4. #4
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: Confused with grub2-efi / opensuse / win 8

    Quote Originally Posted by jdmcdaniel3 View Post
    What would be the procedure to boot openSUSE from a GPT partitioned disk?
    Do you ask me? You do not need to do anything, default installation will work. What I mentioned was corner case which I expected was fixed as per https://bugzilla.novell.com/show_bug.cgi?id=781689. That was reason for my question.

    I will test dual boot once more with 12.3M3.

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Confused with grub2-efi / opensuse / win 8

    On 2013-01-01 17:46, jdmcdaniel3 wrote:

    > What would be the procedure to boot openSUSE from a GPT partitioned
    > disk? How do you create a ESP partition?


    There is some description in the wikipedia UEFI article, booting section.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

  6. #6
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Confused with grub2-efi / opensuse / win 8

    Quote Originally Posted by arvidjaar View Post
    Do you ask me? You do not need to do anything, default installation will work. What I mentioned was corner case which I expected was fixed as per https://bugzilla.novell.com/show_bug.cgi?id=781689. That was reason for my question.

    I will test dual boot once more with 12.3M3.
    Yes, the question is yours. Now I am not picking on you in any way. But if you have knowledge on how this (GPT disk booting & partitioning) works, lets have it. So the default does not work for me, but that may be because my setup has too many disks. How do you, using custom partitioning, create a booting setup on a GPT disk? Is it as simple as creating a small FAT partition (32 bit?, 500 mb?) and in the booting section, select that as the boot partition? When you say it happens by default, that is only true perhaps if you have only one GPT disk I assume. By default is one thing, understand how to do it manually is another. If you can't describe it manually, then likely, by default is going to fail for you, a lot.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  7. #7
    Join Date
    Jun 2008
    Location
    Stoney Stanton - England
    Posts
    1,103

    Default Re: Confused with grub2-efi / opensuse / win 8

    Thanks very much for the posts. Most apprecaited.

    Well I have installed gptfdisk and the output of "gdisk -l /dev/sda is:

    Number Start (sector) End (sector) Size Code Name
    1 2048 1023999 499.0 MiB 2700 Basic data partition
    2 1024000 1228799 100.0 MiB EF00 EFI system partition
    3 1228800 1490943 128.0 MiB 0C01 Microsoft reserved part
    4 1490944 3588095 1024.0 MiB FFFF Basic data partition
    5 3588096 229038079 107.5 GiB 0700 Basic data partition
    6 229038080 685393919 217.6 GiB 0700 Basic data partition
    7 685395968 1094995967 195.3 GiB 0700 Basic data partition
    8 1094995968 1299793919 97.7 GiB 0700 Basic data partition
    11 1827692544 1953521663 60.0 GiB 0700 Basic data partition
    12 1304702976 1305040895 165.0 MiB EF00 primary
    13 1305040896 1827692543 249.2 GiB 0700 primary
    14 1300123648 1304334335 2.0 GiB 0700 primary



    I had a go at altering the menu to add windows to the grub2-efi menu as per:

    https://bugzilla.novell.com/show_bug.cgi?id=775610#c7

    But no joy.

    By way of background the opensuse dvd installed in a fairly normal way (the only thing that I noticed was that the windows partitions were not automatically mounted - which is straight forward to do manually). I have left suitable empty space on my hard disc (sda) and left the install to set up suitable partitions.

    There is no real problem in booting either system - it is just a bit of a faff having to go into the efi/bios settings everytime to change the o/s choice. Just used to grub 1 were a windows boot option is automatically included.

  8. #8
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Confused with grub2-efi / opensuse / win 8

    Quote Originally Posted by dth2 View Post
    Thanks very much for the posts. Most apprecaited.

    Well I have installed gptfdisk and the output of "gdisk -l /dev/sda is:

    Number Start (sector) End (sector) Size Code Name
    1 2048 1023999 499.0 MiB 2700 Basic data partition
    2 1024000 1228799 100.0 MiB EF00 EFI system partition
    3 1228800 1490943 128.0 MiB 0C01 Microsoft reserved part
    4 1490944 3588095 1024.0 MiB FFFF Basic data partition
    5 3588096 229038079 107.5 GiB 0700 Basic data partition
    6 229038080 685393919 217.6 GiB 0700 Basic data partition
    7 685395968 1094995967 195.3 GiB 0700 Basic data partition
    8 1094995968 1299793919 97.7 GiB 0700 Basic data partition
    11 1827692544 1953521663 60.0 GiB 0700 Basic data partition
    12 1304702976 1305040895 165.0 MiB EF00 primary
    13 1305040896 1827692543 249.2 GiB 0700 primary
    14 1300123648 1304334335 2.0 GiB 0700 primary



    I had a go at altering the menu to add windows to the grub2-efi menu as per:

    https://bugzilla.novell.com/show_bug.cgi?id=775610#c7

    But no joy.

    By way of background the opensuse dvd installed in a fairly normal way (the only thing that I noticed was that the windows partitions were not automatically mounted - which is straight forward to do manually). I have left suitable empty space on my hard disc (sda) and left the install to set up suitable partitions.

    There is no real problem in booting either system - it is just a bit of a faff having to go into the efi/bios settings everytime to change the o/s choice. Just used to grub 1 were a windows boot option is automatically included.
    So I do not have an answer to this problem and by all means, I thank you for sharing the situation. Perhaps it will inspires those in the know to provide a real solution.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  9. #9
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: Confused with grub2-efi / opensuse / win 8

    Quote Originally Posted by dth2 View Post
    But no joy.
    And what does it mean? You do not have Windows in boot menu, you have it but it does not boot or you just have bad day? Please, explain what you did and what does not work. Otherwise it is impossible to help.

  10. #10
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: Confused with grub2-efi / opensuse / win 8

    Quote Originally Posted by jdmcdaniel3 View Post
    So the default does not work for me,
    Do you use UEFI boot or legacy BIOS boot? UEFI installation definitely works using default installer settings. Legacy BIOS installation with GPT does have issue - it by default installs bootloader in partition, same as in MBR case, but there is no partition to mark as active ...

    It would help if you gave some more details, whether you use BIOS or UEFI and what exactly does not work.

Page 1 of 11 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •