Page 1 of 1

Installation failed with error code '2' (bis)

Posted: 25 Oct 2015, 03:36
by exodous
I get this when I try to install:

Code: Select all

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

Installation failed with error code '2'.
Please ask for help on the Porteus forum: www.porteus.org/forum
and provide the information from /media/gamer/25496860-eaa8-4974-984e-b34d22aff22d/boot/debug.txt

Exiting now...

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

cat: /media/gamer/25496860-eaa8-4974-984e-b34d22aff22d/boot/syslinux/lilo.menu: No such file or directory
Here is my debug.txt:

Code: Select all

device: /dev/sdb
partition: /dev/sdb1
partition number: 1
partition mount point: /media/gamer/25496860-eaa8-4974-984e-b34d22aff22d
installation path: /media/gamer/25496860-eaa8-4974-984e-b34d22aff22d/boot
subfolder: 
filesystem: ext4
bootloader: lilo
error code: 2
system: gamer-minecraft 3.13.0-24-generic x86_64
mount details: /dev/sdb1 /media/gamer/25496860-eaa8-4974-984e-b34d22aff22d ext4 rw,nosuid,nodev,relatime,data=ordered 0 0
full partition scheme:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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 identifier: 0x000460f7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     4098047     2048000   82  Linux swap / Solaris
/dev/sda2   *     4098048    45058047    20480000   83  Linux
/dev/sda3        45058048  1953523711   954232832   83  Linux

Disk /dev/sdb: 62.1 GB, 62109253632 bytes
255 heads, 63 sectors/track, 7551 cylinders, total 121307136 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 identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1   121307135    60653567+  ee  GPT
I did a search but couldn't find a solution to my problem. I am using EXT4, is that a problem?

Re: Installation failed with error code '2' (bis)

Posted: 09 Jul 2016, 04:13
by francois
@exodus:

I have the same problem. Let's see what the experts have to say. :)

I imagine that you realize that this is RC or release candidate. It is in development. Not completeley mature. You can also use version 3.1 of porteus.

Re: Installation failed with error code '2' (bis)

Posted: 10 Sep 2016, 10:31
by vinit
Hi,

Was encountering the exact same error.
Here is how I resolved it (resolved = installed successfullt to /dev/sda)

The problem is that you are not able to proceed installation on a GPT partition.

So I downloaded gdisk (GTP fdisk) from http://www.rodsbooks.com/gdisk/mbr2gpt.html and used that to convert from GPT to MBR.

Once this was done, I ran the porteus install and it installed successfully without errors (error code 2 = gone!)

Booted correctly from the hard disk and works great!

Good luck,
Vinit

Re: Installation failed with error code '2' (bis)

Posted: 10 Sep 2016, 10:39
by Blaze
I don't use GPT. With MBR - all ok.

Re: Installation failed with error code '2' (bis)

Posted: 15 Sep 2016, 01:28
by brokenman
You can check the options in gdisk (gdisk -h) or do it the old fashioned way.

parted /dev/sda
mklabel msdos
quit

You may also use the USB installer (Porteus-v3.2+) to install to a USB device. It support GPT.