booting the porteus iso from a usb key

Post here if you are a new Porteus member and you're looking for some help.
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

booting the porteus iso from a usb key

Post#1 by francois » 20 Jul 2015, 20:57

Bogomips is interested to know what answer can be given to the following question:
http://forum.porteus.org/viewtopic.php? ... 5&start=15
Iso downloaded, usb just bought, and the steps to take, should it be possible to boot from usb without unpacking the iso, the way one can from CD/DVD?

Threads on the porteus forum:
1.0 howto using the porteus cheatcode to boot porteus iso under syslinux
- from cheatcode instruction applied to porteus iso file:
from=/path/porteus.iso
http://www.porteus.org/tutorials/26-gen ... -them.html
... Loads Porteus from the specified device, folder or ISO file.
Examples:
...
'from=/linux-ISO/porteus.iso' will attempt to load the Porteus
data from an ISO file placed inside the 'linux-ISO' folder.

Code: Select all

from=porteus-latest-version.iso
- howto to for booting from a folder with different porteus iso versions:
http://www.porteus.org/tutorials/37-ins ... tcode.html

2.0 howto from bogomips for grub legacy bootloader and boot iso:
http://forum.porteus.org/viewtopic.php?f=62&t=3994

3.0 howto solution for grub2 and boot iso:
viewtopic.php?f=81&t=1938
Example:

Code: Select all

menuentry "Porteus ISO" {
insmod part_msdos
insmod ext2
set root=(hd0,5)                                              # as you need on your own system. Here the partition number
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
}
Prendre son temps, profiter de celui qui passe.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: booting the porteus iso from a usb key

Post#2 by Bogomips » 21 Jul 2015, 00:37

donald wrote:
Bogomips wrote: Would also be interested to know what answer can be given to the following question. Iso downloaded, usb just bought, and the steps to take, should it be possible to boot from usb without unpacking the iso, the way one can from CD/DVD?
Hello Bogomips
If you really want to have an usb-flash which acts like a live-cd/dvd,
(as a result,the usb would be as large as the iso, readonly like a CD, and the leftover space on that usb can not be used),
make the (porteus) iso "isohybrid"
Many other isos are isohybrid by default.

Unfortunatly this command seems to be stripped out of porteus.IMO it is included
in the original syslinux package.
(If you have another Linux at hand, I'm sure it is included)

the command would simply be (e.g.)
isohybrid Porteus-KDE4-v3.1-i486.iso

when done dd this iso onto the usb-flash
dd if=./Porteus-KDE4-v3.1-i486.iso of=/dev/sdX

reboot
donald wrote:but I am sure you meant something different,no?
cheers
This answers the question exactly. :good:
donald wrote:Unfortunatly this command seems to be stripped out of porteus.IMO it is included
in the original syslinux package.
(If you have another Linux at hand, I'm sure it is included)

However it seems the installation has to match the installation of the syslinux in iso:
Isohybrid_syslinux.org/wik wrote:Both isohybrid programs contain MBR code matching the same version of the ISOLINUX bootloader file, "isolinux.bin". So always use the isohybrid program from the same Syslinux installation that provided this bootloader file for the ISO 9660 production.
http://www.syslinux.org/wiki/index.php/ ... _USB_stick

Need to find MBR template file from local Syslinux installation:
Isohybrid_syslinux.org/wik wrote:Optionally, the ISO 9660 production program xorriso can enhance its results by isohybrid, if an MBR template file from the local Syslinux installation is provided. The names of these files match the isohdp[fp]x*.bin pattern and are to be found in Syslinux under the ./[bios/]mbr directory or installed as e.g. /usr/lib/syslinux/isohdpfx.bin.

Code: Select all

xorriso -as mkisofs \
   -o output.iso \
   -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin \
   -c isolinux/boot.cat \
   -b isolinux/isolinux.bin \
      -no-emul-boot -boot-load-size 4 -boot-info-table \
   CD_root
Isohybrid wrote:The resulting ISO image needs no further treatment by isohybrid tools.
xorriso
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

donald
Full of knowledge
Full of knowledge
Posts: 2065
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: booting the porteus iso from a usb key

Post#3 by donald » 21 Jul 2015, 01:01

Bogomips wrote: However it seems the installation has to match the installation of the syslinux in iso
Hmm...All I can say is that it works perfectly when i prepare the porteus isos (2014/15)
with the isohybrid command found in SliTaz (2012)
cheers
Last edited by donald on 21 Jul 2015, 07:52, edited 1 time in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: booting the porteus iso from a usb key

Post#4 by Ed_P » 21 Jul 2015, 04:15

Yes, the key to Bogomips's question is not how to add Porteus cheatcodes to an install but rather how to make a usb just bought bootable without unpacking the iso. Doing it from Windows is simply a matter of installing grub4dos on it, doing it from Linux is the tough part.
Ed

donald
Full of knowledge
Full of knowledge
Posts: 2065
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: booting the porteus iso from a usb key

Post#5 by donald » 21 Jul 2015, 04:39

Thanks Ed
But I still do not quite understand.(the scenario)
Am I allowed to have a running Linux?..If yes, one can always install grub onto
the thumbdrive..
http://www.porteus.org/component/conten ... drive.html
once done, boot whatever you like.
--> doing it from Linux is the tough part <-- why?

......I need holidays.....

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: booting the porteus iso from a usb key

Post#6 by Ed_P » 21 Jul 2015, 05:11

donald wrote:Thanks Ed
But I still do not quite understand.(the scenario)
Am I allowed to have a running Linux?
Yes.
..If yes, one can always install grub onto
the thumbdrive..
http://www.porteus.org/component/conten ... drive.html
once done, boot whatever you like.
An interesting link donald. If grub supports booting ISOs then Bogomips question is answered.
--> doing it from Linux is the tough part <-- why?
I was referring to grub4dos, it boots everything but to the best of my knowledge it only installs from Windows. :(
......I need holidays.....
Any one in particular? :)
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: booting the porteus iso from a usb key

Post#7 by Bogomips » 21 Jul 2015, 13:25

neko has also made available here live-usb-3.1-noarch-1.xzm (336 K). Could also do the trick. 8)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: booting the porteus iso from a usb key

Post#8 by francois » 21 Jul 2015, 13:37

So donald, you are recommending my number 3 strategy with grub2. :)

For the isohybrid utility, you can get it from syslinux installation according to fanthom:
viewtopic.php?f=103&t=2016
you could also extract (statically linked) isohybrid directly from wizard by running following command:

Code: Select all

sh porteus-kiosk-creator-v2.0-noarch.run --tar xf
Also porteus 3.1 download with usb-creator, thus you will have the porteus iso booted and some persistence added:
http://www.linuxliveusb.com/updates/lin ... rteus-last :D
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: booting the porteus iso from a usb key

Post#9 by Ed_P » 21 Jul 2015, 14:12

francois wrote:For the isohybrid utility, you can get it from syslinux installation according to fanthom:
viewtopic.php?f=103&t=2016
you could also extract (statically linked) isohybrid directly from wizard by running following command:

Code: Select all

sh porteus-kiosk-creator-v2.0-noarch.run --tar xf
So for a user to run the desktop version they install the kiosk version to run a kiosk command? :%)

Why don't you recommend this approach: http://forum.porteus.org/viewtopic.php?f=62&t=946
Also porteus 3.1 download with usb-creator, thus you will have the porteus iso booted and some persistence added:
http://www.linuxliveusb.com/updates/lin ... rteus-last :D
Did you try the Download link on that (spam) page? The one to the right of it works though. :lol:
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: booting the porteus iso from a usb key

Post#10 by Bogomips » 21 Jul 2015, 21:21

hi guys
You have to try this! :o Don't have spare usb at moment :(
Activate: live-usb-3.1-noarch-1.xzm from neko
Then run (Alt+F2): /usr/share/live-usb/bin/live-usb
Result was quite unexpected. :)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

donald
Full of knowledge
Full of knowledge
Posts: 2065
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: booting the porteus iso from a usb key

Post#11 by donald » 22 Jul 2015, 04:40

^
desktop --> gksudo not found
terminal -->./live-usb: line 206: lxterminal: command not found
(KDE 3.1--32)
nothing has been done (and nothing has been damaged..good)
maybe this module is for nekos porteus variant only

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: booting the porteus iso from a usb key

Post#12 by neko » 22 Jul 2015, 10:25

@donald
live-usb-3.1-noarch-2.xzm (336 K)
http://www.mediafire.com/download/dcb61 ... arch-2.xzm
md5sum: 792b31371226ba0129c0732fdfd51206 live-usb-3.1-noarch-2.xzm

was updated on 2015.07.22.
old: tool for only FVWM.
new: tool for all (KDE,MATE,LXQT,XFCE,LXDE,FVWM)

Thanks.

donald
Full of knowledge
Full of knowledge
Posts: 2065
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: booting the porteus iso from a usb key

Post#13 by donald » 23 Jul 2015, 03:30

Hello neko
I had kde-3.1 in RAM, activated the new module and created an usb-flash
with xfce-3.1.(bios mode)
All works well....(can not test uefi)

Because this is an universal tool, I don't mind about the unneeded
and/or double created Folders. (in this case)
They are for the FVWM porteus, right?

I don't want to be nitpicking,
but is it somehow possible (extra step) to choose the Partition size
and the Filesystem?

howsoever, great work...(as usual)
Thanks

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: booting the porteus iso from a usb key

Post#14 by neko » 23 Jul 2015, 14:46

@donald
Thank you for your use of the updated tool.

1. "double created Folders are for the FVWM porteus, right?"
Yes, you are right.
They are remnants of the directories that is designed for the persistence method of FVWM.
Those directories should be deleted at a next update.

2. "Is it somehow possible (extra step) to choose the Partition size and the Filesystem?"
Yes, it is possible.

But, Size and file system, it might be fixing the values in order to be a 'simple' tool.
And then the next tool updated to account for your kind suggestion.

Thanks.

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: booting the porteus iso from a usb key

Post#15 by neko » 01 Aug 2015, 14:01

@donald
It has been updated to take into account your suggestions.

live-usb-3.1-noarch-4.xzm (336 K)
http://www.mediafire.com/download/8u6g8 ... arch-4.xzm
md5sum: 9836f26a9a0ab48d5579b70ae7533c97 live-usb-3.1-noarch-4.xzm

[New functions]
The size of 1st. partition may be change.
The default size is minimum (ISO size).
The file system of 2nd. partition may be selected from ext4, ext3, and fat.
The default FS is ext4.

Thanks.

------------------------
updated 2015.08.09
Bug fix
BUG:If the 1st. partition size is max, this program will abort.
Last edited by neko on 09 Aug 2015, 06:05, edited 1 time in total.

Post Reply