Installation failed with error code '3'

Arch based Porteus community project

Moderator: M. Eerie

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Installation failed with error code '3'

Post#1 by rych » 09 Jun 2021, 06:14

1. A new USB stick formatted as usual with

Code: Select all

mkfs.ext4 -m 1 /dev/sdd
tune2fs -o journal_data_ordered /dev/sdd
from the 2021 Updated Nemesis Base Modules:
2. Downloaded and extracted into the root the content of skel.zip

Code: Select all

root@porteus:~# ls -la /mnt/sdd
total 28
drwxr-xr-x  6 root root 4096 Jun  9 17:52 ./
drwxr-xr-x 10 root root 4096 Jun  9 17:33 ../
drwxr-xr-x  3 root root 4096 Jan  7  2016 EFI/
-r--r--r--  1 root root 1141 Jan  7  2016 USB_INSTALLATION.txt
drwxr-xr-x  4 root root 4096 Jun  9 17:53 boot/
drwxr-xr-x  2 root root 4096 Jan  7  2016 config/
drwxr-xr-x  6 root root 4096 Jan 29  2018 porteus/
3. Downloaded the new modules and put them into

Code: Select all

root@porteus:~# ls -la /mnt/sdd/porteus/base
total 471476
drwxr-xr-x 2 root root      4096 Jun  9 17:55 ./
drwxr-xr-x 6 root root      4096 Jan 29  2018 ../
-rwxrwxrwx 1 root root  68165632 Jun  9 17:27 000-kernel-5.4.16.xzm*
-rwxrwxrwx 1 root root 133410816 Jun  9 17:31 001-core-20210316.xzm*
-rwxrwxrwx 1 root root  68620288 Jun  9 17:32 002-gui-20210316.xzm*
-rwxrwxrwx 1 root root  46964736 Jun  9 17:32 002-xtra-20210316.xzm*
-rwxrwxrwx 1 root root  19320832 Jun  9 17:32 003-lxde-20210316.xzm*
-rwxrwxrwx 1 root root 146296832 Jun  9 17:32 05-devel-20210316.xzm*
3a. ...except the vmlinuz file which went into

Code: Select all

root@porteus:~# ls -la /mnt/sdd/boot/syslinux
total 5356
drwxr-xr-x 2 root root    4096 Jun 29  2019 ./
drwxr-xr-x 4 root root    4096 Jun  9 17:53 ../
-r--r--r-- 1 root root    2048 Jan  7  2016 boot.cat
-r--r--r-- 1 root root   38696 Jan  7  2016 chain.c32
-r--r--r-- 1 root root      20 Jan  7  2016 extlinux.conf
-rw-r--r-- 1 root root  699904 Jan  7  2016 initrd.xz
-r--r--r-- 1 root root   24576 Jan  7  2016 isolinux.bin
-r--r--r-- 1 root root    2048 Jan  7  2016 isolinux.boot
-r--r--r-- 1 root root      20 Jan  7  2016 isolinux.cfg
-r--r--r-- 1 root root   37888 Jan  7  2016 ldlinux.sys
-r--r--r-- 1 root root    1248 Jan  7  2016 lilo.conf
-r--r--r-- 1 root root   43575 Jan  7  2016 plpbt
-r--r--r-- 1 root root    3554 Jan 18  2016 porteus.cfg
-rw-r--r-- 1 root root  111876 Jan  7  2016 porteus.png
-r--r--r-- 1 root root      20 Jan  7  2016 syslinux.cfg
-r--r--r-- 1 root root  155792 Jan  7  2016 vesamenu.c32
-rwxrwxrwx 1 root root 4318592 Jun  9 18:03 vmlinuz*
root@porteus:~# 
Running the installer

Code: Select all

root@porteus:/mnt/sdd/boot# ./Porteus-installer-for-Linux.com
...
Installing Porteus to /dev/sdd
WARNING: Make sure this is the right partition before proceeding.

Type 'ok' to continue or press Ctrl+c to exit.
ok
Flushing filesystem buffers...

Using extlinux bootloader.
.porteus_installer/installer.com: line 281:  3583 Segmentation fault      $bin/extlinux.com -i "$IPT"/syslinux > /dev/null 2>&1

Installation failed with error code '3'.
Please ask for help on the Porteus forum: www.porteus.org/forum
and provide the information from /mnt/sdd/boot/debug.txt
Relevant sections in /mnt/sdd/boot/debug.txt:

Code: Select all

device: /dev/sdd
partition: /dev/sdd
partition number: 
partition mount point: /mnt/sdd
installation path: /mnt/sdd/boot
subfolder: 
filesystem: ext4
bootloader: extlinux
error code: 3
system: porteus.example.net 5.4.57-porteus x86_64
mount details: /dev/sdd /mnt/sdd ext4 rw,noatime,nodiratime 0 0
full partition scheme:
Disk /dev/loop0: 65.47 MiB, 68653056 bytes, 134088 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

...
Disk /dev/sdd: 29.45 GiB, 31625052160 bytes, 61767680 sectors
Disk model: SanDisk Ultra   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Have tried with 2 different USB sticks -- same error. Please help, Cheers

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

Installation failed with error code '3'

Post#2 by ncmprhnsbl » 09 Jun 2021, 08:14

i think this is a problem relating to newer kernels, the installer and syslinux.. to confirm this, try to install standard porteus-4.0 using the same host system ie. the one with the 5.4.57-porteus kernel that you used..
if i'm right that should fail too.. (because i think the nemesis boot folder is the same as what's in 4.0)
a workaround might be to use the boot folder from that host except for initrd.xz and vmlinuz (i'm guessing that's porteus-5.0rc2?) instead of the one from skel.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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

Installation failed with error code '3'

Post#3 by raja » 09 Jun 2021, 10:42

I have never tried ext4 fs in pen drive.

Manual installation:

Download syslinux-6.04 from this link.

copy files in bin folder to /usr/bin and bios folder to /usr/lib64/syslinux

start gparted. create 1 mb primary partition as FAT32 and the balance as ext4 partition

make /boot/syslinux folder in 1 mb fat32 partition

give this command

syslinux -a -d /boot/syslinux --install /mnt/sdxx

this will install syslinux-6.04 bootloader and copy ldlinux.sys and may be ldlinux.c32 to syslinux folder.

now copy from the bios folder , ldlinux.c32,libcom32.c32, libutil.c32,vesamenu.c32.chain.c32 to syslinux folder

copy syslinux,porteus cfg files, initrd.xz, vmlinuz to syslinux folder.

copy porteus folder to the ext4 partition

In porteus.cfg add from=/mnt/sdxx(ext4Partition id)

restart. Syslinux-6.04 will boot your porteus
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

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

Installation failed with error code '3'

Post#4 by raja » 09 Jun 2021, 11:24

Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

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

Installation failed with error code '3'

Post#5 by beny » 09 Jun 2021, 15:56

Disk /dev/sdk: 58,23 GiB, 62518853632 bytes, 122107136 sectors
Disk model: Cruzer Blade
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xfdee27fa

Dispositivo Avvio Start Fine Settori Size Id Tipo
/dev/sdk1 * 2048 122105855 122103808 58,2G 83 Linux
bash-5.1#

hi rych but you have formatted the whole device? or you have a boot partition like above sorry for the IT language

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Installation failed with error code '3'

Post#6 by rych » 11 Jun 2021, 07:58

ncmprhnsbl, yes the same Porteus-OPENBOX-v5.0rc2-x86_64.iso installs and boots fine on the new USB.

Your workaround formally works: I have kept the boot folder replacing only initrd.xz and vmlinuz. Booting from a new USB now gives me 1) the same boot menu from the v5.0rc2, where I've noticed if I select "Text mode", it's ignored and, 2) after a quick succession of console messages (something about OpenRC, checkboxes, perhaps some error messages, 3) I'm presented with a good old LXDE 4) which is however is fully defunct: cannot start any application and so on. 5) I rebooted from Ctrl+Alt+F2 console, back into my working 'host' USB. 6) Ran the same installer just in case:

Code: Select all

root@porteus:/mnt/sdd/boot# ./Porteus-installer-for-Linux.com
-- no errors, and tried booting the new USB. 7) No difference: boots into a broken LXDE desktop.

raja, I'm going to try your method next, but I suspect it's for UEFI boot. I'm using legacy USB boot. But I'm all for it, to have a special partition etc. Perhaps in the future my USB will boot both in UEFI and Legacy like Artix USB miraculously does (with a different graphical booter, but same system after that, how do they achieve that!?)

beny, and raja, My methods of having just one ext4 partition /dev/sdd has worked on normal Porteus fine. But please teach me how I should always partition my USB from now on. I thought if it's going to be Linux it should be ext4 and if I'm not booting with UEFI no need for the extra FAT32 partition. Or have I been wrong?
Last edited by rych on 11 Jun 2021, 12:56, edited 2 times in total.

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

Installation failed with error code '3'

Post#7 by beny » 11 Jun 2021, 08:52

ok rych ,you can bypass the installer doing this,if you do not need a primary partition,
dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/mbr.bin of=/dev/sdx ,the path of mbr.bin is from arch system porteus slackware is a different one try if work for you, this is the manual way to install syslinux on mbr,when i use dd with an .img file.

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Installation failed with error code '3'

Post#8 by rych » 11 Jun 2021, 13:03

beny, thanks, but couldn't I use the `Porteus-installer-for-Linux.com` anymore? Why is it included then? Does anyone use it here at all, successfully? Your instructions and those by raja's are a bit cryptic for a beginner like me, it's an undertaking! Is this what it takes to successfully install a bootable Nemesis Arch Porteus?

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

Installation failed with error code '3'

Post#9 by ncmprhnsbl » 11 Jun 2021, 13:09

rych wrote:
11 Jun 2021, 07:58
Your workaround formally works: I have kept the boot folder replacing only initrd.xz and vmlinuz. Booting from a new USB now gives me 1) the same boot menu from the v5.0rc2, where I've noticed if I select "Text mode", it's ignored and, 2) after a quick succession of console messages (something about OpenRC, checkboxes, perhaps some error messages, 3) I'm presented with a good old LXDE 4) which is however is fully defunct: cannot start any application and so on. 5) I rebooted from Ctrl+Alt+F2 console, back into my working 'host' USB. 6) Ran the same installer just in case:

Code: Select all

root@porteus:/mnt/sdd/boot# ./Porteus-installer-for-Linux.com

-- no errors, and tried booting the new USB. 7) No difference: boots into a broken LXDE desktop.
whatever is going on with lxde has nothing to do with the installer(that part is fixed). (although, to see the nemesis boot screen, i forgot to mention keeping the porteus.cfg and porteus.png (cosmetic only))
what exactly the problem is requires more information.. ie. various logs in /var/log : dmseg, messages, <the_openrc_one_i forget_what_it's_called>
or alternatively, try the xfce4 module and see if that makes any difference.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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

Installation failed with error code '3'

Post#10 by beny » 11 Jun 2021, 15:52

ok you have to format the key like this:sudo mkfs.ext4 /dev/sdaX the installer work on the root of the key,but you have to make a partition to put on porteus,btw i like to use gparted instead cli, try to do in this way put on the key the files cd on boot directory and run the installer.
-m reserved-blocks-percentage
Specify the percentage of the filesystem blocks reserved for the
super-user. This avoids fragmentation, and allows root-owned
daemons, such as syslogd(8), to continue to function correctly
after non-privileged processes are prevented from writing to the
filesystem. The default percentage is 5%.
mkfs.ext4 -m 1 /dev/sdd
good luck

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Installation failed with error code '3'

Post#11 by rych » 12 Jun 2021, 09:03

ncmprhnsbl, porteus.cfg and porteus.png seem to change cosmetics only, actually porteus.cfg edits seem to be ignored? At least `login=root` or choosing the Text only mode in the Menu has no effect. And it's a pity, as both LXDE and XFCE then seem to be starting as a guest regardless. That'd be okay, but both are hanging on something: LXDE refuses to start anything off it, and XFCE simply shows a monotone dark display. Pressing Ctrl+Alt+F1 to see the console messages doesn't work. But Ctrl+Alt+F2 gives me another console where I can login as root and successfully get the root desktop:

Code: Select all

# startx
(Ctrl+Alt+F1 "guest" copy still hanging though).

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

Installation failed with error code '3'

Post#12 by raja » 12 Jun 2021, 10:55

rych, now you have a copy of porteus-5.0rc2 in working condition,

go to system- create live disk-enter;

insert your new disk and have the copy of nemisis.iso by blaze or portix media center.iso ready;

enter "create live disk" and point to your favourite iso;

it will be a done thing. Very easy and clap your hands.

nemisis with last update from ncmp and lxde DE works perfectly for me. ( I replaced only libplacebo.so.120 with older one)
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Installation failed with error code '3'

Post#13 by rych » 12 Jun 2021, 14:55

raja, Thank you, you understood me, I indeed prefer ready .iso files and an easy way to install them. Didn't know about the existence of different Nemesis iso, nor about the tool "system- create live disk". I'll be trying these options, wouldn't have found them without your keywords, I think I have the right sources?

1) your "portix media center" from Portix Media Center
2) @Blaze's most recent nemesis-xfce-20.12.26-k5.4.50-x86_64.iso from 2020 Updated Nemesis Base Modules (Post by Blaze #80648)

3) then without running the installer so that not to break anything, will replace with the most recent updated modules and the LXDE module from ncmprhnsbl's 2021 Updated Nemesis Base Modules (Post by ncmprhnsbl #61949). Or, perhaps yours already includes those -- will take a look.

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Installation failed with error code '3'

Post#14 by rych » 13 Jun 2021, 08:30

raja, porteus-5.0rc2, OpenBox, System: there is no "create live disk", there is "Porteus Installer" which alas does not offer to choose the iso file, it only writes and installs Porteus unto a partition I don't know from what source.

Copying from nemesis-xfce-20.12.26-k5.4.50-x86_64.iso onto my one ext4 partition, running its ./Porteus-installer-for-Linux.com, boots successfully into a XFCE guest desktop! Can't find Ctrl+Alt+F1~12 tty screen that used to print errors, though.

changes=/porteus works for persistence

login=root is ignored, autologins to guest anyway

Updating to ncmprhnsbl modules Breaks it in the same way as before: the autologin desktop is defunct in case of LXDE - can't open the File browser or any app, mouse pointer icon is busy though), XFCE - shows a dark screen, with a mouse pointer which I can freely move -- thanks for that. I have to start another tty and startx. Both XFCE and LXDE (loads 5 seconds faster than XFCE by the way) work on the second Desktop copy.But I'm not comfortable running 2 desktops at once one of which is broken, busy waiting for something

The problem remains even if I force autologin to root instead of guest (by editing agetty).

Therefore, I've decided to fall back to the nemesis-xfce-20.12.26-k5.4.50-x86_64.iso. I'll wait until @Blaze makes an updated iso file.

raja Thanks, but I don't even dare to try your Portix Media Center as it's rather customized with some unfamiliar folders and files. Besides it seems I now have a working nemesis from nemesis-xfce-20.12.26-k5.4.50-x86_64.iso -- which is what I'd recommend for newcomers. I will now start playing with pacman, finally.

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

Installation failed with error code '3'

Post#15 by raja » 13 Jun 2021, 10:21

Glad, smiles are back at home.

ARCH is a rolling OS. They will continuously update packages/libraries. So install your requirement in one go and enjoy nemisis's performance.

WARNING:Otherwise it will break applications.

You can try any ISO with syslinux boot loader, easily.

Extract vmlinuz and initrd files alone, from that ISO, rename them, like vmlinux-r, initrd-r.xz, any alphabet of your choice, and copy them to syslinux folder.

add a menu entry..

LABEL your choice name for the iso
KERNEL vmlinuz-r
APPEND initrd=initrd-r.xz from=/mnt/sdxx/*.iso #location of your ISO file

reboot and choose your choice.

even portix media center ISO will boot.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

Post Reply