Announcement

Collapse
No announcement yet.

Installing VortexBox v2.3

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Installing VortexBox v2.3

    I found that the supplied vortexbox23-recovery zip and iso files failed to install an image on a target SSD or HDD from a USB stick, failing to create the required partition table. After some investigation of the installer files, I found the relevant partition table details and partition images in /home/partimag/vortexbox23-recovery, and was able to create a script to install them from the command shell that is accessible once the installer fails, which successfully installs the VortexBox image. I have no idea why the installer itself fails.

    Here is the script. Copy and paste it to a text file, and save it as manual_install. Copy it to the /home/partimag/vortexbox23-recovery directory of the installer USB stick.

    Code:
    #! /bin/bash
    # script to manually install VortexBox once the automatic install has failed
    # captain paranoia 10/08/18
    
    # create partitions
    echo "mklabel msdos"
    parted /dev/sda mklabel msdos
    echo
    echo "make partitions"
    parted /dev/sda mkpart primary 1MiB 2MiB
    parted /dev/sda mkpart primary 2MiB 502MiB
    parted /dev/sda mkpart primary 502MiB 758MiB
    parted /dev/sda mkpart extended 758MiB 4096MiB
    parted /dev/sda mkpart logical 759MiB 4096MiB
    # make sda2 bootable
    echo
    echo "make sda2 bootable"
    parted /dev/sda set 2 boot on
    # turn off default linear mode on sda4 (to be consistent with sda-pt.parted.compact)
    echo
    echo "disable sda4 LBA"
    parted /dev/sda set 4 lba off
    # set up linux swap on sda3
    echo
    echo "make sda3 linux swap space"
    mkswap /dev/sda3
    # set up file systems on sda2 & sda5
    echo
    echo "set up ext4 filesystems on sda2 & sda5"
    mkfs -t ext4 /dev/sda2
    mkfs -t ext4 /dev/sda5
    # check partition creation
    echo
    parted /dev/sda u MiB print
    # pause to see created partitions
    echo
    read -p "press a key to continue " -n 1 -r
    echo
    
    # restore contents
    cd /home/partimag/vortexbox23-recovery
    pwd
    # restore MBR
    echo
    echo "restore MBR"
    dd if=sda-mbr of=/dev/sda skip=0 bs=512 count=1
    # restore hidden data after MBR (skips first block in sda1 (seek=1))
    dd if=sda-hidden-data-after-mbr of=/dev/sda seek=1 bs=512 count=2047
    # restore sda1
    echo
    echo "restore sda1"
    gunzip -c sda1.dd-img.aa | partclone.dd -d -s - -o /dev/sda1
    # restore sda2
    echo
    echo "restore sda2"
    gunzip -c sda2.ext4-ptcl-img.gz.aa | partclone.restore -d -s - -o /dev/sda2
    # restore sda5
    echo
    echo "restore sda5"
    gunzip -c sda5.ext4-ptcl-img.gz.aa | partclone.restore -d -s - -o /dev/sda5
    # check partitions after restore
    echo
    parted /dev/sda u MiB print
    echo
    echo "Finished!"
    
    # pause to see created partitions
    echo
    read -p "press a key to reboot " -n 1 -r
    echo
    shutdown -r now
    Once the automatic installer has failed (watch out for the eror message that pops up briefly before the coloured exit options screen appears), select the 'command line' option to drop into the installer's linux shell. Enter the following commands to run the script:

    Code:
    cd /home/partimag/vortexbox23-recovery
    sudo ./manual_install
    Enter 'y' at the (up to) three prompts during the partition table creation, accepting the data wipe and file system creation, and hit any key when prompted; these two pauses allow you to check the creation of the partition table, and the install process, before the system reboots.

    Remove the USB stick when prompted during the reboot, and your VortexBox should boot itself correctly.
    Last edited by cpt_paranoia; 08-10-2018, 08:29 AM.
Working...
X