Skip to content

Instantly share code, notes, and snippets.

@paulfurley paulfurley/install.md
Last active Jul 25, 2018

Embed
What would you like to do?
Install Ubuntu 18.04, restore from backintime backup

Prerequisites

  • A full backup of /home/paul using backintime

Install Ubuntu

  • Choose "Something else" to enter the partitioning tool

  • Select "use the advanced partitioning tool for more control"

    • note: use primary partitions, not logical
    • add /dev/sda1 as ext4 size 2046 mountpoint /boot
    • in sda free space, select physical volume for encryption - it will create a new device `/dev/mapper/sda1_crypt
    • set /dev/mapper/sda1_crypt mountpoint to /
    • in sdb free space select physical volume for encryption - it will create a new device /dev/mapper/sdb1_crypt
    • set /dev/mapper/sda5_crypt mountpoint to /home

In the end it should look like this:

                                     fmt
/dev/mapper/sda2_crypt
  /dev/mapper/sda2_crypt1   swap          [ ] 17985 MB
  /dev/mapper/sda2_crypt2   ext4  /       [x] 99998 MB

/dev/mapper/sdb1_crypt
  /dev/mapper/sdb1_crypt1   ext4  /home   [x]

/dev/sda
  /dev/sda1                 ext4  /boot
  /dev/sda2                              unknown (cryptodisk)

/dev/sdb
  /dev/sdb1                 crypto
  • on the timezone screen, wait for 30 seconds to allow the partitioner to do its thing (or error)
  • Once the installer has finished, reboot

Restore /home/paul from backintime

  • sudo apt install backintime-common
  • backintime-qt4
  • select Yes to "restore a previous configuration?"
  • navigate to the backup restore location
  • select the right backintime profile
  • from Restore select Restore /home/paul
  • ... wait a while
  • make sure it finished OK

Install system packages

  • sudo bin/install-ubuntu-packages

Finish setting up user

  • Reinstate crontab: crontab < ~/crontab.txt

Reinstate~/dotfiles

  • cd ~/dotfiles && make
  • reload backintime config from ~/binfiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.