Jump to content











Photo
- - - - -

Booting checkn1x Linux ISO with Grub4DOS

grub4dos checkn1x

  • Please log in to reply
35 replies to this topic

#26 zammibro

zammibro

    Member

  • Members
  • 59 posts
  •  
    United States

Posted 16 May 2021 - 06:17 PM

it amounts to using the GRUB2 core.img as kernel

 

How the chainloaded Grub2 config entry will look like in this scenario for (hd0,0)/ISO/checkn1x-1.0.5-amd64.iso ?


Edited by zammibro, 16 May 2021 - 06:18 PM.


#27 steve6375

steve6375

    Platinum Member

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

Posted 16 May 2021 - 06:20 PM

https://rmprepusb.co...and-vice-versa/

 

Google is your friend!



#28 zammibro

zammibro

    Member

  • Members
  • 59 posts
  •  
    United States

Posted 16 May 2021 - 07:46 PM

if ISO is at /ISO/checkn1x-1.0.5-amd64.iso

 

With all above precautions, the partnew command booted the ISO very fast with no issues.  :)  On side notes, when I quitted it, and then did Ctrl+Alt+Del to reboot, the PC has not rebooted as usual. Also, it appears that Windows Bootmanager menu shown up a bit slower than usual. May be its just an impression. If I add a title to this menu item, it will not be executed automatically at Grub4DOS start, and I also would be able to hide it with |= 0x10 ?

 

Booting is Legacy BIOS mode with Windows Boot Manager > Grub4dos > Grub2 Menu of a1ive - (hd0,0)/grub/core.img > Linux ISO in (hd0,msdos1)/images - /grub/grub_Linux.cfg

 

What menu item would chainload grub_Linux.cfg from grub.cfg without a1ive Grub2 Boot Manager installed in MBR


Edited by zammibro, 16 May 2021 - 07:57 PM.


#29 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 17 May 2021 - 03:59 AM

What menu item would chainload grub_Linux.cfg from grub.cfg without a1ive Grub2 Boot Manager installed in MBR

if [ -e (hd0,msdos1)/images ]; then
menuentry "Linux ISO in (hd0,msdos1)/images - /grub/grub_Linux.cfg" {
  set iso_drive=(hd0,msdos1)
  export iso_drive
  configfile /grub/grub_Linux.cfg
}
fi

The above given menuentry occurs in grub.cfg as given by UEFI_MULTI and USB_FORMAT

 

It means when folder images is found on Boot drive then Linux ISO  Menu can be selected.

Boot drive is identified as the variable iso_drive



#30 zammibro

zammibro

    Member

  • Members
  • 59 posts
  •  
    United States

Posted 17 May 2021 - 06:57 AM

The above given menuentry occurs in grub.cfg


Adjusted that entry, and the latest release of checkn1x ISO booted perfectly by Grub2 chainloaded from Grub4DOS. All I did - added C:\grub folder with files core.img, grub.cfg and grub_Linux.cfg, copied from wimb's UEFI_MULTI-58-E.zip folder, then adjusted the ISO menu entries in both cfg files as discussed in this topic.

Thanks for the tool, yet I can't figure out why you supply it in several ZIP files, and how the archives collection sticks together, including USB Format tool??? Why don't just offer a single archive or installer for all packages included?

Wrapping up, 2 days ago the Hello World didn't have any ways to boot Checkra1n iOS jailbreak Linux ISO from an internal HDD despite the ISO is in high demand. But now we have several good working methods of booting that ISO straight from a hard drive, no need to burn the image to a USB stick. And highlighted quite advanced topics alone the way. Amazing things happen when several forum experts get together to contribute to the useful cause they love. :)


 

 
 
 


Edited by zammibro, 17 May 2021 - 07:07 AM.


#31 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 17 May 2021 - 08:09 AM

 

Thanks for the tool, yet I can't figure out why you supply it in several ZIP files, and how the archives collection sticks together, including USB Format tool??? Why don't just offer a single archive or installer for all packages included?
 

 

Good to hear that Grub2 chainloaded from Grub4dos is working for you  :)

 

You have used one of the many Boot options of my Tools.

 

USB_FORMAT is used when you want to make an MBR partitioned and formatted USB drive bootable in BIOS and UEFI secure mode.

UEFI_MULTI is used when you want to modify an existing MBR partitioned USB or internal SSD by adding Boot Image files such as VHD, WIM or ISO.

In each case the agFM Addon zip files using 7-zip extract Here context menu will add the UEFI Secure Grub2 files and Grub2 System to the existing USB_FORMAT and UEFI_MULTI folders.

 

It means the Tools provide in an automatic way all Boot options whereas you have added manually only BIOS mode Grub2 to an existing drive ....



#32 zammibro

zammibro

    Member

  • Members
  • 59 posts
  •  
    United States

Posted 17 May 2021 - 01:29 PM

In each case the agFM Addon zip files using 7-zip "extract Here" context menu will add the UEFI Secure Grub2 files and Grub2 System to the existing USB_FORMAT and UEFI_MULTI folders.

 

Can one add UEFI mode that way to the existing internal SSD on a Legacy BIOS only PC? Will it allow to boot ISOs in UEFI mode? Its very important in case of Hackintosh jailbreak ISOs like these, which don't want to boot on random hardware in Legacy BIOS mode. May be adding Clover chainloading to Grub4DOS similar to Grub2 chainloading will enable that? Using Hackintosh greatly increases various iOS tools success rate and scope compare to Linux. And as a side bonus, Clover might just boot Linux UEFI images as well.


Edited by zammibro, 17 May 2021 - 02:28 PM.


#33 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 17 May 2021 - 01:32 PM

Can I add UEFI mode that way to the existing internal SSD on a Legacy BIOS only PC? Will it allow to boot ISOs in UEFI mode? Its extremely important in case of Hackintosh ISOs, which don't want to boot on random hardware in Legacy BIOS mode. May be adding Clover chainloading to Grun4DOS similar to Grub2 chainloading will enable that capability?

 

If the PC is BIOS only then you cannot boot in UEFI mode. That is just determined by the firmware.

I have no experience with Hackintosh



#34 zammibro

zammibro

    Member

  • Members
  • 59 posts
  •  
    United States

Posted 17 May 2021 - 01:46 PM

If the PC is BIOS only then you cannot boot in UEFI mode.

 

Except possibly with Clover? For that the 1st step is to add Clover chainloading from Grub4DOS in your tool, then let other users to tinker with it with Hackintosh DMG images, yourself included if desired.


Edited by zammibro, 17 May 2021 - 01:47 PM.


#35 zammibro

zammibro

    Member

  • Members
  • 59 posts
  •  
    United States

Posted 17 May 2021 - 01:50 PM

E2b does support booting from hackintosh dmg and hfs files, but there are limitations.

 

Can it be done on a Legacy BIOS only PC via Clover chainloaded from Grub4DOS with your tool? Or what bootloader do you use for Hackintosh images? Is it possible to boot these Hackintosh DMGs with your tool on a Legacy BIOS only PC?


Edited by zammibro, 17 May 2021 - 02:34 PM.


#36 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 17 May 2021 - 01:59 PM

Can it be done on a Legacy BIOS only PC via Clover chainloaded from Grub4DOS with your tool?

 

My tool does not have support for Clover ....







Also tagged with one or more of these keywords: grub4dos, checkn1x

3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users