Live USB disk Creation

Non release banter
raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Live USB disk Creation

Post#1 by raja » 06 Nov 2021, 12:11

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.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

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

Live USB disk Creation

Post#2 by Ed_P » 06 Nov 2021, 19:18

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??
Ed

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

Live USB disk Creation

Post#3 by beny » 06 Nov 2021, 21:01

Ed_P, you have to use Aporteus for this software i think, but not sure........

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

Live USB disk Creation

Post#4 by Ed_P » 06 Nov 2021, 21:54

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?
Ed

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Live USB disk Creation

Post#5 by raja » 07 Nov 2021, 17:08

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
}
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

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

Live USB disk Creation

Post#6 by Ed_P » 07 Nov 2021, 17:49

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.
Ed

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

Live USB disk Creation

Post#7 by beny » 08 Nov 2021, 22:22

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....

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

Live USB disk Creation

Post#8 by Ed_P » 09 Nov 2021, 00:37

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)
Ed

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

Live USB disk Creation

Post#9 by beny » 09 Nov 2021, 13:04

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

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

Live USB disk Creation

Post#10 by Ed_P » 09 Nov 2021, 13:59

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.
Ed

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

Live USB disk Creation

Post#11 by beny » 09 Nov 2021, 16:07

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.

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

Live USB disk Creation

Post#12 by Ed_P » 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
Ed

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

Live USB disk Creation

Post#13 by beny » 09 Nov 2021, 16:45

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 .
Last edited by beny on 09 Nov 2021, 16:49, edited 1 time in total.

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

Live USB disk Creation

Post#14 by Jack » 09 Nov 2021, 16:47

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.
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: 8373
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Live USB disk Creation

Post#15 by Ed_P » 09 Nov 2021, 17:12

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
Ed

Post Reply