Page 1 of 2

Live USB disk Creation

Posted: 06 Nov 2021, 12:11
by raja
Request to Porteus development team...

neko has done a neat graphical user interface for live usb creation from ISO, for APorteus, from brokenman's script .

Porteus could use that with his permission. Original script uses msdos fs(16bit) for first partition formatting. It shall be changed to FAT32 & recompiled.No idea whether neko changed that, as I have not used the GUI yet.

Live USB disk Creation

Posted: 06 Nov 2021, 19:18
by Ed_P
raja wrote:
06 Nov 2021, 12:11
neko has done a neat graphical user interface for live usb creation from ISO, for APorteus, from brokenman's script .
Link??

Live USB disk Creation

Posted: 06 Nov 2021, 21:01
by beny
Ed_P, you have to use Aporteus for this software i think, but not sure........

Live USB disk Creation

Posted: 06 Nov 2021, 21:54
by Ed_P
beny wrote:
06 Nov 2021, 21:01
Ed_P, you have to use Aporteus for this software i think, but not sure........
Me either but a review of the script might answer that. Got a link?

Live USB disk Creation

Posted: 07 Nov 2021, 17:08
by raja
neko's GUI for USB installation...

Image

code by brokenman...for bios pc for partition using fdisk....

Code: Select all

#!/bin/bash

ISO=$1
USB=$2
FPT=$3
SPT=$4

#==== create USB partitions ====#
format1_usb()
{
fdisk $USB << EOF
o
n
p
1


t
c
a
1
w
EOF

# Set MBR (boot code)#
cat /usr/share/live-usb/lib/mbr.bin > ${USB}

# Format partition 1
mkdosfs ${USB}1
}

format2_usb()
{
if [ "${SPT:0:3}" = "fat" ]
then
	FS=c
else
	FS=83
fi

fdisk $USB << EOF
o
n
p
1

+${FPT}M
t
c
n
p
2


t
2
${FS}
a
1
w
EOF

# Set MBR (boot code)#
cat /usr/share/live-usb/lib/mbr.bin > ${USB}

# Format partition 1
mkdosfs ${USB}1

# Format partition 2
case $SPT in
ext4)
	mkfs.ext4 -F ${USB}2
	;;
ext3)
	mkfs.ext3 -F ${USB}2
	;;
*)
	mkdosfs ${USB}2
	;;
esac
}

Live USB disk Creation

Posted: 07 Nov 2021, 17:49
by Ed_P
I like the GUI and I like the script (good old brokenman. I miss him.) and I would like to test them but for that I need a link.

As for

Code: Select all

# Format partition 1
mkdosfs ${USB}1
}
msdosfs doesn't default to fs 16bit according to this write up:
https://linux.die.net/man/8/mkdosfs wrote:-F FAT-size
Specifies the type of file allocation tables used (12, 16 or 32 bit). If nothing is specified, mkdosfs will automatically select between 12, 16 and 32 bit, whatever fits better for the file system size.
I think creating a Porteus module for this would be an excellent idea.

Live USB disk Creation

Posted: 08 Nov 2021, 22:22
by beny
hi Ed_P live-usb is a bit nested like software in Aporteus is part of xorg package,i have done in a stock porteus with deps and put the directory into the right path and work,but i can't make a standalone package no skill.
/mnt/sdk1/porteus/modules/live-usb-deps/GConf-3.2.6-x86_64-7.xzm
/mnt/sdk1/porteus/modules/live-usb-deps/gksu-2.0.2-x86_64-1ponce.xzm
/mnt/sdk1/porteus/modules/live-usb-deps/gtk+2-2.24.33-x86_64-2.xzm
/mnt/sdk1/porteus/modules/live-usb-deps/gtkdialog-0.8.3-x86_64-1ponce.xzm
/mnt/sdk1/porteus/modules/live-usb-deps/gtkextra-3.3.3-x86_64-1ponce.xzm
/mnt/sdk1/porteus/modules/live-usb-deps/libgksu-2.0.12-x86_64-2ponce.xzm
/mnt/sdk1/porteus/modules/live-usb-deps/libgnome-keyring-3.12.0-x86_64-4.xzm
/mnt/sdk1/porteus/modules/live-usb-deps/libgtop-2.40.0-x86_64-5.xzm
and this porteus is made with the live-usb tool and work like a charm..... the path of live-usb directory is /usr/share and the launcher is /usr/share/application and the icon in /usr/share/pixmaps if you want to try it....

Live USB disk Creation

Posted: 09 Nov 2021, 00:37
by Ed_P
I would like to try it beny but I need a link to the GUI and maybe your live-usb ISO to figure it all out.

Added in 5 hours 19 minutes 16 seconds:
Is this the APorteus ISO link you're all referring to? ArchLinux packages manager for Porteus (Post by neko #36689)

Live USB disk Creation

Posted: 09 Nov 2021, 13:04
by beny
hi Ed_P the Aporteus version running on my system is 21-06-27 xfce, the files you need are in 002-z.xorg.xzm unsquashfs the package and follow the path that i have write above, this software do not have gui the live-usb main script when it run make the gui with gtkdialog i think,if you use to save the changes you can put the files into the changes directories,so you have at every boot,if you have a spare usb key try it

Live USB disk Creation

Posted: 09 Nov 2021, 13:59
by Ed_P
beny in the APorteus ISO I downloaded there is a 004-buildiso-21.11.04.xzm in the /porteus/modules/ folder.

Added in 1 hour 36 minutes 2 seconds:
So, I booted the APorteus ISO that I downloaded and found the Live ISO entry in the menu, I started it and it did open the GUI.

I extracted the 004-buildiso module, booted my Cinnamon system, activated the 004-buildiso module and APorteus ISO Builder is in my Porteus > Administration menu. :good:

However, the menu item has no icon and clicking on it does not bring up the GUI or anything else.

The APorteus ISO did have another module in it's /porteus/modules folder, 05-devel.xzm. Maybe it's required.

Live USB disk Creation

Posted: 09 Nov 2021, 16:07
by beny
hi Ed_P when you run Aporteus right, go to the usr/share directory and pull out the live-usb folder, and the launcher in applications and also the icon,when you run porteus with the deps list installed you have to do the opposite put the file back on porteus in the same path and if all went ok run the software,is just something on the fly,just to try it.

Live USB disk Creation

Posted: 09 Nov 2021, 16:24
by Ed_P
Activating the 05-devel module didn't help.

Trying to open the 004 module was a bit of a surprise. It wouldn't open with the archive manager or 7-zip! :o

Live USB disk Creation

Posted: 09 Nov 2021, 16:45
by beny
Ed_P the isobuilder is different from the live-usb is another task live-usb choose the device, the size of partition, the boot options: bios or efi
and install the iso of porteus you want,after this you can boot the usb key system. and if you want to open a module copy it and in terminal unsquashfs name of the file and when you have done mksquashfs name of the module .xzm, btw root account .

Live USB disk Creation

Posted: 09 Nov 2021, 16:47
by Jack
Ed_P wrote:
09 Nov 2021, 16:24
Activating the 05-devel module didn't help.

Trying to open the 004 module was a bit of a surprise. It wouldn't open with the archive manager or 7-zip! :o
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.

Live USB disk Creation

Posted: 09 Nov 2021, 17:12
by Ed_P

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