Installation failed with error code '3'.

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Installation failed with error code '3'.

Post#1 by Ed_P » 08 Jun 2014, 21:24

Help!!

I nuked the USB drive.

Code: Select all

#!/bin/sh
# http://forum.porteus.org/viewtopic.php?f=81&t=3227&start=15#p25341

if [ `whoami` != "root" ]; then
  ktsuss "$0"
  exit
fi

umount /mnt/sdb1
parted -s /dev/sdb mklabel msdos 
Then I used System Tools' GPart to allocate a partition for the total bytes on the flash drive.
Copied the Porteus 3.0 ISO files to the flash drive.
Ran the Porteus-installer-for-Linux.com from the flash drive.

Code: Select all

Installing Porteus to /dev/sdb1
WARNING: Make sure this is the right partition before proceeding.

Press Enter to continue or Ctrl+c to exit.

Flushing filesystem buffers...

Using extlinux bootloader.

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

Exiting now...

Code: Select all

device: /dev/sdb
partition: /dev/sdb1
partition number: 1
partition mount point: /mnt/sdb1
installation path: /mnt/sdb1
subfolder: 
filesystem: vfat
bootloader: extlinux
error code: 3
system: porteus 3.13.6-porteus x86_64
mount details: /dev/sdb1 /mnt/sdb1 vfat rw,noatime,nodiratime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,check=s,utf8,errors=remount-ro 0 0
full partition scheme:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x2bd2c32a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    27265023    13631488   27  Hidden NTFS WinRE
/dev/sda2   *    27265024    27469823      102400    7  HPFS/NTFS/exFAT
/dev/sda3        27469824   111362579    41946378    7  HPFS/NTFS/exFAT
/dev/sda4       111362580   625137344   256887382+   f  W95 Ext'd (LBA)
Partition 4 does not start on physical sector boundary.
/dev/sda5       111362643   375567569   132102463+   7  HPFS/NTFS/exFAT
Partition 5 does not start on physical sector boundary.
/dev/sda6       375567633   625137344   124784856    7  HPFS/NTFS/exFAT
Partition 6 does not start on physical sector boundary.

Disk /dev/sdb: 7803 MB, 7803174912 bytes
152 heads, 35 sectors/track, 2864 cylinders, total 15240576 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: 0x000ced7f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048    15239167     7618560    b  W95 FAT32
So what does an error code '3' mean?
Ed

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Installation failed with error code '3'.

Post#2 by wread » 09 Jun 2014, 00:16

@E_dP
If you want to use Porteus, why don't you use a decent file format?

Msdos filesystem are not posix and you will need a lot of auxiliary files to emulate each file as posix. You have to "posixnify" every file with another associated file to account for permissions, etc.

Just format your USB ext4 and you won't miss it. Don't even look at msdos file types (vfat, etc).

If you want to have the possibility of copying files from win machines, then make a msdos partition, say 100 Mega and the rest make it ext4. 8)

Regards!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Installation failed with error code '3'.

Post#3 by Ed_P » 09 Jun 2014, 04:29

Thanks wread, you're probably right. But I continue on my path.

I don't know what I did wrong initially but this time it worked.

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# cd /mnt/sdb1/boot
root@porteus:/mnt/sdb1/boot# Porteus-installer-for-Linux.com
bash: Porteus-installer-for-Linux.com: command not found
root@porteus:/mnt/sdb1/boot# sh Porteus-installer-for-Linux.com
Verifying archive integrity... All good.
Uncompressing Porteus Installer......

                             _.====.._
                           ,:._       ~-_
                               '\        ~-_
                                 \        \.
                               ,/           ~-_
                      -..__..-''   PORTEUS   ~~--..__

==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--

Installing Porteus to /dev/sdb1
WARNING: Make sure this is the right partition before proceeding.

Press Enter to continue or Ctrl+c to exit.

Flushing filesystem buffers...

Using extlinux bootloader.

Installation finished successfully.
You may reboot your PC now and start using Porteus.
Please check the /boot/docs folder for additional information about
the installation process, Porteus requirements and booting parameters.
In case of making tweaks to the bootloader config,
please edit: /mnt/sdb1/boot/syslinux/porteus.cfg file.

Press Enter to exit.
I suspect error code '3' means I wasn't root when running the install. :oops:
Ed

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 '3'.

Post#4 by brokenman » 09 Jun 2014, 12:26

For future reference, read the messages on the screen.

Code: Select all

Installation failed with error code '3'.
Please ask for help on the Porteus forum: www.porteus.org/forum
and provide the information from /mnt/sdb1/debug.txt
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Installation failed with error code '3'.

Post#5 by Ed_P » 09 Jun 2014, 13:32

brokenman wrote:For future reference, read the messages on the screen.

Code: Select all

Installation failed with error code '3'.
Please ask for help on the Porteus forum: www.porteus.org/forum
and provide the information from /mnt/sdb1/debug.txt
If you read the opening post you will find that is exactly what i did.
Ed

benkalas
Ronin
Ronin
Posts: 1
Joined: 23 Jun 2015, 15:12
Distribution: Kali
Location: Italia

Re: Installation failed with error code '3'.

Post#6 by benkalas » 23 Jun 2015, 15:19

Code: Select all

Installation failed with error code '3'.
Please ask for help on the Porteus forum: www.porteus.org/forum
and provide the information from /mnt/sdb1/debug.txt
device: /dev/sdb
partition: /dev/sdb1
partition number: 1
partition mount point: /media/usb0
installation path: /media/usb0/boot
subfolder:
filesystem: vfat
bootloader: extlinux
error code: 3
system: Thomas 3.14-kali1-686-pae i686
mount details: /dev/sdb1 /media/usb0 vfat rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
full partition scheme:

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders, total 78140160 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: 0xdd6ddd6d

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1169407 583680 83 Linux
/dev/sda2 1169408 7028735 2929664 82 Linux swap / Solaris
/dev/sda3 7030782 78139391 35554305 5 Extended
/dev/sda5 7030784 40230911 16600064 83 Linux
/dev/sda6 40232960 78139391 18953216 83 Linux

Disk /dev/sdb: 4026 MB, 4026531840 bytes
87 heads, 46 sectors/track, 1965 cylinders, total 7864320 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: 0x000f0924

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 7861248 3929600+ b W95 FAT32

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Installation failed with error code '3'.

Post#7 by fanthom » 23 Jun 2015, 16:57

this is a known bug.

please mount the stick manually under /tmp/mount and run the installer again.
should work.
Please add [Solved] to your thread title if the solution was found.

Post Reply