Installation failed with error code '3' on a SD card

Post here if you are a new Porteus member and you're looking for some help.
datruche
Black ninja
Black ninja
Posts: 95
Joined: 20 Sep 2015, 21:02
Distribution: Arch, Porteus-Nemesis 3.5
Location: London > . < Paris

Installation failed with error code '3' on a SD card

Post#1 by datruche » 12 Jan 2016, 15:45

Hi all

Have tested and adopted Porteus on a live USB stick (faster the key better the exp) and now wish to do a frugal install on a fast SD Card.

* Porteus 3.1 XFCE i486 running.
* Acer netbook with Atom 1.33 GHz (i686 only), 1 GB RAM
* Sandisk Extreme 16 GiB (with wear leveling "like" for SSDs :)) ext4 formated like this

Code: Select all

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  7365MB  7361MB  primary  ext4         boot
 2      7365MB  15.9GB  8566MB  primary  ext4
I first launched the Porteus Installer GUI, and (note: after realizing the destination partition needed to be mounted to appear in the GUI helper he he) selected both "Install bootloader" fields.
All went well and fast, all modules were copied to SDCARD/porteus/porteus from my updated live system, including optionals ones :) Reboooted straight away, i.e. *default* without even editing /boot/porteus.cfg (was late in the night). System booted to... PXE.

I then rebooted from my USB key, and
1) opened /boot/porteus.cfg and edited it as it had copied my customized syslinux file from the USB stick, which is a multiboot with special file structure.
2) Searched for 'Porteus-installer-for-Linux.com', copied it from USBSTICK/porteus/xfce-x86_64 (maybe the issue here? though I'd swear it to be arch-agnostic) to /$SDCARD_MOUNTPATH/boot/ with 'SDCARD_MOUNTPATH' = /mnt/sdc1 and run it:

# ./Porteus-installer-for-Linux.com

Code: Select all

Verifying archive integrity... All good.
Uncompressing Porteus Installer......

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

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

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

Type 'ok' to continue or press Ctrl+c to exit.
ok
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 /tmp/mount/boot/debug.txt

Exiting now...
Unmounted and remounted the SDCard with 'SDCARD_MOUNTPATH' = /tmp/mount as fanthom advised here: http://forum.porteus.org/viewtopic.php?f=81&t=3556
Relaunched the installer with the exact same result, so may not be the same issue.

debug.txt

Code: Select all

  Disk /dev/sda: 160.0 GB, 160041885696 bytes
  255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0xa0a77d45
  
     Device Boot      Start         End      Blocks   Id  System
  /dev/sda1   *          63   156312449    78156193+   7  HPFS/NTFS/exFAT
  /dev/sda2       156312450   156714074      200812+  83  Linux
  /dev/sda3       156714075   312576704    77931315    5  Extended
  /dev/sda5       156714138   176249114     9767488+  83  Linux
  /dev/sda6       176249178   180249299     2000061   82  Linux swap
  /dev/sda7       180249363   312576704    66163671   83  Linux
  
  Disk /dev/sdb: 62.7 GB, 62742792192 bytes
  255 heads, 63 sectors/track, 7628 cylinders, total 122544516 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: 0x4a62bd58
  
     Device Boot      Start         End      Blocks   Id  System
  /dev/sdb1   *        2048   122544127    61271040    c  W95 FAT32 (LBA)
  
  Disk /dev/sdc: 15.9 GB, 15931539456 bytes
  64 heads, 32 sectors/track, 15193 cylinders, total 31116288 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: 0x0005d8f8
  
     Device Boot      Start         End      Blocks   Id  System
  /dev/sdc1   *        8192    14385151     7188480   83  Linux
  /dev/sdc2        14385152    31115263     8365056   83  Linux

  Disk /dev/sda: 160.0 GB, 160041885696 bytes
  255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0xa0a77d45
  
     Device Boot      Start         End      Blocks   Id  System
  /dev/sda1   *          63   156312449    78156193+   7  HPFS/NTFS/exFAT
  /dev/sda2       156312450   156714074      200812+  83  Linux
  /dev/sda3       156714075   312576704    77931315    5  Extended
  /dev/sda5       156714138   176249114     9767488+  83  Linux
  /dev/sda6       176249178   180249299     2000061   82  Linux swap
  /dev/sda7       180249363   312576704    66163671   83  Linux
  
  Disk /dev/sdb: 62.7 GB, 62742792192 bytes
  255 heads, 63 sectors/track, 7628 cylinders, total 122544516 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: 0x4a62bd58
  
     Device Boot      Start         End      Blocks   Id  System
  /dev/sdb1   *        2048   122544127    61271040    c  W95 FAT32 (LBA)
  
  Disk /dev/sdc: 15.9 GB, 15931539456 bytes
  64 heads, 32 sectors/track, 15193 cylinders, total 31116288 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: 0x0005d8f8
  
     Device Boot      Start         End      Blocks   Id  System
  /dev/sdc1   *        8192    14385151     7188480   83  Linux
  /dev/sdc2        14385152    31115263     8365056   83  Linux
I shall look at my notes on installing extlinux manually, but atm I have a ssh can't connect to any server issue that forbids me to access my other machines.

Hope you're willing to share your knowledge on this, and that it can helps make next Porteus version a bit more error proof for frugal install!

datruche
Black ninja
Black ninja
Posts: 95
Joined: 20 Sep 2015, 21:02
Distribution: Arch, Porteus-Nemesis 3.5
Location: London > . < Paris

Re: Installation failed with error code '3' on a SD card

Post#2 by datruche » 13 Jan 2016, 01:36

It seems the Porteus-installer-for-Linux.com (CLI) was looking for /boot/syslinux/, which I have simplified to /boot on the USB stick. The (GUI) installer would have copied that when it sync"d the file structure to the SD Card.

Corrected, but couldn't boot either (via Qemu).

tome
Contributor
Contributor
Posts: 675
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Russia is causing the immense damage to humanity
Contact:

Re: Installation failed with error code '3' on a SD card

Post#3 by tome » 15 Jan 2016, 11:03

Another way:
Download and install syslinux (use usm)
cat /usr/share/syslinux/mbr.bin > /dev/sdx (where you want to install, don't make any mistake here)
mkdir -p /mnt/sdxY/.boot/syslinux
extlinux -i /mnt/sdxY/.boot/syslinux
Copy content of syslinux directory from porteus to /mnt/sdxY/.boot/syslinux, but don't overwrite ldlinux.sys and other modified files by you.

For "sdx, sdxY, /.boot/syslinux" replace with yours.
You have mind and feelings. Be wise and clever.

datruche
Black ninja
Black ninja
Posts: 95
Joined: 20 Sep 2015, 21:02
Distribution: Arch, Porteus-Nemesis 3.5
Location: London > . < Paris

Re: Installation failed with error code '3' on a SD card

Post#4 by datruche » 30 Jan 2016, 20:27

Thank you for the help Tome.

Nevertheless and since Nemesis is based on Arch I took advantage of the script that automatize the syslinux bootloader install from Arch.

Post Reply