• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Dual Images windows 10 and Ubuntu 16 with UEFI

Scheduled Pinned Locked Moved Solved
Linux Problems
6
35
9.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    Fernando Gietz Developer
    last edited by Nov 14, 2017, 2:55 PM

    I have deployed twice the computer with the dual image and now the grub appears at the first time O_o

    G 1 Reply Last reply Nov 14, 2017, 3:12 PM Reply Quote 0
    • G
      george1421 Moderator @Fernando Gietz
      last edited by Nov 14, 2017, 3:12 PM

      @fernando-gietz OK what did you change? Magic only happens on Television.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      1 Reply Last reply Reply Quote 0
      • F
        Fernando Gietz Developer
        last edited by Nov 14, 2017, 3:14 PM

        No, any change. The only change was the bcdedit command (following the tutorial that you attached)

        G 1 Reply Last reply Nov 14, 2017, 3:42 PM Reply Quote 0
        • G
          george1421 Moderator @Fernando Gietz
          last edited by Nov 14, 2017, 3:42 PM

          @fernando-gietz Just for clarity and those who will be doing the same as you: Did you run that command before you recaptured the reference image, or did you add that bcdedit command to the setupcomplete.cmd file?

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          F 1 Reply Last reply Nov 14, 2017, 3:47 PM Reply Quote 0
          • F
            Fernando Gietz Developer @george1421
            last edited by Nov 14, 2017, 3:47 PM

            @george1421 I have recaptured the image.

            • Install W10
            • Install Ubuntu 16
            • Boot under W10 and run the bcdedit command
            • Capture the image
            G 1 Reply Last reply Nov 14, 2017, 3:52 PM Reply Quote 1
            • G
              george1421 Moderator @Fernando Gietz
              last edited by Nov 14, 2017, 3:52 PM

              @fernando-gietz Very, very, nice.

              You can fix it on the front end and then not worry post imaging. That info will help everyone who need to create a dual boot system. Thank you.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Nov 14, 2017, 5:51 PM

                @george1421 Although I haven’t tested yet I am fairly sure that the “fix” won’t work.

                @Fernando-Gietz Please deploy that image to a completely different machine, one you have never deployed this image to before. I am fairly sure it won’t have the Ubuntu boot menu entry.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                G F 2 Replies Last reply Nov 14, 2017, 5:55 PM Reply Quote 0
                • G
                  george1421 Moderator @Sebastian Roth
                  last edited by Nov 14, 2017, 5:55 PM

                  @sebastian-roth said in Dual Images windows 10 and Ubuntu 16 with UEFI:

                  Although I haven’t tested yet I am fairly sure that the “fix” won’t work.

                  Hmmm… I’m thinking that it will work since the change was made “inside windows” and not by external evil “linux” forces. But who really knows…

                  I might also see the change possibly being reverted if he was deploying Windows 10 CBB, on the next refresh.

                  I think only time will tell of this “hack” is forever or until the next reboot.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Nov 14, 2017, 10:51 PM

                    @george1421 said in Dual Images windows 10 and Ubuntu 16 with UEFI:

                    I think only time will tell of this “hack” is forever or until the next reboot.

                    From my point of view the “hack” should be persistent (at least till the next major Windows update but maybe even beyond that) on that very same machine because bcdedit adds the entry to the NVRAM. But this is not what we transfer to other machines when we capture and deploy and image from/to disk…

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    G 1 Reply Last reply Nov 14, 2017, 11:48 PM Reply Quote 1
                    • G
                      george1421 Moderator @Sebastian Roth
                      last edited by Nov 14, 2017, 11:48 PM

                      @sebastian-roth said in Dual Images windows 10 and Ubuntu 16 with UEFI:

                      because bcdedit adds the entry to the NVRAM

                      Ah, now I see the picture, and its clear.

                      So the only solid solution is running that command in the windows environment. I was under the impression that the command altered something in the media that would be captured by FOG. So possibly a better solution would be to execute that bcdedit command via a FOG snapin.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Nov 15, 2017, 12:09 AM

                        @george1421 said in Dual Images windows 10 and Ubuntu 16 with UEFI:

                        So the only solid solution is running that command in the windows environment.

                        No I think you should be able to use the efibootmgr command to do essentially the same thing from a running Linux system like FOS for example.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        1 Reply Last reply Reply Quote 0
                        • F
                          Fernando Gietz Developer @Sebastian Roth
                          last edited by Fernando Gietz Nov 15, 2017, 6:02 AM Nov 15, 2017, 11:57 AM

                          @sebastian-roth I have deployed the dual image to a different machine and … surprise! You are right, the machine boot directly under W10, in the next appears the grub and the posibility to boot under Ubuntu.

                          I have found a link about NVRAM, I suppose that will be a lot of them but was the first entry in google 🙂 :

                          Understanding UEFI variables: http://en.community.dell.com/techcenter/os-applications/f/4457/t/19589262

                          1- What all information is stored in UEFI VARIABLES?
                          
                          All configuration setup, vendor information, language information, input/output console, error console, and boot order setting all these information are stored in these variables
                          
                           
                          
                          2- How to get NVRAM variables
                          
                          You can use UEFI bootable USB to boot the server. You need to have supported files which can give you UEFI shell once server boot from USB. Once you got the UEFI shell you can run UEFI command "dmpstore" to see the variable available in NVRAM. For more options or help just type “? dmpstore”.  If you have Linux installed before in same server in UEFI mode. You can access the EFI partition. Give this command in UEFI shell "FS0:" Now your “/boot/efi “partition is mounted. You can see the content of this volume using ls/dir command. "dmpstore -all > myvariables"  will collect all NVRAM variable to EFI partition. When you reboot your Linux box you will see this file in your /boot/efi location.
                          
                           
                          
                          3- Analysis of variables
                          
                          You will see lot of entries in the dump file. Variable name, access, data and many more. We will use this example:
                          
                          Variable NV+RT+BS 'Efi:ConOut' DataSize = 36
                          
                          This tells that Variable name is Console output which data size is 0X36 in HEX
                          
                          . This variable is available at runtime (RT) and boot time (BS).
                          
                          Runtime variable which are available after OS booted and boot time which are available before
                          
                          OS boot.
                          
                          4- Mapping of UEFI variables from BIOS to Linux OS.
                          
                          You can see all these variables are mapped from Linux OS.UEFI variables are mapped through sys entry. Just see to this location /sys/firmware/efi/efivars . It will have all variables which was available in dump file.
                          
                          All these variables depend on efivarfs kernel modules. If this module is not available you cannot access the variables. It is mounted as  efivarfs file system on /sys/firmware/efi/efivars.
                          
                           
                          
                           
                          
                          Parmeshwr_Prasad
                          
                          Linux Engineer
                          
                          Dell Inc (Bangalore)```
                          1 Reply Last reply Reply Quote 1
                          • F
                            Fernando Gietz Developer
                            last edited by Nov 21, 2017, 5:03 PM

                            I have made a test.

                            I have download a dual image, in the first boot W10 like we expect, in the second boot appears the grub menu. The UEFI variables are updated by W10.

                            If you download an image with only Linux, then the computer doesn’t detect any OS and dones’t boor. You need repair the boot or update the UEFI variables to rebirth the computer.

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Nov 21, 2017, 9:27 PM

                              @fernando-gietz said in Dual Images windows 10 and Ubuntu 16 with UEFI:

                              You need repair the boot

                              It’s not actually a repair! It’s just something a new computer doesn’t know about yet and FOG is not able to capture and deploy this piece of information yet.

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              1 Reply Last reply Reply Quote 0
                              • R
                                renanserrou
                                last edited by Nov 5, 2021, 4:37 PM

                                Hello, I came to this topic because I was having this same issue with some new Dell computers that arrived here where I work, in my case I didn’t needed to repair the grub, but I could solve this by changing some bios configuration where there’s a option to add uefi boot option and there appears the .efi file of the grub and mark it to boot first. Hope it helps!

                                1 Reply Last reply Reply Quote 0
                                • 1
                                • 2
                                • 2 / 2
                                • First post
                                  Last post

                                245

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project