Installation failed with error code '2' (bis)

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
exodous
Ronin
Ronin
Posts: 2
Joined: 25 Oct 2015, 03:31
Distribution: Linux Mint
Location: USA

Installation failed with error code '2' (bis)

Post#1 by exodous » 25 Oct 2015, 03:36

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?

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

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

Post#2 by francois » 09 Jul 2016, 04:13

@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.
Prendre son temps, profiter de celui qui passe.

vinit
Ronin
Ronin
Posts: 1
Joined: 10 Sep 2016, 10:27
Distribution: Porteus
Location: Bangalore

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

Post#3 by vinit » 10 Sep 2016, 10:31

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

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

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

Post#4 by Blaze » 10 Sep 2016, 10:39

I don't use GPT. With MBR - all ok.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

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

Post#5 by brokenman » 15 Sep 2016, 01:28

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply