New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
-
Mithrandil
- Power user

- Posts: 29
- Joined: 28 Dec 2010, 16:02
- Distribution: Gentoo, PixieLive
- Location: IT
-
Contact:
Post#1
by Mithrandil » 30 Dec 2010, 22:18
I tried the linuxrc of FanthomX, but it require too many changes to boot PixieLive (it's gentoo based), so i decided to stick to the linuxrc provided on linux-live.org (with some tweaks).
Anyway, I modified linuxrc to be able to boot from an ISO image, and since i like this feature, i will post here the patch, so fanthom can be inspired and may be add the feature also to the NamelessX distribution
download:
isoboot.patch
how-to apply the patch:
- place isoboot.patch in the same directory of your linuxrc
- delete isoboot.patch
notes:
- the patch is for the linuxrc provided with linux-live-6.3.0.tar.gz (http://www.linux-live.org)
- the cheatcode for the iso is:
- the boot directory can be found in /mnt/live/var/log/datafrom
enjoy
PixieLive developer www.pixielive.org
Mithrandil
-
fanthom
- Moderator Team

- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#2
by fanthom » 31 Dec 2010, 00:05
yes - i'm inspired and will introduce new cheatcode to my linuxrc: 'from_iso='
Syntax will be something like:
'from_iso=/dev/sdx/path/to/iso'
thanks a lot and similar ideas are welcome

Please add [Solved] to your thread title if the solution was found.
fanthom
-
Quax
- Full of knowledge

- Posts: 21
- Joined: 29 Dec 2010, 21:28
- Distribution: FluxFlux (ARM + x86), Slax7
- Location: Muelheim an der Ruhr, Germany
-
Contact:
Post#3
by Quax » 31 Dec 2010, 00:08
Hi Mithrandil,
Mithrandil wrote:...I modified linuxrc to be able to boot from an ISO image
I don't get the sense of patching an already present funtion into something...
LLS based distros are able to boot from ISO images for ages.
Given, that the ISO image is located on /dev/sda3, appending the following to the kernel call at boot will lead to the same:
Code: Select all
from=/dev/sda3/<name_of_the_iso_to_load>.iso
Did I miss something???
Regards, Quax
Erfahrung bedeutet gar nichts - man kann Dinge auch 15 Jahre lang falsch machen...
Experience means nothing - one could have done things wrong for the last 15 years...
Quax
-
Mithrandil
- Power user

- Posts: 29
- Joined: 28 Dec 2010, 16:02
- Distribution: Gentoo, PixieLive
- Location: IT
-
Contact:
Post#4
by Mithrandil » 31 Dec 2010, 00:28
Quax wrote:Hi Mithrandil,
Mithrandil wrote:...I modified linuxrc to be able to boot from an ISO image
I don't get the sense of patching an already present funtion into something...
LLS based distros are able to boot from ISO images for ages.
Given, that the ISO image is located on /dev/sda3, appending the following to the kernel call at boot will lead to the same:
Code: Select all
from=/dev/sda3/<name_of_the_iso_to_load>.iso
Did I miss something???
Regards, Quax
i never been able to use that function, it never worked for me

, that's why i wrote the patch... did you try it (the original one)?
anyway, with my patch you don't need to predict the name of the device where the iso is located

PixieLive developer www.pixielive.org
Mithrandil
-
Quax
- Full of knowledge

- Posts: 21
- Joined: 29 Dec 2010, 21:28
- Distribution: FluxFlux (ARM + x86), Slax7
- Location: Muelheim an der Ruhr, Germany
-
Contact:
Post#5
by Quax » 31 Dec 2010, 00:32
maybe you didn't store the ISO image in the root of the device given ???
Quax
Erfahrung bedeutet gar nichts - man kann Dinge auch 15 Jahre lang falsch machen...
Experience means nothing - one could have done things wrong for the last 15 years...
Quax
-
Mithrandil
- Power user

- Posts: 29
- Joined: 28 Dec 2010, 16:02
- Distribution: Gentoo, PixieLive
- Location: IT
-
Contact:
Post#6
by Mithrandil » 31 Dec 2010, 00:49
damn, you are right, it works... but with the patch you don't have to predict the name of the device where the iso is located, which may be a problem for unexperienced users
PixieLive developer www.pixielive.org
Mithrandil
-
blablotin
- Black ninja

- Posts: 67
- Joined: 04 Jan 2011, 22:59
- Location: Euro
Post#7
by blablotin » 04 Jan 2011, 23:02
Mithrandil wrote:damn, you are right, it works... but with the patch you don't have to predict the name of the device where the iso is located, which may be a problem for unexperienced users
Does it mean that the cheatcode "from=" albready work on slax remix to boot from any ISO image?
blablotin
-
fanthom
- Moderator Team

- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#8
by fanthom » 05 Jan 2011, 10:24
'from=' is no longer used here. I have replaced it with 'from_dev=', 'from_dir=' and (will be introduced in 1.0) 'from_iso='. please have a look on the changelog for more info about 'from_iso=":
http://forum.porteus.org/viewtopic.php?f=44&t=82
Please add [Solved] to your thread title if the solution was found.
fanthom
-
Tonio
- Contributor

- Posts: 276
- Joined: 28 Dec 2010, 16:37
- Distribution: Slackware,porteus,FreeBSD,Slax
- Location: 127.0.0.1
Post#9
by Tonio » 16 Jan 2011, 01:38
There is a nice script that may allow users to have the two versions (32 bit and 64 bit Porteus) on usb stick. This would be nice to use :
http://pcplus.techradar.com/feature/lin ... b-30-12-10
I have posted this here, since it addresses booting from iso image(s), this way we can put the two isos on the usb stick and boot them with this multi loader. What do others think?
Tonio
-
fanthom
- Moderator Team

- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#10
by fanthom » 16 Jan 2011, 09:30
@Tonio
Porteus-v09 has 'from_iso=' cheatcode - you can unpack just /boot folder on usb stick, run bootinst.bat (to make it bootable) and then point loader to ISO image with full patch. Example:
'from_iso=/dev/sdb1/linux-images/porteus-v09-i486.iso'
it's not a perfect solution for multi-boot as for 64bit version you will need a second /boot folder with 64bit kernel, initrd.lz, etc
That's why your method sounds better, as well as grub4dos one mentioned by ponce in other thread and here:
http://www.pendrivelinux.com/boot-multi ... iboot-usb/
Cheers
Please add [Solved] to your thread title if the solution was found.
fanthom