help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Booting from a bootable ISO


From: Arbiel (gmx)
Subject: Re: Booting from a bootable ISO
Date: Wed, 09 Apr 2014 21:17:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hi Rusi

Thank you for this piece of  information.

I understand "apt-get grub-imageboot" to create the /etc/grub.d/60_grub-imageboot script, which inserts the menuentries in grub.cfg. So the <Insert UUID> should be set correctly, and not to be modified by the user.

Am I correct ?

Le 07/04/2014 16:25, Rustom Mody a écrit :
On Mon, Apr 7, 2014 at 7:39 PM, Arbiel (gmx) <address@hidden> wrote:
Hi Rusi

Can you please publish the menuentries you found in your grub.cfg file ?

Arbiel

Hi Arbiel
See below

Regards
Rusi

[Any reason for private mail rather than mailing list?]

No reason : it was a misuse of my e-mail client


Change the <Insert UUID> to yours or (my preference) switch to labels

### BEGIN /etc/grub.d/60_grub-imageboot ###
menuentry "Bootable ISO Image: Barracuda12-ALL-CC49" {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos5'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root
--hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5
--hint-baremetal=ahci0,msdos5 <Insert UUID>
         else
           search --no-floppy --fs-uuid --set=root <Insert UUID>
         fi
         linux16 /boot/memdisk iso
         initrd16 /boot/images/Barracuda12-ALL-CC49.iso
}
menuentry "Bootable ISO Image: RIPLinuX-13.7" {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos5'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root
--hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5
--hint-baremetal=ahci0,msdos5  <Insert UUID>
         else
           search --no-floppy --fs-uuid --set=root <Insert UUID>
         fi
         linux16 /boot/memdisk iso
         initrd16 /boot/images/RIPLinuX-13.7.iso
}
### END /etc/grub.d/60_grub-imageboot ###
















Le 07/04/2014 06:35, Rustom Mody a écrit :

On Mon, Apr 7, 2014 at 12:18 AM, Andrey Borzenkov <address@hidden
<mailto:address@hidden>> wrote:

     В Sun, 6 Apr 2014 23:09:40 +0530
     Rustom Mody <address@hidden <mailto:address@hidden>>

     пишет:

      > On Sun, Apr 6, 2014 at 10:34 PM, Andrey Borzenkov
     <address@hidden <mailto:address@hidden>>wrote:

      >
      > > В Sun, 6 Apr 2014 22:10:25 +0530
      > > Rustom Mody <address@hidden
     <mailto:address@hidden>> пишет:

      > >
      > > > Many people -- in particular hardware vendors -- are nowadays
     supplying
      > > > bootable ISO's.
      > > > You have to
      > > > 1. Download the ISO
      > > > 2. Burn a CD
      > > > 3. Boot with it
      > > > 4. Follow the instructions (to (re)flash the
     motherboard/CP/Disk etc)
      > > >
      > > > Ive already been able to boot ubuntu from an iso on disk
      > > > Next Ive done it with making a grub-bootable usb and
     loop-mounting the
      > > iso
      > > > from there
      > > >
      > > > So now to boot from a general (ie non linux) bootable ISO?
      > > >
      > >
      > > I do not think it is possible in general case. For a start,
program
      > > that would be started from ISO may need access to CD/DVD which is
      > > possible only if system firmware (BIOS/EFI) actually see device.
      > >
      > >
      > Sorry....
      > Maybe I focused on the wrong aspect -- hardware flashing.
      >
      > So to correct that:
      > 1. I believe that Isolinux can do this

     You need resident driver providing emulated CD driver. grub does not
     include one. For BIOS systems the easiest way is to use memdisk (which
     is part of syslinux project indeed) which can be booted by grub. See
     http://www.syslinux.org/wiki/index.php/MEMDISK


Thanks!

Just FYI (and anyone else stumbling on this thread). I did:
apt-install grub-image-boot
Added some iso images to /boot/images
Updated grub

Now I find these in grub menu
And they seem to run (minimally at least)

So now next question -- How safe is it?
Sorry if the question sounds unreasonable :-) but it can be also put
like this:

Put an (freedos-based) iso on CD and boot machine
vs
Put iso in /boot/images and boot with grub and (Syslinux??) Memdisk

How different are these running environments from the point-of-view of
the running ISO?

Thanks
Rusi


_______________________________________________
Help-grub mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-grub








reply via email to

[Prev in Thread] Current Thread [Next in Thread]