Porteus USB live install

Non release banter
User avatar
M. Eerie
Moderator
Moderator
Posts: 711
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Porteus USB live install

Post#46 by M. Eerie » 27 Mar 2025, 12:37

robang74 wrote:
26 Mar 2025, 19:51
SUGGESTION: when using old, cheap and slow 2.0 USB stick, go for VFAT LIVE installation.
Indeed. Anyway, it wasn't your script that failed. It was an old stick that I was hoping would work because it contains a small led to indicate I/O operations. When not working with journaling, it would have been a small but great help instead of having to resort to sync or watching with btop if write operations have finished. As for the other one... it was a disaster due to a power outage. :rant:

As practically everything in the latter I have duplicated (although scattered) and is a 3.1 one, I have used it to test the usb-install version of your script and it works well. However, I am testing with Nemesis instead of Porteu{s,x}. Although it works relatively well, I don't know exactly where to place the "config" folder. If I put it in the first partition, the cheatcodes seem to be ignored. If I put them in the second partition, I still get multiple errors related to etmpfiles (among others) if I remember correctly.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=102066#p102066
https://forum.porteus.org/viewtopic.php?p=102306#p102306
https://forum.porteus.org/viewtopic.php?p=72741#p72741

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#47 by robang74 » 27 Mar 2025, 13:19

M. Eerie wrote:
27 Mar 2025, 12:37
it would have been a small but great help instead of having to resort to sync or watching with btop if write operations have finished.
My script usb-install (which is also used by net-install) clearly states when the usb is sync and eject it, so you do not need look at anything but just wait.

ERRATA CORRIGE

Old and slow USB sticks can timeout the umount synchronisation timeout and also eject would fail. In this corner case, as long as exist the device in `/proc/partitions`, it means that it cannot be safely disconnected. However, much probably it does not worth using it. *HERE* :oops:

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#48 by robang74 » 27 Mar 2025, 15:59

M. Eerie wrote:
27 Mar 2025, 12:37
However, I am testing with Nemesis instead of Porteu{s,x}
Who choose that name make a "marketing" mistake. A correct name would be Portartix. Gemini2 in this case did not get the point. That half of times in which AI fails appalling.

=== GEMINI2's OPINION ===

You've raised an interesting point about naming conventions, especially in the Linux world. While "Portartix" does sound like a logical combination of "Porteus" and "Artix," there are several reasons why the developers might have chosen "Nemesis Linux" instead.

Here's a breakdown of the considerations:

* **Branding and Uniqueness:**
* "Portartix" is descriptive, but it might lack a distinct brand identity.
* "Nemesis" has a stronger, more evocative feel, which can be more memorable.
* Developers might have wanted to create a unique identity for their project.
* **Target Audience:**
* "Nemesis" might appeal to a specific audience, such as those interested in security or advanced system customization.
* The name could imply a powerful and capable system.
* **Avoiding Naming Conflicts:**
* There might have been concerns about potential naming conflicts or trademark issues.
* **Community and Project Goals:**
* The developers might have had specific goals or a vision for the project that aligned with the name "Nemesis."
* The name Nemesis, could imply that the distribution is meant to be a very strong, and powerful system.
* **Marketing is subjective:**
* What is a good marketing name, is very subjective. While Portartix is very descriptive, it might not be very catchy.

While "Portartix" is certainly a logical and descriptive name, "Nemesis Linux" might have been chosen for its branding potential, target audience appeal, or other strategic reasons.

[/code]

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#49 by robang74 » 27 Mar 2025, 18:03

M. Eerie wrote:
27 Mar 2025, 12:37
instead of having to resort to sync or watching with btop
Try the main head, and for watching the synchronisation, you can use `iotop` also. When you got an error, try to us `bash -x` for wacht the code that fails. Some path, should be create with `mktemp`. Like sanity check about executable dependencies, I place some changes at the end of the working queue. In particular, because I am interested using busybox (or toybox) to execute the script. In such a way, all the dependencies are resolve at the beginning.

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#50 by robang74 » 27 Mar 2025, 20:26

M. Eerie wrote:
27 Mar 2025, 12:37
If I put them in the second partition, I still get multiple errors related to etmpfiles (among others) if I remember correctly.
Af far as, it concern one script of mine, you can open an issue and fulfill it with information which would be useful for debugging

https://github.com/robang74/porteus-usb ... ler/issues

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

Porteus USB live install

Post#51 by Ed_P » 27 Mar 2025, 20:41

robang74 wrote:
27 Mar 2025, 15:59
Who choose that name make a "marketing" mistake. A correct name would be Portartix. Gemini2 in this case did not get the point.
The founder of Porteus, :worthy: brokenman. [README FIRST PLEASE] How to get Nemesis

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#52 by robang74 » 27 Mar 2025, 21:35

Ed_P wrote:
27 Mar 2025, 20:41
The founder of Porteus, brokenman. [README FIRST PLEASE] How to get Nemesis
Which part of "please, do not intervene in my comments and posts" did you not understand? Someone can be a genius in technical terms and have no clue about marketing or at that time Nemesis was NOT YET a popular name of something ELSE (pre-2016). The problem of a brand collision is not just a matter of brand violation (whatever it might exists in this case). It also a problem of identity. Who search on Google/Bing et. all, found something ELSE and usually it is hard to get the information we like to find with a single keyword in the 4th page (80-100 links after).

So, what is your aim behind your comment? Knees to someone? Churches are for that, and considering their millenarian foundation, we can agree that it is the right place to go for that. Hoping that someone great like someone else was in the past will arrive to make great things again? S/he would someone who changes the rules you are used to, and I am not not sure you will be happy and welcome him/her. At least because in IT, a technological generation is 18 months unless we are talking about fundamentals like bash - but I did not see here around people who are great at that. Unsurprisingly, after all it is a forum, do you know the etymological meaning of 'forum' word?.

Or are you supporting the idea that great people like Dennis Ritchie who invented the C language and part of the foundation of the Posix/Unix from which derives Windows NT, Linux, GNU, Android, Google Chrome OS e Mac OS X should die almost ignore expecially because in those days almost everyone was crying for another genius but in marketing, Steve Jobs? What's about - instead - having some of both? Would be a more balanced way to go? Ubuntu, is that. They pretty demonstrated that a little of marketing brings to be #1, despite the much more seasoned RedHat and SuSE or even Debian.

So, you started again to comment here despite my advice. Good for you: you won the opportunity to elaborate and express your thoughts here. Then, given this opportunity, please take care of your business. Do not infestate EVERY thread like you were a ghost into a old creepy house, try to have a life. We are trying to carry on a work here - it might not interest you - but this does not matter. It is how things evolve in IT, stagnation and then a jump forward. Also natural evolution does the same in the wild and virus are the best way to check about it, the easiest also, because their are on the scale of complexity just the entry point from the organic chemistry and biology basics. :shifty:
You've highlighted important considerations about branding, user experience, and the challenges of promoting Linux distributions. A successful project needs to consider not only its technical merits but also its accessibility and marketability.

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

Porteus USB live install

Post#53 by Ed_P » 28 Mar 2025, 04:44

robang74 wrote:
27 Mar 2025, 21:35
Which part of "please, do not intervene in my comments and posts" did you not understand?
The part where you think I listen to what you want.

Now the part where you get to understand, you post any more postings more than 24 non-code lines I will delete them. Server space is not free, you're not paying for this forum's servers and nonsensical personal ramblings' are a waste of resources.

Porteus members are a team, and we all play as one. If you can't work with us, find someplace else.

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#54 by robang74 » 28 Mar 2025, 22:24

ncmprhnsbl wrote:
27 Mar 2025, 05:15
for v5.1apha2 (new dev release)
I have released the v0.3.3 and soon I will take care to try the alpha2. This script is capable to complete a USB write in less than 40s using a Kodak K122 USB 2.0 which is fast in sequential R/W but a nightmare in terms of 4K random R/W. Using the journaling in the version EXT4 installation. With the LIVE with persistence saved into a loop file into VFAT, I have seen times around 30s (28s-33s). Interisting.

Code: Select all

mkdir -p usbtest; cd usbtest; DEVEL=0;
bash <(wget -qO- tinyurl.com/2atj2ubq)
I hope this helps, R-
Last edited by Ed_P on 28 Mar 2025, 23:15, edited 1 time in total.
Reason: Reduce screen scrolling

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#55 by robang74 » 31 Mar 2025, 15:50

This version of the usb-install script is quite important:
because is the last version of the one that introduces:

Code: Select all

if [ "$DEVEL_ZEROING" == "1" ]; then
    perr "WARNING"\\n
    perr "WARNING: devel zeroing ... "
    timereal ddsync : if=/dev/zero bs=1M count=1 of=/dev/${dev}
    perr "WARNING"\\n\\n
    devflush; partprobe
fi
In fact, the main idea is to create a bootable USB pendrive quick (kiosk mode) which EXT4 will be finalised during its use, no matter when or how it would be detached from the USB port. Read the last part again to appreciate the magic. Obviously, there is a drawback, the first time(s) in use, the system will appear a little slower in dealing with the writings.

So, the bootable USB stick is ready when the script tells you that you can safely detach it. Instead, if you live attached then the kernel will complete the work on the EXT4 filesystem. To see these actions, use `sudo iotop` with `CRTL-T` if that option is not enabled by default. You will see the kernel threads like tune2fs, mkfs.ext4 and dumpfs doing their job in the background.

This means that inserting this USB pendrive to rewrite it with the usb-install script will take you a much longer time. Because, the kernel will complete the previous tasks about finalising the EXT4 filesystem and THEN, it will provide to fulfill the duties related to write the data from the script. Unless `DEVEL_ZEROING=1` has been used before.

The `DEVEL_ZEROING=1` creates the bootable USB stick as usual and before the kernel gets in charge to finalise the EXT4 filesystems, it destroys them with zeros. The final outcome is a useless pendrive but it is immediately ready to be reused - even without detaching and re-attach to the USB port - for another usb-install round, as it were the first time.

This allows a developer or a tester to check the performance of the writing process in a quick and reliable manner. So, if you did not see the same performance claimed in the `README.md` of the related github project, now you know why. Counter fact-checking? Use iotop to see when the EXT4 finalising processes end, THEN check creation time. *HERE* B)

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#56 by robang74 » 31 Mar 2025, 22:36

robang74 wrote:
31 Mar 2025, 15:50
the kernel gets in charge to finalise the EXT4 filesystems
How to compensate the drawback of the Kiok mode without losing its benefits? There are many ways. The most straightforward is to create a EXT4 relatively small like 1GB or/ans finalize the filesystem in RAM before transfer with dd to the USB.
Which is this script is aiming to achieve. For the moment in 1st version. Hence creates more troubles than these it solves. After all, it would be uncommon that something works at its first debut.

Anyway, ASAP on the last version of the usb-install, I will reduce the EXT4 to a smaller size on both version LIVE and EXT4 in such a way that both can fits into a 2Go (2x10^9 bytes) USB pendrive. So, the v0.3.4, will start to compensate as well as the v0.3.3 does but with a more precise minimum target (2Go).

I agree that USB pendrive 2GB are slow ans should be avoided. BUT... :)

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#57 by robang74 » 01 Apr 2025, 06:14

== ABOUT BUSYBOX ==

Using this one, the self contained Busybox patched by Nadav Tasher as a fork, call it Busybox NT

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#58 by robang74 » 02 Apr 2025, 08:50

The v0.3.4 is out and it compensate in a reasonable way the drawback of the Kiosk mode for which has been designed the usb-install script.

https://github.com/robang74/porteus-usb ... stallation

Here below some numbers (not stats but reasonable inline with my experience) and a quick way to install into a PC in a destructive way.

Code: Select all

INFO: Creation LIVE usbstick completed in 33 seconds.

Device     Boot   Start     End Sectors  Size Id Type
/dev/sda1  *       2048 2459647 2457600  1.2G  7 HPFS/NTFS/exFAT
/dev/sda2       2459648 3893247 1433600  700M 83 Linux

INFO: Creation EXT4 usbstick completed in 46 seconds.

Device     Boot   Start     End Sectors  Size Id Type
/dev/sda1  *       2048   34815   32768   16M  7 HPFS/NTFS/exFAT
/dev/sda2         34816 3885055 3850240  1.8G 83 Linux

INFO: boot by EXT4 ubstick, and to proceed with an installation type:

dd if=/dev/sdb bs=1M count=2k of=/dev/sda status=progress oflag=dsync

This will overwrite data on /dev/sda installing a working EXT4 system.
By the way, someone can tell me - or redirect to a page - about the two executables contained into the ISO for windows and dos?

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4289
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Porteus USB live install

Post#59 by ncmprhnsbl » 03 Apr 2025, 02:27

robang74 wrote:
02 Apr 2025, 08:50
By the way, someone can tell me - or redirect to a page - about the two executables contained into the ISO for windows and dos?
presuming you're referring to these:
what they are:

Code: Select all

> file Porteus-installer-for-Linux.com 
Porteus-installer-for-Linux.com: POSIX shell script executable (binary data), self-executable archive, Makeself 2.5.0

> file Porteus-installer-for-Windows.exe 
Porteus-installer-for-Windows.exe: PE32 executable for MS Windows 4.00 (GUI), Intel i386, 4 sections
what they do: make a porteus frugal install bootable for legacy bios systems, via extlinux and mbr.bin binaries contained within their archives.
one "-for-Linux" ie.on a linux host.
one "-for-Windows" ie. on a windoze host.
they are either used by the onboard gui installer(ie. from within a live porteus) or directly from a host as per the instructions ala USB_INSTALLATION.txt.
for clarity, what they don't do:
format or partition anything
copy any folder or files

if you want to pull them apart:
./Porteus-installer-for-Linux.com --no-exec --keep
windows one, 7zip will do it, i think.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

robang74
Black ninja
Black ninja
Posts: 58
Joined: 20 Mar 2025, 02:16
Distribution: Ubuntu

Porteus USB live install

Post#60 by robang74 » 03 Apr 2025, 07:33

ncmprhnsbl wrote:
03 Apr 2025, 02:27
presuming you're referring to these
Thanks for the answer. I am going to release the v0.3.5 soon which contains the DVI-VGA adapters friendly /home/guest/.xprofile and stabilise the timings/creation of both variants. However, the usb-install script is removing the *.com and *.exe in /boot because I am not sure that they can work with Moonwalker.

Soon, I will put the args into porteus-v5.x-x86_64.cfg as much as possible or completely. So, who was wondering about this aspect, everything comes at its own time. However, I have noticed that such a file is present in the skeleton archive which is wrong, IMHO. Those who wish to upgrade their usbsticks, are going to overwrite it by a new config which is functionally equivalent to a void file.

Would it not be better to save into that archive in porteus-v5.x-x86_64.txt (or any other extension you like)? Moreover, why porteus-v5.1-x86_64.cfg instead of porteus.cfg? Or porteus-custom.cfg or porteus-user.cfg? Does it matter the version and the architecture? As soon as I update the kernel, I MUST remember that I have to rename the cfg-file as well. In case I manage to install two kernels, I need a copy.

As you can see the /boot/syslinux/porteus.cfg is a more stable filename and despite having the same chance to be overwritten by an update, it has the advantage that being part of the /boot content, it is clear that an update of that folder would overwrite the previous configuration. So, my choice was not completely lacking in reasoning despite the fact that I did not make convoluted thinking to make it.

Please, consider the idea of renaming porteus-v5.x-x86_64.cfg and avoid that an update can overwrite it.

Best regards, R-

Post Reply