Page 1 of 1

Booting directly from the ISO using grub 2

PostPosted: Jan 3rd, '14, 11:06
by mikey
Hello,

I use a USB stick with a number of ISOs of different distributions on them and I would like to add Mageia to that list, but I have been unable to find anything about how to get Mageia to boot from an ISO with grub 2.

Could anyone help me out?

The file I use for booting my other distributions looks like this:

/boot/grub/grub.cfg
Code: Select all
# This grub.cfg file was created by Lance http://www.pendrivelinux.com
# Suggested Entries and the suggestor, if available, will also be noted.

set timeout=-1
set default=0

menuentry "Porteus Razor-Qt v2.1 i486 ISO" {
 insmod part_msdos
 insmod ext2
 set isofile="/ISO/Porteus-RAZOR-v2.1-i486.iso"
 set rdfile="/boot/syslinux/initrd.xz"
 search --no-floppy --file --set=root $isofile
 loopback loop $isofile
 linux (loop)/boot/syslinux/vmlinuz from=$isofile
 initrd (loop)$rdfile
}

menuentry "Linux Mint 15 Cinnamon i386 ISO" {
 set isofile="/ISO/linuxmint-15-cinnamon-dvd-32bit.iso"
 set rdfile="/casper/initrd.lz"
 loopback loop $isofile
 linux (loop)/casper/vmlinuz file=/cdrom/preseed/mint.seed boot=casper initrd=$rdfile iso-scan/filename=$isofile quiet splash --
 initrd (loop)$rdfile
}

menuentry "Ubuntu 13.04 i386 ISO" {
 set isofile="/ISO/ubuntu-13.04-desktop-i386.iso"
 set rdfile="/casper/initrd.lz"
 loopback loop $isofile
 linux (loop)/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper initrd=$rdfile iso-scan/filename=$isofile quiet splash --
 initrd (loop)$rdfile
}

menuentry "Fedora 19 (64 bit)" {
 set isofile="/ISO/Fedora-Live-Desktop-x86_64-19-1.iso"
 set rdfile="/isolinux/initrd0.img"
 set UUID="4c58d4cd-e7a0-404a-bfeb-6768e1c76442"
 loopback loop $isofile
 linux (loop)/isolinux/vmlinuz0 root=live:CDLABEL=Fedora-Live-Desktop-x86_64-19-1 rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 iso-scan/filename=${isofile}
 initrd (loop)$rdfile
}

menuentry "Elementary OS - Stable (64 bit) ISO" {
 set isofile="/ISO/elementaryos-stable-amd64.20130810.iso"
 set rdfile="/casper/initrd.lz"
 loopback loop $isofile
 linux (loop)/casper/vmlinuz boot=casper initrd=$rdfile iso-scan/filename=$isofile quiet splash --
 initrd (loop)$rdfile
}

#menuentry "DBAN ISO" {
# loopback loop /dban.iso
# linux (loop)/DBAN.BZI nuke="dwipe" iso-scan/filename=/dban.iso silent --
#}
#
#menuentry "Tinycore ISO" {
# loopback loop /tinycore.iso
# linux (loop)/boot/bzImage --
# initrd (loop)/boot/tinycore.gz
#}

menuentry "Memtest 86+" {
 linux16 /memtest86+.bin
}

menuentry "SystemRescueCd (32 bit)" {
 set isofile="/ISO/systemrescuecd-x86-3.7.1.iso"
 set rdfile="/isolinux/initram.igz"
 loopback loop $isofile
 linux (loop)/isolinux/rescue32 isoloop=$isofile setkmap=uk docache dostartx
 initrd (loop)$rdfile
}

Re: Booting directly from the ISO using grub 2

PostPosted: Jan 4th, '14, 00:04
by unklar
Hi,

then, they should mageia-iso mount it and even after the
Configuration files (syslinux and / or isolinux) look for launch at Grub2. ;)

Edit: or here https://forums.mageia.org/de/viewtopic.php?f=8&t=1713