Page 1 of 1
How to start the ISO from HD using Grub2?
Posted: 20 Feb 2013, 18:01
by oui
Hi
I wish to tray Porteus2
How to start the ISO from HD using Grub2?
Kind regards
Re: How to start the ISO from HD using Grub2?
Posted: 20 Feb 2013, 22:45
by OldGeek
Personally, I find it effective to use VirtualBox to boot ISO images, but I believe you may find answers to your question at
http://www.webupd8.org/2011/02/how-to-b ... y-way.html
All the best 8)
Re: How to start the ISO from HD using Grub2?
Posted: 21 Feb 2013, 09:46
by fanthom
i have no experience with grub2 but here is a sample for grub4dos which should be similar:
http://forum.porteus.org/viewtopic.php?f=81&t=1866
Re: How to start the ISO from HD using Grub2?
Posted: 21 Feb 2013, 16:09
by Ed_P
The Grub4DOS menu shown here is for version 2.0.
http://forum.porteus.org/viewtopic.php? ... 841#p12841
And no file extractions needed. Might be a better example for Grub2.
Re: How to start the ISO from HD using Grub2?
Posted: 21 Feb 2013, 20:31
by oui
Hi
Thank you for your help.
I only have Linux on my PC any more since more than 5 y. and can do nothing probably with grub4dos: it is the other world, the M$ world
and grub2 is an appreciable amount of years the
official boot loader from GNU and did be accepted by all serious distributions, contributing or not
....
but I did observe since I have Grub2 in the MBR that a lot of young distributors forget to care care on this reality and build their own ISO's without understandig: Grub2 can't work with them (it is now possible to say: absolutely all established distros can manage it. it is a real standard...
it is a great handicap for a distribution don't to take care on this.
kind regards
Re: How to start the ISO from HD using Grub2?
Posted: 21 Feb 2013, 21:09
by Ahau
Thanks oui,
Porteus is fully compatible with grub2, meaning that grub2 can boot it without a problem. However, most users do not utilize grub2 for a number of reasons, primarily that syslinux is the default bootloader for Porteus (so most people use that) and grub2 is not used by default in Slackware (upon which Porteus is based, and from which many of our users originate).
One of our members (and documentation team contributors), francois, put together this post on grub2:
viewtopic.php?f=48&t=1790
Please note that the location of the kernel and initrd have changed, so you'll want to point grub2 to /boot/syslinux/vmlinuz and /boot/syslinux/initrd.xz, respectively (absolute paths from the root directory of the partition set as root for your grub2 entry). "toroot" has also changed to "login=root" if you want to be logged in as root.
There is also a link at the bottom of that post to an example of booting an iso file from grub2 (on the slax website), here:
http://old.slax.org/forum.php?action=vi ... ntID=83453
Given that I've never booted an ISO file from grub2 myself (I always just extract it because it doesn't take up any more room than the ISO file itself), some guesswork is involved, but I imagine the entry would look something like this:
Code: Select all
menuentry "Porteus ISO" {
insmod part_msdos
insmod ext2
set isofile="/isos/Porteus-v2.0-i486.iso"
search --no-floppy --file --set=root $isofile
loopback loop $isofile
linux (loop)/boot/syslinux/vmlinuz from=$isofile
initrd (loop)/boot/syslinux/initrd.xz
}
I hope that helps, or is at least a step in the right direction.
Re: How to start the ISO from HD using Grub2?
Posted: 22 Feb 2013, 22:13
by oui
Hi Ahau
I confirm: Your code is good. Only a line more is needed:
menuentry "Porteus ISO" {
insmod part_msdos
insmod ext2
set root=(hd0,5) <-- as you need on your own system!
set isofile="/isos/Porteus-v2.0-i486.iso"
search --no-floppy --file --set=root $isofile
loopback loop $isofile
linux (loop)/boot/syslinux/vmlinuz from=$isofile
initrd (loop)/boot/syslinux/initrd.xz
}
Tank you very much!
Kind rgds
Re: How to start the ISO from HD using Grub2?
Posted: 21 Oct 2014, 22:28
by oui
Hi
1 1/2 y later, I did go back to...
Grub legacy
Is there an analog ready to use text proposal in the forum or doc for menu.lst?
Kind regards
Re: How to start the ISO from HD using Grub2?
Posted: 22 Oct 2014, 02:38
by Ed_P
oui wrote: and can do nothing probably with grub4dos: it is the other world, the M$ world
Just for the record, grub4dos has NOTHING to do with the MS world, either Windows or DOS. It is a modern, updated, supported, boot manager that can boot anything.
Re: How to start the ISO from HD using Grub2?
Posted: 22 Oct 2014, 11:40
by Bogomips
oui wrote:Hi
1 1/2 y later, I did go back to...
Grub legacy
Is there an analog ready to use text proposal in the forum or doc for menu.lst?
Kind regards
Been using Grub 1 for all distros. Will post a bit later, if no one in meantime provides info.
UPDATE:
http://forum.porteus.org/viewtopic.php?f=62&t=3994
Re: How to start the ISO from HD using Grub2?
Posted: 22 Oct 2014, 14:51
by Bogomips
Re: How to start the ISO from HD using Grub2?
Posted: 23 Oct 2014, 13:10
by francois
Welcome back oui!
For grub2 and porteus you will find information in:
http://forum.porteus.org/viewtopic.php?f=62&t=946
For grub legacy and porteus there is this thread:
http://forum.porteus.org/viewtopic.php?f=48&t=1790
Re: How to start the ISO from HD using Grub2?
Posted: 26 Oct 2014, 20:07
by linus72
I simply did this-
Porteus iso is on root (/) of sda5 which is the Ubuntu partition, Win7 on sda1
as root - (terminal) #mkdir /porteus
used isomaster (as root) to extract porteus kernel/initrd to /porteus folder
Edit /etc/grub.d/40_custom as root in my Ubuntu install
Code: Select all
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Plop"{
set root='(hd0,5)'
search --no-floppy --fs-uuid --set=root 586a7270-325c-41a5-a3f9-704c3b8920a8
linux16 /porteus/plpbt
}
menuentry "Porteus"{
set root='(hd0,5)'
search --no-floppy --fs-uuid --set=root 586a7270-325c-41a5-a3f9-704c3b8920a8
linux /porteus/vmlinuz from=/Porteus-XFCE-v3.0.1-i486.iso copy2ram changes=/porteussave.dat
initrd /porteus/initrd.xz
}
menuentry "SalixLive"{
set root='(hd0,5)'
search --no-floppy --fs-uuid --set=root 586a7270-325c-41a5-a3f9-704c3b8920a8
linux /boot/vmlinuz initrd=/boot/initrd.gz max_loop=255 vga=791 locale=en_US.utf8 keymap=us useswap=yes copy2ram=no tz=Etc/GMT runlevel=4 changes=/boot/sav
initrd /boot/initrd.gz
}
menuentry "Ultimate GamersEdition"{
set root='(hd0,5)'
search --no-floppy --fs-uuid --set=root 586a7270-325c-41a5-a3f9-704c3b8920a8
set isofile="/ultimate-edition-4.4-x86-gamers.iso"
loopback loop /ultimate-edition-4.4-x86-gamers.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ultimate-edition-4.4-x86-gamers.iso noeject noprompt splash --file=/cdrom/preseed/ultimate.seed initrd=/casper/initrd.lz quiet splash --
initrd (loop)/casper/initrd.lz
}
did "update-grub" in Ubuntu 14.04 and bam I'm bootin porteus off iso persistent bada-bing, bada boom lol
Code: Select all
#ls /
Porteus-XFCE-v3.0.1-i486.iso porteussave.dat
bin/ proc/
boot/ root/
dev/ run/
etc/ sbin/
home/ slitaz-4.0.iso
initrd.img@ srv/
lib/ sys/
lost+found/ tmp/
media/ ultimate-edition-4.4-x86-gamers.iso
mnt/ usr/
opt/ var/
porteus/ vmlinuz@
Re: How to start the ISO from HD using Grub2?
Posted: 26 Oct 2014, 21:28
by francois