Live USB disk Creation

Non release banter
Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Live USB disk Creation

Post#16 by Jack » 09 Nov 2021, 19:05

Ed_P wrote:
09 Nov 2021, 17:22

Code: Select all

guest@porteus:~$ guibuildiso
/usr/local/bin/guibuildiso: line 16: /usr/local/share/archspm/bin/arch_mirror.inc: No such file or directory
guest@porteus:~$ 
Jack wrote:
09 Nov 2021, 16:47
To open 004 module you would have to go back to Porteus 5.0rc1 that what I found out to use archive manager or 7-zip.
Thank you Jack. I'm not sure I have those ISOs any longer. I'll try Porteus 4.0. :)

Added in 10 minutes 20 seconds:
Failed to open in Porteus 4.0 also. :o
I just try Porteus 5.0rc1 on porteus-current-20191101.zip and 002-xorg.xzm and both open up.

EDIT: I have screenshot if you want to see them.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

Live USB disk Creation

Post#17 by Ed_P » 10 Nov 2021, 04:07

I've tried several 5.0rc1 ISOs and kept getting caught in signin loops.

neko suggested this option.
neko wrote:
10 Nov 2021, 02:47
@Ed_P
Please refer to ArchLinux packages manager for Porteus (Post by neko #85445)
"ArchLinux packages manager for Porteus" topics
Added in 15 hours 57 minutes 54 seconds:
I tried neko's suggestion in the link he sent me to and was able to decompress the buildiso module but I don't see the code for the Live USB disk Creation in it. :(

Added in 21 hours 53 minutes 50 seconds:
Ok, I'm still working on this beny and using your Nov 9 postings for guidance. APorteus doesn't like my touchpad so using its file manager is awkward for me. If you want to try making a module for the USB Build files you have you can use my make_mod script for USM as an example.

Code: Select all

#!/bin/bash

# Save USM as a mod file 

MOD=USM
VRSN=`grep "VERSION=" /etc/usm/version.txt` ; VRSN=${VRSN:11} ; MOD=USM$VRSN   
TO=/mnt/sda6/porteus5.0/Optional

DIR () {
ls -lght --time-style long-iso $1 | awk '{print $5,$6,$4,$7}'
}

if [ `whoami` != "root" ]; then
    echo "Enter root's password"
    su -c "sh $0 $1"
    exit
fi

if [ -d /tmp/mod/ ]; then
   rm -rf /tmp/mod
fi
mkdir -p  /tmp/mod

# copy mod files

cp -a --parents    /etc/usm/*                                     /tmp/mod/
cp -a --parents    /var/usm/                                      /tmp/mod/
cp -a --parents    /usr/bin/usmgui                                /tmp/mod/
cp -a --parents    /usr/bin/usm                                   /tmp/mod/
cp -a --parents    /usr/bin/gksu                                  /tmp/mod/
cp -a --parents    /opt/porteus-scripts/xorg/psu                  /tmp/mod/
cp -a --parents    /usr/share/icons/hicolor/48x48/apps/usm.png    /tmp/mod/
cp -a --parents    /usr/share/applications/usm.desktop            /tmp/mod/
cp -a --parents    /usr/share/usm/*                               /tmp/mod/
cp -a --parents    /home/guest/USM/usmupdate2021.sh               /tmp/mod/
cp -a --parents    /home/guest/mkmods/mkmodusm.sh                 /tmp/mod/   # :-)

echo
du -ch  /tmp/mod/  
echo Changed files copied. Press Enter to create module, Ctrl+C to exit.
read

du -h   /tmp/mod/
echo 
dir2xzm /tmp/mod /tmp/$MOD.xzm     &&     rm -rf /tmp/mod

echo 
ls -sh  /tmp/*.xzm
#read

echo
echo Press Enter to copy /tmp/$MOD.xzm to $TO, Ctrl+C to exit.
DIR     /tmp/$MOD.xzm 
if [ -f /$TO/$MOD.xzm ]; then DIR /$TO/$MOD.xzm; fi 
read
cp      /tmp/$MOD.xzm  /$TO
echo Finished!
read
exit
Ed

beny
Full of knowledge
Full of knowledge
Posts: 2092
Joined: 02 Jan 2011, 11:33
Location: italy

Live USB disk Creation

Post#18 by beny » 18 Nov 2021, 16:33

hi Ed_P just for the record, i have used the porteus 3.2.2 and the tool create live usb is in if you want to try.....

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

Live USB disk Creation

Post#19 by Ed_P » 18 Nov 2021, 23:22

Thank you beny.

I had actually found the live-usb in APorteus and had copied the files to my hdd to work on later but never got to it. Your 3.2.2 suggestion was helpful getting me to follow through on creating a module since I still had a 3.2.2 ISO. :)

I tried the 3.2.2 ISO, found all the live-usb related files (using a trick I learned from Rava) and created a script to make a module of them.

Code: Select all

#!/bin/bash

# Save Porteus 3.2.1 live-usb as a mod file 
# Doesn't work in 3.2.2  ::  https://forum.porteus.org/viewtopic.php?t=6548

MOD=live-usb
VRSN="3.2.1"  
TO=/mnt/sda6/porteus5.0/Optional

DIR () {
ls -lght --time-style long-iso $1 | awk '{print $5,$6,$4,$7}'
}

if [ `whoami` != "root" ]; then
    echo "Enter root's password"
    su -c "sh $0 $1"
    exit
fi

if [ -d /tmp/mod/ ]; then
   rm -rf /tmp/mod
fi
mkdir -p  /tmp/mod

# copy mod files
# root@porteus:/usr/share# find . live-usb | grep "live-usb"

cp -a --parents    /usr/share/pixmaps/live-usb.png                /tmp/mod/
cp -a --parents    /usr/share/pixmaps/porteus/usbstick-128.png    /tmp/mod/
cp -a --parents    /usr/share/applications/live-usb.desktop       /tmp/mod/
cp -a --parents    /usr/share/live-usb/*                          /tmp/mod/
cp -a --parents    /home/guest/mkmodliveusb.sh                    /tmp/mod/   # :-)

echo
du -ch  /tmp/mod/  
echo "Changed files copied. Press Enter to create module, Ctrl+C to exit."
read

du -h   /tmp/mod/
echo 
dir2xzm /tmp/mod /tmp/$MOD.xzm     &&     rm -rf /tmp/mod

echo 
ls -sh  /tmp/*.xzm
#read

echo
echo "Press Enter to copy /tmp/$MOD.xzm to $TO, Ctrl+C to exit."
DIR     /tmp/$MOD.xzm 
if [ -f /$TO/$MOD.xzm ]; then DIR /$TO/$MOD.xzm; fi 
read
cp      /tmp/$MOD.xzm  /$TO
echo Finished!
read
exit
Executing the script lead me to a 3.2.2 problem, Invalid argument, so I had to find a 3.2.1 ISO and hope it had create live-usb also.

The 3.2.1 ISO I downloaded and used did indeed have the live-usb app and my script ran. I then booted 5.0rc3 and tried the liveusb.xzm module which resulted in this:

Code: Select all

guest@porteus:~$ live-usb
bash: live-usb: command not found
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# live-usb
bash: live-usb: command not found
root@porteus:/home/guest# /usr/share/live-usb/bin/live-usb
root@porteus:/home/guest# 
No error msgs and no input window. :o :%)

BTW Porteus 5.0 and I believe 3.2 also has the Menu>Admin>Porteus Installer app which writes to USB drives.
Ed

Post Reply