Install fails on mmcblk device Porteus-KDE4-v3.1-x86_64.iso

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.
AdamLaurie
White ninja
White ninja
Posts: 8
Joined: 08 May 2015, 15:32
Distribution: ubuntu
Location: london

Install fails on mmcblk device Porteus-KDE4-v3.1-x86_64.iso

Post#1 by AdamLaurie » 09 May 2015, 10:01

Hi,

Trying to install on an HP Stream laptop, with secure boot disabled but there is a problem with the installation script(s):

The gui installer fails to spot any mounted partitions, and even after deleting and re-creating with the partition manager it still fails. I therefore resorted to doing it manually by opening a shell, mounting the partition and copying the contents of the boot CD then going into /mnt/boot and running 'Porteus-installer-for-Linux.com'

It fails with an error '2', and here is the debug output:

Code: Select all

device: /dev/mmcblk0
partition: /dev/mmcblk0p1
partition number: p1
partition mount point: /mnt/mmcblk0p1
installation path: /mnt/mmcblk0p1/boot
subfolder: 
filesystem: ext4
bootloader: lilo
error code: 2
system: porteus 3.17.4-porteus x86_64
mount details: /dev/mmcblk0p1 /mnt/mmcblk0p1 ext4 rw,noatime,nodiratime,data=ordered 0 0
/dev/mmcblk0p1 /mnt/live/memory/changes ext4 rw,noatime,nodiratime,data=ordered 0 0
full partition scheme:

Disk /dev/mmcblk0: 31.3 GB, 31272730624 bytes
4 heads, 16 sectors/track, 954368 cylinders, total 61079552 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: 0x4fdbd928

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1   *        2048    61079551    30538752   83  Linux

Disk /dev/mmcblk0rpmb: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders, total 8192 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 /dev/mmcblk0boot1: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders, total 8192 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 /dev/mmcblk0boot0: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders, total 8192 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
After some pocking around, I resolved the problem by running the install in one shell but pausing at the 'ok' stage, and then from another shell debugging the actual install script by doing:

Code: Select all

cp .porteus_installer/installer.com .
bash -x ./installer.com
This revealed that the offending subroutine was:

Code: Select all

if [ "$PRTN" ]; then                                                                   
    # Setup MBR:                                                                       
    dd if=$bin/mbr.bin of=$DEV bs=440 count=1 conv=notrunc >/dev/null 2>&1             
    fail_check 1                                                                       
                                                                                       
    # Make partition active:                                                           
    sfdisk -A $DEV $PRTN >/dev/null 2>&1                                                   
    fail_check 2                                                                       
fi 
and the problem is that 'sfdisk -A $DEV $PRTN' resolves to 'sfdisk -A /dev/mmcblk0 p1' instead of 'sfdisk -A /dev/mmcblk0 1'. The simple fix for me was to patch the script and hardwire the second argument to '1', but I guess you might want to fix this moving forward.

Thanks for the cool distro!

cheers,
Adam

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

Re: Install fails on mmcblk device Porteus-KDE4-v3.1-x86_64.

Post#2 by fanthom » 09 May 2015, 10:31

hi Adam,

will patch installer for next release - thanks a lot for sharing.
Please add [Solved] to your thread title if the solution was found.

Post Reply