GRUB2 solution for dual boot image ( Windows/ Ubuntu)
-
@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!!
-
@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.
-
@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 filed1.partitions
and post contents here.Is the partition layout GPT or old school MBR?
-
@george1421 ok. Thank you
-
@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. -
@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.
-
@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 ? -
@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.
-
@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.
-
@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!!! -
@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.