Rich Dougherty rd.nz

Upgrade Ubuntu 19.04 and 19.10 without a USB Stick

The following install process allows you install Ubuntu 19.04 or 19.10 from one partition to another without needing to write to a USB stick. There are some modifications to support the Dell XPS 15 9560 laptop, but you can skip these if you don’t need them.

Make sure you have another computer available to create a rescue USB stick if you need it. Most of the time you won’t one and you’ll save you some time.

  1. Install grml-rescueboot:

    $ sudo apt-get install grml-rescueboot 
    
  2. Download the installer ISO image into the /boot/grml directory:

    $ (cd /boot/grml ; sudo curl -O http://releases.ubuntu.com/19.10/ubuntu-19.10-desktop-amd64.iso) 
    

    See: https://ubuntu.com/download/desktop

  3. Update the boot menu to include the ISO:

    $ sudo update-grub
    ...
    Found Grml ISO image: /boot/grml/ubuntu-19.10-desktop-amd64.iso
    ... 
    
  4. Make a note of your current partitions. Be very clear which partition

    $ lsblk 
    

    E.g here are the important part from my partition table:

    • /dev/nvme0n1p1 ← boot
    • /dev/nvme0n1p8 ← current OS root (will leave unchanged and unmounted)
    • /dev/nvme0n1p7 ← new OS root (will reformat and install update here)
    • /dev/nvme0n1p9 ← home dir
  5. Reboot.

  6. When the Grub menu appears, choose the ISO image and press Enter.

  7. At the menu select Try Ubuntu without installing and press E to edit the options.

  8. Add entries to the linux arguments:

    linux <existing args> toram nouveau.modeset=0 --- 
    
  9. Press F10 to boot with the modified boot script.

  10. Wait for Ubuntu to boot.

  11. Open a terminal with Ctrl-Alt-T.

  12. Unmount the device the ISO was copied to RAM from:

    sudo umount -l /isodevice 
    

    This is needed so we can edit partitions.

    See: https://askubuntu.com/a/896945/846736

  13. (Dell XPS 15 9560 only.) Turn bluetooth off in the system menu as it may interfere with wifi. See: https://help.ubuntu.com/stable/ubuntu-help/bluetooth-turn-on-off.html

  14. Start installation by double-clicking the Install Ubuntu 19.10 launcher.

  15. Proceed through the language settings and wireless connections.

  16. (Dell XPS 15 9560 only.) When you get to choosing updates make sure to install third-party software for graphics so you have graphics card support.

    See: https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-desktop#4

  17. Once you get to Installation type choose Something else so you can choose the partitioning strategy.

  18. Choose the <new OS root> partition and choose Ext4, format it and a mount point of /.

  19. I also choose my <home dir> partition, choose Ext4 and mount it.

  20. Click Install Now, review the warning and decide whether or not to proceed.

  21. After installation finishes you can click Restart Now.

  22. Select Ubuntu from the Grub menu and press E to edit it. (This is the new OS you just installed.)

  23. (Dell XPS 15 9560 only.) Add an entry to the linux arguments:

    linux <existing args> nouveau.modeset=0 
    
  24. Press F10 to boot with the modified boot script.

  25. (Dell XPS 15 9560 only.) Fans will probably overheat, so disable NVidia and use Intel. Run NVidea Settings, choose Prime Profiles and select Intel.

    See: https://askubuntu.com/a/1053843

  26. (Dell XPS 15 9560 only.) Restart when prompted.

  27. Fin!