Chainloading from grub to ElTorito iso

V

Villefort

Guest
Hi there!
I'm trying to make an option in my grub to be able to load any (well, not any, exactly) .iso live distro. For now, I have an Arch Linux iso which uses El Torito bootloader and I see no posiibility to just loop it and do linux->initrd.
All intelligence I could gather is that I may make use of grub4dos which can chainload the ElTorito bootloader while grub isn't able to do so. So, as I understood, I have to something like:

1) Make an option in my grub.cfg to boot grub4dos (as it kinda has the linux kernel format) as a kernel, and then
2) I would be able to chainload the ElTorito iso. Right?

I have grub of 2.00 version. It isn't (grub2) 2.00 which I also have in my /usr/sbin, it's just (grub) 2.00. Isn't there any simplier way to chainload from it to iso with ElTorito bootloader?

PS I couldn't get into how to just load Arch kernel from iso without chainloading into it. There isn't any familiar files, just vmlinuz in one folder and no initrd.
 


Okay, is it right?
(grub4dos)
title Chainload ElTorito ISO
find --set-root (hd0,5)/bootimages/arch.iso
map /arch.iso (0xff) #WHAT IS 0xff ?
map --hook
root (0xff) # ???
chainloader (0xff)
boot #IS IT REQUIRED HERE, REALLY?


Just ain't gonna put my hard disk and\or partition table at risk... So need an advice, please.

Got it. 0xff is kind of emulating CD-ROM in a proper way or something.
 
Last edited:
grub:

linux (hd0,msdos9)/grub4dos/grub.exe
boot

grub4dos:

map --mem (hd0,4)/bootimages/arch.iso (0xff) #0xff emulates CD-ROM device
map --hook
root (0xff)
chainloader (0xff)
boot

...or something.
 
Top