Recently I have found a little harder to set up a dual boot installation Ubuntu 20.04 LTS / Windows 10 in a laptop. It involved:
- Switch SSD operation mode from RST to AHCI
- Prepare usb stick for Ubuntu iso image to load in UEFI mode (BIOS does not support legacy mode)
- Shrink Windows 10 partition
- Ubuntu 20.04 installation, create encrypted LVM partition
- Enjoy the set up
The default BIOS setting was to use hard disk in RAID configuration. Ubuntu installation guide comes already with a notice that could not access SSD through RST and some changes at BIOS was necessary to proceed. A good read about it is: https://help.ubuntu.com/rst/.
The solution provided there was not so useful for me (the BSOD showed up after those modifications on registry) and I had to recover Windows installation (a recovery point was fine as well as rollback to set RST in BIOS).
The one which worked for me is this one: https://support.thinkcritical.com/kb/articles/switch-windows-10-from-raid-ide-to-ahci:
_On Windows installation configure next boot to start in safe mode:
- Type this command and press ENTER:
bcdedit /set {current} safeboot minimal
- Restart the computer and enter BIOS Setup. Change the SATA Operation mode to AHCI from either IDE or RAID
- Save changes and exit Setup and Windows will automatically boot to Safe Mode.
- Rollback changes: type in cmd
bcdedit /deletevalue {current} safeboot
- Reboot once more and Windows will automatically start with AHCI drivers enabled_
Download image from http://releases.ubuntu.com/focal/, verify sha256 signature and simple use "Startup Disk Manager" utility from another Ubuntu installation. It could be possible to use Rufus in Windows, but in my case the usb stick was not being loaded at boot time (who knows what happened ..)
Found so easy to use Disk Management utility from windows installation. Useful video: https://www.youtube.com/watch?v=tJiakVgAtn4 Another way could be using GParted iso image.
I wanted to encrypt the ubuntu partition but not the whole disk as I wanted to preserve the current Windows partitions. So in my case two partitions were set up (of course there are many other advanced possibilities, I just wanted the more convenient one)
- boot partition, assigned aprox 250 - 500 MB (mount point /boot)
- main partition, selected file type "encrypted device" (a new volume at the top will be created and this one should be assigned the / mount point)
Other references:
- https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019
- https://discourse.ubuntu.com/t/ubuntu-installation-on-computers-with-intel-r-rst-enabled/15347
- https://askubuntu.com/questions/1239264/is-it-possible-to-setup-lvm-with-the-ubuntu-20-04-graphical-installer
- https://www.dell.com/support/kbdoc/es-uy/000131253/how-to-install-ubuntu-and-windows-8-or-10-as-a-dual-boot-on-your-dell-pc?lang=en
- https://www.dell.com/support/kbdoc/es-uy/000131655/how-to-install-ubuntu-linux-on-your-dell-pc?lang=en