Page 1 of 1

Setup a multiboot USB with Porteus?

Posted: 23 Jul 2013, 10:02
by mikey
Hi,

I'm trying to add the Porteus ISO to a multiboot USB I have. It uses grub 2 as a boot manager and mounts ISO files to a loop device to boot. I was wondering if anyone here would know how to get Porteus to boot this way?

I get as far as the boot script but it tells me that the device is not ready.

Here is my /boot/grub/grub.cfg file from my multiboot USB:

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=10
set default=0

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


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


menuentry "Porteus 2.0 - 32 bit" {
 set isofile="/Porteus-v2.0-i486.iso"
 set initrdfile="/boot/syslinux/initrd.xz"
 loopback loop $isofile
 linux (loop)/boot/syslinux/vmlinuz initrd=$initrdfile isoloop=$isofile nomagic base_only norootcopy --
 initrd (loop)$initrdfile
}

#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" {
# loopback loop /systemrescuecd-x86-3.7.1.iso 
# linux (loop)/isolinux/rescuecd isoloop=/systemrescuecd-x86-3.7.1.iso setkmap=us docache dostartx
# initrd (loop)/isolinux/initram.igz
#}

menuentry "SystemRescueCd" {
 set isofile="/systemrescuecd-x86-3.7.1.iso"
 set initrdfile="/isolinux/initram.igz"
 loopback loop $isofile
 linux (loop)/isolinux/rescue64 isoloop=$isofile dostartx -- rescue32 dostartx
 initrd (loop)$initrdfile
}
Also I was considering trying to make a file like so:

Code: Select all

dd if=/dev/zero of=porteus.img bs=1G count=4
mkfs.ext3 porteus.img
And installing porteus to that. (Not sure if this would be possible.)

Re: Setup a multiboot USB with Porteus?

Posted: 23 Jul 2013, 11:16
by mikey
I found a post on the forum that got the liveUSB booting with grub2.

The menu entry I ended up using was:

Code: Select all


menuentry "Porteus 2.0 - 32 bit" {
 insmod part_msdos
 insmod ext2
 set isofile="/Porteus-v2.0-i486.iso"
 set initrdfile="/boot/syslinux/initrd.xz"
 search --no-floppy --file --set=root $isofile
 loopback loop $isofile
 linux (loop)/boot/syslinux/vmlinuz from=$isofile 
 initrd (loop)$initrdfile
}
I've not tried installing to a loop file yet.

Re: Setup a multiboot USB with Porteus?

Posted: 23 Jul 2013, 17:52
by francois
Welcome Mickey.

Just do it. That is, download the porteus iso in the / folder and add the entry to the grub.cfg.

Ask questions if it does not work. We will be happy to provide the necessary instructions.