Installation failed with error code '2'

Get help with KDE specific problems
Post Reply
Juhayer Al Wasif
White ninja
White ninja
Posts: 4
Joined: 14 Aug 2022, 05:33
Distribution: Bodhi Linux

Installation failed with error code '2'

Post#1 by Juhayer Al Wasif » 14 Aug 2022, 06:01

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.

User avatar
Ed_P
Contributor
Contributor
Posts: 7103
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0 ISOs
Location: Western NY, USA

Installation failed with error code '2'

Post#2 by Ed_P » 14 Aug 2022, 06:06

Hello Juhayer Al Wasif. Did you review the notes in the ISO's USB_INSTALLATION.txt file?
Ed

Juhayer Al Wasif
White ninja
White ninja
Posts: 4
Joined: 14 Aug 2022, 05:33
Distribution: Bodhi Linux

Installation failed with error code '2'

Post#3 by Juhayer Al Wasif » 14 Aug 2022, 06:10

Just read, should I go for EFI method or BIOS method, if I have UEFI

User avatar
Ed_P
Contributor
Contributor
Posts: 7103
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0 ISOs
Location: Western NY, USA

Installation failed with error code '2'

Post#4 by Ed_P » 14 Aug 2022, 07:07

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

Juhayer Al Wasif
White ninja
White ninja
Posts: 4
Joined: 14 Aug 2022, 05:33
Distribution: Bodhi Linux

Installation failed with error code '2'

Post#5 by Juhayer Al Wasif » 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?

Juhayer Al Wasif
White ninja
White ninja
Posts: 4
Joined: 14 Aug 2022, 05:33
Distribution: Bodhi Linux

Installation failed with error code '2'

Post#6 by Juhayer Al Wasif » 14 Aug 2022, 14:17

Ok, I have tried to install it in my hard disk but everytime I am getting error code 2

User avatar
Ed_P
Contributor
Contributor
Posts: 7103
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0 ISOs
Location: Western NY, USA

Installation failed with error code '2'

Post#7 by Ed_P » 14 Aug 2022, 15:38

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

Post Reply