Jump to content











Photo
- - - - -

Multiboot with Grub2


  • Please log in to reply
14 replies to this topic

#1 BackTime

BackTime
  • Members
  • 6 posts
  •  
    Poland

Posted 07 April 2017 - 12:01 PM

Hi

 

 

I have a problem with adding a Windows OS image for Grub 2 for multiboot pendrive below I am presenting a current post - please help. The idea is to create a single Grub2 menu for both Efi and Uefi

 

I have a problem with adding a Windows OS image for Grub 2 for multiboot pendrive below I am presenting a current post - please help. The idea is to create a single Grub2 menu for both Efi and Uefi

 

menuentry "Instalacja Windows Vista/7/8/8.1/10 " --class winusb {

search --file /bootmgr --set=root
insmod ntldr
ntldr /bootmgr
}
 
 
menuentry "Windows XP" --class icon-xp{
echo "Proszę czekać..."
}
 
menuentry "Windows 8 Live Rescue Disk" --class win8{
echo "Proszę czekać..."
}
 
menuentry "Windows 10 Live Rescue Disk" --class win{
echo "Proszę czekać..."
}

 


Edited by BackTime, 07 April 2017 - 12:01 PM.


#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 6530 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 07 April 2017 - 12:06 PM

You normally boot using

chainloader /xxx/yyy/zzz.EFI

 

You will need the right modules added.



#3 BackTime

BackTime
  • Members
  • 6 posts
  •  
    Poland

Posted 07 April 2017 - 12:36 PM

Thanks for replying in such a layout I have one more question whether there is an option to add next to the options menu option for Grub not for Grub 2 setting an icon that corresponds only to this entry?



#4 steve6375

steve6375

    Platinum Member

  • Developer
  • 6530 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 07 April 2017 - 12:42 PM

Sorry, I don't understand??

What is Grub? Do you mean grub4dos?



#5 BackTime

BackTime
  • Members
  • 6 posts
  •  
    Poland

Posted 07 April 2017 - 12:51 PM

That's exactly what Grub4Dos is for, as well as Grub2 where I can have efi files? How do they create or get from images?


Edited by BackTime, 07 April 2017 - 12:57 PM.


#6 steve6375

steve6375

    Platinum Member

  • Developer
  • 6530 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 07 April 2017 - 01:00 PM

Sorry, I do not understand you?

grub4dos will not work with UEFI.

You must use grub2.

Please ask your questions more clearly.



#7 BackTime

BackTime
  • Members
  • 6 posts
  •  
    Poland

Posted 07 April 2017 - 03:49 PM

Suppose I have a LieWindows 10 PE image file created and now the question of where do I get the efi file? Another question, can you give an example from start to finish for running Windows Live image in Efi and Uefi mode?


Edited by BackTime, 07 April 2017 - 03:50 PM.


#8 steve6375

steve6375

    Platinum Member

  • Developer
  • 6530 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 07 April 2017 - 04:06 PM

If there is a \EFI\BOOT\BOOTX64.EFI file then it supports UEFI booting.

 

If not, then you will have to add the UEFI boot files and BCd, etc.yourself. You can obtain the files from a standard MS ISO.

 

P.S. http://www.easy2boot...things-to-know/ may help.

You also need to Google for how to set up the BCD using BootIce, see

http://www.rmprepusb.com/tutorials/127-make-dual-32-64bit-pe

for help


Edited by steve6375, 07 April 2017 - 04:34 PM.


#9 BackTime

BackTime
  • Members
  • 6 posts
  •  
    Poland

Posted 09 April 2017 - 11:44 AM

For Efi mode, BCD is started, but for UEFI there is no problem. Ntldr.mod file can not be found. Any suggestions ?

 

kej6vo.png

 

Code to run the installer:

 

menuentry "Instalacja Windows " --class winusb {

search --file /boot/bootmgr --set=root
insmod ntldr
ntldr /boot/bootmgr
}

 



#10 nguyentu

nguyentu

    Member

  • Members
  • 62 posts
  •  
    Vietnam

Posted 09 April 2017 - 11:55 AM

Ntldr is used to load WinNT5 ntldr and WinNT6 bootmgr. They do not support UEFI, so this module does not exist on Grub2 EFI. You need to boot into Legacy mode.


#11 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13433 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 09 April 2017 - 12:06 PM

Wait a minute.

Can you describe the difference between EFI and UEFI? :dubbio:

 

:duff:

Wonko



#12 BackTime

BackTime
  • Members
  • 6 posts
  •  
    Poland

Posted 10 April 2017 - 03:38 PM

The idea of ​​the operation itself is that one bootloader used to hold both Efi and Legacy loading on a similar principle as Linux and the following entry - for both entries 1 works the same as linux itself starts. 
 
 
 
 

menuentry "Linux Mint 18 live ISO (32bit)" --class linuxmint {
echo "Proszę czekać..."
set isofile="/ISO/linuxmint-18-cinnamon-32bit.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile
initrd (loop)/casper/initrd.lz
}

 

 

 
 
In this layout I have a question if you can not do this please give sample A to Z for windows installer in Efi for Grub2


#13 Blackcrack

Blackcrack

    Frequent Member

  • Advanced user
  • 309 posts
  •  
    Germany

Posted 12 April 2017 - 03:47 PM

Hi,

 

just a idea/suggestion :

 

we need just an portable Grub2-Manager who works with grub2 for dos and into windows..

a Grub2 and 1 Manager who it is portable and have the rules of Grub into and can therewith

work and configuring from a installed Windows

(into the bootpartition (search and install /update nt bootpartition,Ntldr and bootpart of the Harddisk of Windows and update it))

 

and who can read linuxpartitions and be in able for handle them with fs-modules for grub-manager

and make it possible for boot founded Linuxsystems. (maybe edit the grub-configuration on the linux-partition and config/save it)

 

and manage it with this grafical Gui for Grub 1/2 Into NT.

 

if this can anyone programming, would it securely a really well thing also for WinNt (MS and ReactOS)

because then be we are in able more easily handle that out from WindowsNT

 

best regards

Blacky



#14 memoarfaa

memoarfaa

    Member

  • Members
  • 79 posts
  •  
    Egypt

Posted 12 April 2017 - 11:22 PM

1-rename Windows efi boot file  "efi\boot\bootx64.efi" to  "efi\boot\Winbootx64.efi"

if [ "${grub_platform}" == "efi" ]; then
    menuentry "Instalacja Windows UEFI-GPT"--class winusb {
        search --file /bootmgr --set=root
        insmod part_gpt
        insmod fat
        insmod chain
        chainloader /efi/boot/Winbootx64.efi
    }
fi
if [ "${grub_platform}" == "pc" ]; then
    menuentry "Instalacja Windows " --class winusb {
search --file /bootmgr --set=root
insmod ntldr
ntldr /boot/bootmgr
}
fi

Edited by memoarfaa, 12 April 2017 - 11:40 PM.


#15 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13433 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 13 April 2017 - 10:11 AM

Good :), EFI and UEFI are still the SAME thing, the improbability level got back to "normal"...

 

:duff:

Wonko






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users