<?xml version='1.0' encoding='UTF-8'?>
<elementos_gw>
  <documento>
    <id>899</id>
    <autor>5</autor>
    <nome>How to boot ISO files with GRUB</nome>
    <nome_facil>how to boot iso files with grub</nome_facil>
    <criacao>2010-11-06 15:24:43</criacao>
    <alteracao>2010-11-06 15:45:00</alteracao>
    <texto>Hello!

I was looking through internet for how to boot ISO files from a boot loader, and I&#039;d like that boot loader was GRUB.

But I saw in some forums that GRUB doesn&#039;t do that directly, unless by extracting the contents and/or copying the file to an empty partition.

However, I found that [http://diddy.boot-land.net/grub4dos/files/map.htm#hd32 Grub4DOS boots some ISO files] (and it works on DOS, Windows and Linux, not only the named DOS), and [http://ubuntuforums.org/showthread.php?t=1549847 Grub2 can do it also].

Here an example of {{{menu.lst}}} Grub4DOS config file to boot an ISO image:
{{{
title Puppy Linux 5.1.1 (Lucid Puppy)
  find --set-root /linux/puppy.iso
  map /linux/puppy.iso (0xff) || map --mem /linux/puppy.iso (0xff)
  map --hook
  chainloader (0xff)
}}}

Here an example of {{{grub.cfg}}} Grub2 config file to boot an ISO image:
{{{
menuentry &quot;Ubuntu 10.04&quot; {
  set isofile=&quot;/boot/iso/ubuntu-10.04-desktop-i386.iso&quot;
  loopback loop (hd0,1)$isofile
  linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
  initrd (loop)/casper/initrd.lz
}
}}}

References:
- [http://diddy.boot-land.net/grub4dos/Grub4dos.htm Grub4DOS Guide]
- [http://ubuntuforums.org/showthread.php?t=1195275 Grub 2 Guide]

Hope you enjoy! ;-)
</texto>
    <publico>1</publico>
    <original>0</original>
    <anterior>0</anterior>
    <versao>0</versao>
    <traducao>0</traducao>
    <propriedade>
      <nome>idioma</nome>
      <valor>inglês</valor>
      <publico>1</publico>
    </propriedade>
    <propriedade>
      <nome>categ</nome>
      <valor>artigos</valor>
      <publico>1</publico>
    </propriedade>
  </documento>
</elementos_gw>
