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"
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 the ''diskpart'' tool by running <pre>diskpart</pre> |
− | ## | + | ##Now list out the disks on the machine by running <pre>list disk</pre> |
− | ## | + | ##Assuming that the disk you want to use is ''disk 0'' run <pre>select disk 0</pre> |
− | ## | + | ##Create a 1GB [https://en.wikipedia.org/wiki/EFI_system_partition EFI partition] by running <pre>create partition efi size=1024</pre> |
− | ## | + | ##Create a 16MB [https://en.wikipedia.org/wiki/Microsoft_Reserved_Partition MSR partition] by running <pre>create partition msr size=16</pre> |
− | ## | + | ##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> |
− | ## | + | ##Exit out of the ''diskpart'' tool by running <pre>exit</pre> |
− | ## | + | ##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 |
##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 | + | ###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 |
##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 |
− | ### | + | ###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> |
− | ### | + | ###Make sure we're in our home directory by running <pre>cd ~</pre> |
− | ### | + | ###Get the mint-encrypted-install script by running <pre>git clone https://github.com/callumcameron/mint-encrypted-install</pre> |
− | ### | + | ###Change directories to the newly downloaded folder by running <pre>cd mint-encrypted-install</pre> |
− | ### | + | ###Start the script by running <pre>./mint-encrypted-install</pre> |
− | + | ###Follow the onscreen prompts exactly. When 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 | + | ###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. |
Revision as of 15:47, 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
- Dual Boot system running UEFI (but not SecureBoot)
- Windows 10 Partition encrypted with BitLocker
- Linux Mint 19.1 Partition encrypted with LUKS
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
- 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)
- 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
- Run the diskpart tool by running
diskpart
- Now list out the disks on the machine by running
list disk
- Assuming that the disk you want to use is disk 0 run
select disk 0
- Create a 1GB EFI partition by running
create partition efi size=1024
- Create a 16MB MSR partition by running
create partition msr size=16
- 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<pre>
- Run the diskpart tool by running
- Exit out of the command prompt and back into the Windows 10 installer by running
exit
- Exit out of the command prompt and back into the Windows 10 installer by running
- Complete the Windows 10 installation normally
- Once you've booted into Windows enable BitLocker encryption of the Windows partition
- Go to Control Panel --> System and Security --> BitLocker Drive Encryption
- Click Turn on BitLocker for the Operating system drive
- Follow the instructions and save your recovery key
- Install Linux Mint 19.1
- 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
- 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
- At the end of the line replace
quiet splash
withnomodeset
- Hit F10 to boot
- Once you're in the Live desktop environment open a terminal to download and run CallumCameron's mint-encrypted-install script
- Open a Terminal
- Install git so that we can get CallumCameron's script by running
sudo apt-get -y install git
- Make sure we're in our home directory by running
cd ~
- Get the mint-encrypted-install script by running
git clone https://github.com/callumcameron/mint-encrypted-install
- Change directories to the newly downloaded folder by running
cd mint-encrypted-install
- Start the script by running
./mint-encrypted-install
- Follow the onscreen prompts exactly. When 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
- Once you see the 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
- Even though I chose to install 3rd party drivers, the open source 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)
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.