Jump to content











Photo
- - - - -

easy2boot grub4dos help

easy2boot grub4dos windows help boot

  • Please log in to reply
5 replies to this topic

#1 RogueCraft

RogueCraft
  • Members
  • 3 posts
  •  
    United States

Posted 21 September 2015 - 06:09 AM

I used easy2boot for the first time today in order to set up a multiboot tool for running diagnostics on windows machines (both legacy and uefi).

 

I took an unallocated 128gb ssd and used RMPrepUSB to create a 16gb partition. Installed easy2boot & loaded up all the ISOs I wanted on there.

 

Then I took another HDD that had two 20gb partitions on it. One has gnome-ubuntu 15.04 installed, the other has windows 7 installed. I used a partition cloning tool, and cloned those 2 partitions to the SSD. I also added a 1gb swap partition at the end. I extended the windows 20gb partition to 74.7gb to fill the rest of my space.

 

So my 128gb SSD has: 16gb easy2boot, 20gb gnome-ubuntu, 74gb windows 7, 1gb swap.

 

My question is, how can I add boot entries to easy2boot (which uses grub4dos) to boot the gnome-ubuntu (hd0,4) and windows 7 (hd0,5)?

 

any help is appreciated.



#2 steve6375

steve6375

    Platinum Member

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

Posted 21 September 2015 - 08:15 AM

You need to add .mnu files.

 

If the partitions still have valid boot code in them, you can boot to them just using chainloader

 

e.g.  

title Bootmgr
chainloader (hd0,5)+1

title Ubuntu
chainloader (hd0,4)+1

or try

title Bootmgr
find --set-root /bootmgr
chainloader /bootmgr

However, you have probably broken the boot code for Ubuntu by cloning it.

If so, you will need to re-install grub to the PBR (not grub4dos) to boot Ubuntu and then install grub4dos to the MBR if required.

 

see http://www.rmprepusb...nload-syslinux for more examples

 

Alternatively, you could add a menu entry to boot ubuntu from grub4dos. Find the Ubuntu grub.cfg file and translate it into grub4dos kernel and initrd commands.  

OR you could try finding and loading grub like this

title Boot grub2 from partition hd0,4 \n Boot to core.img
root (hd0,4)
if exist /boot/grub/i386-pc/core.img kernel /boot/grub/i386-pc/core.img && boot
if exist /boot/grub/core.img kernel /boot/grub/core.img && boot
if exist /grub2/core.img kernel /grub2/core.img && boot
if exist /boot/grub2/i386-pc/core.img kernel /boot/grub2/i386-pc/core.img && boot
# grub - e.g. bitdefender
if exist /boot/grubi386.pc kernel /boot/grubi386.pc && boot
boot

Edited by steve6375, 21 September 2015 - 08:38 AM.


#3 RogueCraft

RogueCraft
  • Members
  • 3 posts
  •  
    United States

Posted 23 September 2015 - 01:13 AM

Awesome the first option worked for windows and the last option worked for gnome (I reformated & reinstalled OS's directly to the ssd then reloaded everything).

 

Now im showing 2 options in the menu for gnome and windows.

 

I.e.

Gnome.mnu

Gnome.mnu

Bootmgr.mnu

Windows.mnu

 

any ideas?



#4 steve6375

steve6375

    Platinum Member

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

Posted 23 September 2015 - 08:27 AM

I depends where you placed the .mnu files and what is in them.

You can hit the SPACEBAR during file enumeration to stop the display and view what files E2B has found to add to the menu.



#5 RogueCraft

RogueCraft
  • Members
  • 3 posts
  •  
    United States

Posted 23 September 2015 - 02:05 PM

i added both files to MAINMENU folder

 

i created a Windows.mnu and it has:

title Bootmgr
find --set-root /bootmgr
chainloader /bootmgr

 

then i created Gnome.mnu:

title Boot grub2 from partition hd0,5 \n Boot to core.img
root (hd0,5)
if exist /boot/grub/i386-pc/core.img kernel /boot/grub/i386-pc/core.img && boot
if exist /boot/grub/core.img kernel /boot/grub/core.img && boot
if exist /grub2/core.img kernel /grub2/core.img && boot
if exist /boot/grub2/i386-pc/core.img kernel /boot/grub2/i386-pc/core.img && boot
# grub - e.g. bitdefender
if exist /boot/grubi386.pc kernel /boot/grubi386.pc && boot
boot



#6 steve6375

steve6375

    Platinum Member

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

Posted 23 September 2015 - 02:08 PM

Are you sure you don't have any more .mnu files - maybe in a sub-folder under \_ISO\MAINMENU ??







Also tagged with one or more of these keywords: easy2boot, grub4dos, windows, help, boot

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users