Difference between revisions of "How to setup a Windows 10, Linux Mint 19.1 Dual Boot with Encrypted Partitions on a Dell XPS 15 9560"

From steamWiki
Jump to: navigation, search
(Instructions)
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
 
#Click through the first menus until you get to the Partition screen.  At this point delete all partitions.
 
#Click through the first menus until you get to the Partition screen.  At this point delete all partitions.
 
#Now you need to do some custom work so hit '''Ctrl+F10''' and then you'll get to a command prompt
 
#Now you need to do some custom work so hit '''Ctrl+F10''' and then you'll get to a command prompt
##run ''diskpart''
+
##Run the ''diskpart'' tool by running <pre>diskpart</pre>
##type ''list disk''
+
##Now list out the disks on the machine by running <pre>list disk</pre>
##type ''select disk 0'' (if you are on a different machine it is possible you'd want to install to a disk other than 0)
+
##Assuming that the disk you want to use is ''disk 0'' run <pre>select disk 0</pre>
##type ''create partition efi size=1024''
+
##Create a 1GB [https://en.wikipedia.org/wiki/EFI_system_partition EFI partition] by running <pre>create partition efi size=1024</pre>
##type ''create partition msr size=16''
+
##Create a 16MB [https://en.wikipedia.org/wiki/Microsoft_Reserved_Partition MSR partition] by running <pre>create partition msr size=16</pre>
##type ''create partition primary size=450000'' (this creates a 450GB partition for Windows.  You can make this bigger or smaller as you please.  The rest of the space will be used for Linux
+
##Create a Windows partition (this guide assumes ~450GB for Windows 10, whatever is leftover will be for Linux) by running <pre>create partition primary size=450000</pre>
##type ''exit''
+
##Exit out of the ''diskpart'' tool by running <pre>exit</pre>
##type ''exit''
+
##Exit out of the command prompt and back into the Windows 10 installer by running <pre>exit</pre>
 
#Complete the Windows 10 installation normally
 
#Complete the Windows 10 installation normally
 
#Once you've booted into Windows enable BitLocker encryption of the Windows partition
 
#Once you've booted into Windows enable BitLocker encryption of the Windows partition
Line 30: Line 30:
 
#Install Linux Mint 19.1
 
#Install Linux Mint 19.1
 
##Reboot your machine with the Linux Mint 19.1 Installation Media inserted
 
##Reboot your machine with the Linux Mint 19.1 Installation Media inserted
##hit F12 when the Dell Logo shows during boot to get a Boot Menu on the Dell XPS 15 9560 & select the CD/DVD or USB as needed
+
##Hit F12 when the Dell Logo shows during boot to get a Boot Menu on the Dell XPS 15 9560 & select the CD/DVD or USB as needed
 
##When you get to the [https://en.wikipedia.org/wiki/GNU_GRUB GRUB] bootloader screen hit '''e''' to edit the Grub line for the Linux Mint 19.1 Live desktop
 
##When you get to the [https://en.wikipedia.org/wiki/GNU_GRUB GRUB] bootloader screen hit '''e''' to edit the Grub line for the Linux Mint 19.1 Live desktop
 
##*This is necessary because, currently, the default GPU driver include in the Live Desktop causes Linux to crash on the Dell 9560 and the system won't boot
 
##*This is necessary because, currently, the default GPU driver include in the Live Desktop causes Linux to crash on the Dell 9560 and the system won't boot
###replace ''"quiet splash"'' with ''"nomodeset"'' at the end of the line
+
###At the end of the line replace <pre style="color: red">quiet splash</pre> with <pre style="color: green">nomodeset</pre>
###hit '''F10''' to boot
+
###Hit '''F10''' to boot
 
##Once you're in the Live desktop environment open a terminal to download and run CallumCameron's [https://github.com/CallumCameron/mint-encrypted-install mint-encrypted-install] script
 
##Once you're in the Live desktop environment open a terminal to download and run CallumCameron's [https://github.com/CallumCameron/mint-encrypted-install mint-encrypted-install] script
###open a terminal
+
###Open a Terminal
###run ''sudo apt-get -y install git''
+
###Install [https://en.wikipedia.org/wiki/Git git] so that we can get CallumCameron's script by running <pre>sudo apt-get -y install git</pre>
###run ''git clone https://github.com/callumcameron/mint-encrypted-install''
+
###Make sure we're in our home directory by running <pre>cd ~</pre>
###run ''cd mint-encrypted-install''
+
###Get the mint-encrypted-install script by running <pre>git clone https://github.com/callumcameron/mint-encrypted-install</pre>
###run ''./mint-encrypted-install''
+
###Change directories to the newly downloaded folder by running <pre>cd mint-encrypted-install</pre>
###follow the onscreen prompts exactly
+
###Start the script by running <pre>./mint-encrypted-install</pre>
###When you are given the choice, I recommend choosing to install 3rd party drivers (but this is your choice)
+
###Follow the onscreen prompts exactlyWhen you are given the choice, I recommend choosing to install 3rd party drivers (but this is your choice)
 
##Reboot the system and you should be prompted to enter the encryption password you selected in Linux
 
##Reboot the system and you should be prompted to enter the encryption password you selected in Linux
 
##Once you see the [https://en.wikipedia.org/wiki/GNU_GRUB GRUB] bootloader choose Linux Mint 19.1
 
##Once you see the [https://en.wikipedia.org/wiki/GNU_GRUB GRUB] bootloader choose Linux Mint 19.1
 
##Login, click, the Linux Mint icon in the lower left to bring up the Start Menu, type "Driver Manager", and run that program
 
##Login, click, the Linux Mint icon in the lower left to bring up the Start Menu, type "Driver Manager", and run that program
 
##*Even though I chose to install 3rd party drivers, the open source [https://nouveau.freedesktop.org/wiki/ nouveau] GPU drivers were still selected
 
##*Even though I chose to install 3rd party drivers, the open source [https://nouveau.freedesktop.org/wiki/ nouveau] GPU drivers were still selected
###Click the "nvidia-driver-XXX" radio button to choose to use the proprietary nvidia drivers instead of the open source nouveau drivers (you can switch back and forth any time)
+
###Click the '''nvidia-driver-XXX''' radio button to choose to use the proprietary nvidia drivers instead of the open source nouveau drivers (you can switch back and forth any time)
  
 
At this point you should be setup with a system that requires the "Linux" password on boot, then takes you to GRUB where you can choose to boot into Linux or Windows.  Linux was decrypted when you entered the password.  Windows will be decrypted automatically with BitLocker.
 
At this point you should be setup with a system that requires the "Linux" password on boot, then takes you to GRUB where you can choose to boot into Linux or Windows.  Linux was decrypted when you entered the password.  Windows will be decrypted automatically with BitLocker.

Latest revision as of 16:02, 11 July 2019

This is a how to on setting up a system that dual boots Windows 10 and Linux Mint 19.1 where both the Windows and Linux partitions are encrypted. This guide expects UEFI to be turned on but SecureBoot to be turned off. This guide is targeting a Dell XPS 15 9560 laptop and so a couple of the steps are specific to that. However it should be useful for other versions of Linux and other computer models. Note that I don't go into great detail on actually executing the mint-encrypted-install script (I forgot to take notes on that part) but it was fairly straight forward (just make sure you follow the instructions).

Goal

Prerequisites

  • UEFIis turned on
  • SecureBootis turned off
  • You have a Windows 10 Installation CD/DVD/Thumbdrive available
  • You have a Linux Mint 19.1 Live Boot CD/DVD/Thumbdrive available
  • Your BIOS (really UEFI) configuration is set to allow booting from a CD/DVD and/or USB

Instructions

  1. Boot to your Windows 10 Installation Media (hit F12 when the Dell Logo shows during boot to get a Boot Menu on the Dell XPS 15 9560)
  2. Click through the first menus until you get to the Partition screen. At this point delete all partitions.
  3. Now you need to do some custom work so hit Ctrl+F10 and then you'll get to a command prompt
    1. Run the diskpart tool by running
      diskpart
    2. Now list out the disks on the machine by running
      list disk
    3. Assuming that the disk you want to use is disk 0 run
      select disk 0
    4. Create a 1GB EFI partition by running
      create partition efi size=1024
    5. Create a 16MB MSR partition by running
      create partition msr size=16
    6. Create a Windows partition (this guide assumes ~450GB for Windows 10, whatever is leftover will be for Linux) by running
      create partition primary size=450000
    7. Exit out of the diskpart tool by running
      exit
    8. Exit out of the command prompt and back into the Windows 10 installer by running
      exit
  4. Complete the Windows 10 installation normally
  5. Once you've booted into Windows enable BitLocker encryption of the Windows partition
    1. Go to Control Panel --> System and Security --> BitLocker Drive Encryption
    2. Click Turn on BitLocker for the Operating system drive
    3. Follow the instructions and save your recovery key
  6. Install Linux Mint 19.1
    1. Reboot your machine with the Linux Mint 19.1 Installation Media inserted
    2. Hit F12 when the Dell Logo shows during boot to get a Boot Menu on the Dell XPS 15 9560 & select the CD/DVD or USB as needed
    3. When you get to the GRUB bootloader screen hit e to edit the Grub line for the Linux Mint 19.1 Live desktop
      • This is necessary because, currently, the default GPU driver include in the Live Desktop causes Linux to crash on the Dell 9560 and the system won't boot
      1. At the end of the line replace
        quiet splash
        with
        nomodeset
      2. Hit F10 to boot
    4. Once you're in the Live desktop environment open a terminal to download and run CallumCameron's mint-encrypted-install script
      1. Open a Terminal
      2. Install git so that we can get CallumCameron's script by running
        sudo apt-get -y install git
      3. Make sure we're in our home directory by running
        cd ~
      4. Get the mint-encrypted-install script by running
        git clone https://github.com/callumcameron/mint-encrypted-install
      5. Change directories to the newly downloaded folder by running
        cd mint-encrypted-install
      6. Start the script by running
        ./mint-encrypted-install
      7. Follow the onscreen prompts exactly. When you are given the choice, I recommend choosing to install 3rd party drivers (but this is your choice)
    5. Reboot the system and you should be prompted to enter the encryption password you selected in Linux
    6. Once you see the GRUB bootloader choose Linux Mint 19.1
    7. Login, click, the Linux Mint icon in the lower left to bring up the Start Menu, type "Driver Manager", and run that program
      • Even though I chose to install 3rd party drivers, the open source nouveau GPU drivers were still selected
      1. Click the nvidia-driver-XXX radio button to choose to use the proprietary nvidia drivers instead of the open source nouveau drivers (you can switch back and forth any time)

At this point you should be setup with a system that requires the "Linux" password on boot, then takes you to GRUB where you can choose to boot into Linux or Windows. Linux was decrypted when you entered the password. Windows will be decrypted automatically with BitLocker.