On Carmine, a Thinkpad T560
Back up Windows
See also http://www.everydaylinuxuser.com/2015/11/how-to-install-ubuntu-linux-alongside.html
- Start Windows
- Download Reflect http://www.macrium.com/reflectfree.aspx
- Run the installer and accept all the defaults
- Insert USB drive and format with Windows Explorer
- Start Reflect
- At “Rescue Media” prompt, create USB with defaults
- Reboot with recovery USB drive to test it
- Reboot into Windows and start Reflect
- Select Other Tasks > Edit Defaults > Network tab
- Add \\ds411p2\home with NAS credentials
- On the Disk Image tab and Create a backup tab, select Image this disk
- Backup to \\ds411p2\home\{computer}-backup
- Select Other Tasks > Add Recovery Boot Menu Option, select Windows PE 10.0 menu (64 Bit)
- Reboot to make sure the boot menu comes up.
- Select Windows 10
Install Ubuntu 16.04 with LVM
See also http://askubuntu.com/questions/470632/install-lvm-dual-boot-with-windows
- Start Disk Management (called “Create and format hard disk partitions, Control panel” on the start menu)
- Right-click on the Windows NTFS partition and select Shrink Volume.
- 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.
- Boot into BIOS setup. On Config tab, select Keyboard/Mouse and change “F1-F12 as Primary Function” to Enabled
- Boot from Ubuntu 16.04 USB
- Start gparted.
- You can ignore a warning that “the driver descriptor says the physical block size is 2048 bytes but Linux says it is 512 bytes.”
- Create a primary partition with the rest of the space, file system “lvm2 pv” named and labeled “lvm”
- Apply settings.
- Note the lvm partition, e.g. /dev/sda5.
- 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. - Check logical volumes with “sudo lvscan”:
ACTIVE '/dev/volgroup1/swap' [16.00 GiB] inherit
ACTIVE '/dev/volgroup1/ubuntu16.04' [31.83 GiB] inherit - Close the command prompt.
- Start “Install Ubuntu 16.04 LTS” from the desktop icon.
- Enable “Download updates while installing Ubuntu” and “Install third-party drivers” and “Turn off Secure Boot”.
- Set the password and store it someplace.
- At “Installation Type”, select “Something else”.
- Click on volgroup1-swap and change the type to “swap”
- Click on volgroup1-ubuntu16.04 and change the type to ext4, format and mount /.
- Leave the boot loader device at /dev/sda.
Post a Comment
You must be logged in to post a comment.