Dual Boot Windows 10 and Ubuntu 16.04 on Thinkpad T560

On Carmine, a Thinkpad T560

Back up Windows

See also http://www.everydaylinuxuser.com/2015/11/how-to-install-ubuntu-linux-alongside.html

  1. Start Windows
  2. Download Reflect http://www.macrium.com/reflectfree.aspx
  3. Run the installer and accept all the defaults
  4. Insert USB drive and format with Windows Explorer
  5. Start Reflect
  6. At “Rescue Media” prompt, create USB with defaults
  7. Reboot with recovery USB drive to test it
  8. Reboot into Windows and start Reflect
  9. Select Other Tasks > Edit Defaults > Network tab
  10. Add \\ds411p2\home with NAS credentials
  11. On the Disk Image tab and Create a backup tab, select Image this disk
  12. Backup to \\ds411p2\home\{computer}-backup
  13. Select Other Tasks > Add Recovery Boot Menu Option, select Windows PE 10.0 menu (64 Bit)
  14. Reboot to make sure the boot menu comes up.
  15. Select Windows 10

Install Ubuntu 16.04 with LVM

See also http://askubuntu.com/questions/470632/install-lvm-dual-boot-with-windows

  1. Start Disk Management (called “Create and format hard disk partitions, Control panel” on the start menu)
  2. Right-click on the Windows NTFS partition and select Shrink Volume.
    1. The maximum shrink is the default, though the volume will still be a lot larger than the space used by Windows. In this case, the Windows partition was 237 GB before and 121 GB after, even though Windows reports C: was using only 31 GB.
  3. Boot into BIOS setup. On Config tab, select Keyboard/Mouse and change “F1-F12 as Primary Function” to Enabled
  4. Boot from Ubuntu 16.04 USB
  5. Start gparted.
    1. You can ignore a warning that “the driver descriptor says the physical block size is 2048 bytes but Linux says it is 512 bytes.”
  6. Create a primary partition with the rest of the space, file system “lvm2 pv” named and labeled “lvm”
  7. Apply settings.
    1. Note the lvm partition, e.g. /dev/sda5.
  8. Open a terminal and set up the volume groups
    sudo pvcreate /dev/sda5
    sudo vgcreate volgroup1 /dev/sda5
    sudo lvcreate -n swap -L 16g volgroup1
    The size of the last command is equal to RAM
    sudo lvcreate -n ubuntu16.04 -l 33%FREE volgroup1
    The “-l” in the last command is a lower case L.
  9. Check logical volumes with “sudo lvscan”:
    ACTIVE '/dev/volgroup1/swap' [16.00 GiB] inherit
    ACTIVE '/dev/volgroup1/ubuntu16.04' [31.83 GiB] inherit
  10. Close the command prompt.
  11. Start “Install Ubuntu 16.04 LTS” from the desktop icon.
  12. Enable “Download updates while installing Ubuntu” and “Install third-party drivers” and “Turn off Secure Boot”.
  13. Set the password and store it someplace.
  14. At “Installation Type”, select “Something else”.
  15. Click on volgroup1-swap and change the type to “swap”
  16. Click on volgroup1-ubuntu16.04 and change the type to ext4, format and mount /.
  17. Leave the boot loader device at /dev/sda.