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

GRUB2 solution for dual boot image ( Windows/ Ubuntu)

Scheduled Pinned Locked Moved Solved
Linux Problems
4
24
3.8k
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.
  • M
    marted @Sebastian Roth
    last edited by marted Nov 21, 2019, 5:23 AM Nov 21, 2019, 11:00 AM

    @Sebastian-Roth no, it’s primary partition. The disk was separated before installation on three partitions 100M/300G/100G.(grub2/Windows/Ubuntu) For example the same disk cloned with Clonezilla works fine when you deploy on other computer but like I said Clonezilla reinstall (repair) grub at the end of cloning, FOG not.
    In wiki it’s written that FOG doesn’t support grub2.
    Is this still valid for the version now?
    If yes why it supports grub but not grub2? Where is the problem?

    G 1 Reply Last reply Nov 21, 2019, 11:08 AM Reply Quote 0
    • G
      george1421 Moderator @marted
      last edited by Nov 21, 2019, 11:08 AM

      @marted said in GRUB2 solution for dual boot image ( Windows/ Ubuntu):

      100M/300G/100G.(grub2/Windows/Ubuntu

      Can you explain the steps you used to create this type of disk configuration. Windows itself will not allow only one partition for all of its bits to work correctly (unless your windows version is XP). With Windows 10 you should always have 3 partitions. (I understand it worked before with Clonezilla). 1) boot (which grub can do) 2) System reserved. 3) OS Disk. You can usually discard the recover partition and that would be #4.

      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!

      M 1 Reply Last reply Nov 21, 2019, 1:01 PM Reply Quote 0
      • M
        marted @george1421
        last edited by Nov 21, 2019, 1:01 PM

        @george1421 I install windows and manually delete partitions and leave only the boot and windows OS and after I create third one for example fat32 which when I install Ubuntu I format to ext4. During the Linux installation grub is installed on first partition efi mounted like /boot

        1 Reply Last reply Reply Quote 0
        • M
          marted @Sebastian Roth
          last edited by Nov 21, 2019, 1:20 PM

          @Sebastian-Roth Can you explain why grub2 is not supported in FOG and need to be downgraded to grub?
          I red this in fogwiki .

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Nov 21, 2019, 2:55 PM

            @marted said in GRUB2 solution for dual boot image ( Windows/ Ubuntu):

            I red this in fogwiki .

            Please post the wiki link here so we know what you mean.

            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

            M 1 Reply Last reply Nov 21, 2019, 4:54 PM Reply Quote 0
            • M
              marted @Sebastian Roth
              last edited by Nov 21, 2019, 4:54 PM

              @Sebastian-Roth https://wiki.fogproject.org/wiki/index.php/Client_Setup#Dual_boot_Images

              it says : The installation is a standard Linux installation, but the default grub is not supported, so we downgrade to grub-legacy.

              T 1 Reply Last reply Nov 21, 2019, 5:12 PM Reply Quote 0
              • T
                Tom Elliott @marted
                last edited by Nov 21, 2019, 5:12 PM

                @marted Yeah, that is an article created January of 2013. Using a dual OS system for that period of time (Ubuntu 11 and Windows 7).

                Maybe that was true for whomever created the original article, but have you tried running this for yourself?

                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                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

                M 1 Reply Last reply Nov 22, 2019, 12:59 AM Reply Quote 0
                • M
                  marted @Tom Elliott
                  last edited by marted Nov 21, 2019, 7:05 PM Nov 22, 2019, 12:59 AM

                  @Tom-Elliott I’ve never tried it, but I want to try a simple installation first windows and after that ubuntu without touching the partitions, I’ll see if it work. If not I’ll check the solution proposed in the wiki to downgrade grub to legacy. I’ll post my results here soon.

                  I came across other issues. I tried to activate https SSL and my pxe doesn’t boot anymore and the web access got certification problem (not trusted). I saw a lot here in the forum about that but still can not find a place here where it is explained step by step how to activate SSL and got it to work well with iPXE https and access web trusted certificates. Maybe I missed it, but if you can guide me on how to do it I’ll be so helpful.
                  Thanks again for all your help!!
                  Capture d’écran, le 2019-11-21 à 20.04.24.png

                  G 1 Reply Last reply Nov 22, 2019, 2:46 AM Reply Quote 0
                  • G
                    george1421 Moderator @marted
                    last edited by Nov 22, 2019, 2:46 AM

                    @marted said in GRUB2 solution for dual boot image ( Windows/ Ubuntu):

                    I came across other issues. I tried to activate https SSL and my pxe doesn’t boot anymore and the web access got certification problem (not trusted). I saw a lot here in the forum about that but still can not find a place here where it is explained step by step how to activate SSL and got it to work well with iPXE https and access web trusted certificates. Maybe I missed it, but if you can guide me on how to do it I’ll be so helpful.

                    Mod Note: Please start a new thread for this since the issue doesn’t match the title of the thread.

                    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!

                    M 1 Reply Last reply Nov 22, 2019, 11:00 AM Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by Sebastian Roth Nov 21, 2019, 11:41 PM Nov 22, 2019, 5:40 AM

                      @marted Yes, some of the wiki content is really old and the mentioned article is not up to date.

                      Though we do try to keep up with many things it’s possible that Windows/Ubuntu dual boot cloning is broken at the moment. I have not tested this myself in quite a while. But let’s try to grab all the details and I am sure we can make it work for you or fix FOG.

                      Please run ls -alR /images on your FOG server and post output here. As well go to the /images/IMAGENAME folder, get the text file d1.partitions and post contents here.

                      Is the partition layout GPT or old school MBR?

                      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

                      M 1 Reply Last reply Nov 22, 2019, 11:08 AM Reply Quote 0
                      • M
                        marted @george1421
                        last edited by Nov 22, 2019, 11:00 AM

                        @george1421 ok. Thank you

                        1 Reply Last reply Reply Quote 0
                        • M
                          marted @Sebastian Roth
                          last edited by Nov 22, 2019, 11:08 AM

                          @Sebastian-Roth thank you so much. Tell me how you want me to take the image , like Linux OS or Others?
                          I’ll make a new image after installed a fresh copy windows/Ubuntu and will post the information today.

                          G 1 Reply Last reply Nov 22, 2019, 12:14 PM Reply Quote 0
                          • G
                            george1421 Moderator @marted
                            last edited by Nov 22, 2019, 12:14 PM

                            @marted I have not created a dual boot system in a very long time, but with windows 10 and Ubuntu, I would start out by installing windows 10, use the advanced disk options so you can manually set the size of the 😄 drive to be less than the entire disk. The space you leave unallocated will be for ubuntu. Once windows is installed and happy then boot with an alternate live OS and remove the recovery partition. Since you are using FOG there is no real reason for the recovery partition. Then install ubuntu side by side with windows. If I remember correctly ubuntu will install grub on the boot partition replacing windows boot loader merging the windows boot loader into grub to make the dual boot environment. Once you have a working golden image fog should clone this. It should work rather well if the system is uefi based because the boot up logic is a bit simpler than bios mode.

                            If by chance you need to make changes to grub during deployment you should be able to do what is needed with a post install bash shell script.

                            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!

                            M 1 Reply Last reply Nov 22, 2019, 12:58 PM Reply Quote 0
                            • M
                              marted @george1421
                              last edited by Nov 22, 2019, 12:58 PM

                              @george1421 thanks. I’ll do that today and will post the results.
                              Could you tell me more about post install script? If for example I want to repair grub at the end of the cloning image how to run a post installation script? I saw a folder in /images with that name. It should be bash or sh script ?

                              G 1 Reply Last reply Nov 22, 2019, 1:22 PM Reply Quote 0
                              • G
                                george1421 Moderator @marted
                                last edited by Nov 22, 2019, 1:22 PM

                                @marted Well I can’t tell you what to repair in grub because we don’t know what is damaged at the moment. But FOG has the ability to call an external bash script that is executed on the target computer. In my environment (Windows mainly) I use this external script to copy hardware specific drivers to the 😄 drive of the target system also to update the unattend.xml file on the target computer with the target computer’s system name and calculated OU location. So the bash script has the ability to mount partitions on the target computer after the image has been deployed by fog, but before the target OS boots for the first time on the target computer. I have a number of tutorials in the tutorial forum on post install scripts. They are windows focused but could also apply to linux target systems too.

                                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 22, 2019, 1:53 PM

                                  @marted said in GRUB2 solution for dual boot image ( Windows/ Ubuntu):

                                  thank you so much. Tell me how you want me to take the image , like Linux OS or Others?
                                  I’ll make a new image after installed a fresh copy windows/Ubuntu and will post the information today.

                                  There is no need to make a new image. Start by posting the information requested and we can start working on it.

                                  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

                                  M 1 Reply Last reply Nov 22, 2019, 9:58 PM Reply Quote 0
                                  • M
                                    marted @Sebastian Roth
                                    last edited by Nov 22, 2019, 9:58 PM

                                    @Sebastian-Roth it works now 🙂 when I rebuild an image with clean windows and Ubuntu without touching windows partitions just I made a partition for Ubuntu.
                                    Just now I need to figer out how to delete the windows boot manager and keep only grub2 , but the image was deployed to the other machine without ANY problems!!!

                                    1 Reply Last reply Reply Quote 1
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Sebastian Roth Nov 23, 2019, 4:45 AM Nov 23, 2019, 10:43 AM

                                      @marted Let us know if you need any further assistance. Please describe exactly when steps you take! Not just “delete the windows boot manager and keep only grub2” but give us all the details like commands and such! It seems you are preparing a very custom setup here and we need to know all the details to be able to help you.

                                      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
                                      • 1
                                      • 2
                                      • 2 / 2
                                      2 / 2
                                      • First post
                                        16/24
                                        Last post

                                      219

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project