Page 1 of 1

Installation failed with error code '2'

Posted: 14 Aug 2022, 06:01
by Juhayer Al Wasif
I have installed Porteus-KDE-v5.0-x86_64.iso with Etcher in a usb, then booted it in Graphics Mode . Every time I run porteus installer and try to install it with bootloader in ext4 partition/dev/sda5, there is a message shown in Konsole that

Code: Select all

Installation failed with error code'2'
Afterwords it does not boot and no bootloader was in installed. Only the files were copied by the Porteus Installer to /dev/sda5.

Installation failed with error code '2'

Posted: 14 Aug 2022, 06:06
by Ed_P
Hello Juhayer Al Wasif. Did you review the notes in the ISO's USB_INSTALLATION.txt file?

Installation failed with error code '2'

Posted: 14 Aug 2022, 06:10
by Juhayer Al Wasif
Just read, should I go for EFI method or BIOS method, if I have UEFI

Installation failed with error code '2'

Posted: 14 Aug 2022, 07:07
by Ed_P
Juhayer Al Wasif wrote:
14 Aug 2022, 06:10
should I go for EFI method or BIOS method, if I have UEFI
EFI

I use USB drives 32 GB, or smaller, and format the whole drive as FAT32, copy all the ISO folders and files to the drive then run the Porteus-installer for the system I am running.

Installation failed with error code '2'

Posted: 14 Aug 2022, 07:14
by Juhayer Al Wasif
do I need to add this line "from=/mnt/sdb2" to the to the porteus-v4.0-x86_64.cfg file?

Installation failed with error code '2'

Posted: 14 Aug 2022, 14:17
by Juhayer Al Wasif
Ok, I have tried to install it in my hard disk but everytime I am getting error code 2

Installation failed with error code '2'

Posted: 14 Aug 2022, 15:38
by Ed_P
Juhayer Al Wasif wrote:
14 Aug 2022, 07:14
do I need to add this line "from=/mnt/sdb2" to the to the porteus-v4.0-x86_64.cfg file?
No.

What OS are you running the install from? I seem to remember getting the code 2 error when I installed 5.0 to a new USB drive but when I reran it it worked. I think I was running it from a bash script I use to copy the files and etc in Porteus but when I simply clicked on the install app in a terminal window it worked. The install app was the one on the USB drive.

Added in 1 hour 25 minutes 39 seconds:
A related thread. Installation failed with error code '2'

How are you trying to boot the USB drive, using grub2 or the machine's boot options? Do you have the machine's Secure Boot option disabled?