Windows ubuntu duo system

efi_boot

Posted by Yuan on July 1, 2022

corinthians,12:9-10: But he said to me, “My grace is sufficient for you, for my power is made perfect in weakness.” Therefore I will boast all the more gladly about my weaknesses, so that Christ’s power may rest on me. 10That is why, for Christ’s sake, I delight in weaknesses, in insults, in hardships, in persecutions, in difficulties. For when I am weak, then I am strong.

I bought a new PC: Dell Precision3650 Tower for deep learning and large scale computing. This PC has 2 SSD harddrive (256GB + 1TB) and 1 HDD harddrive (4TB).

In this poster, I will only focus on how the duo boot systems are installed, for my own record. There are a lot tutorials on line, and some of those are really confusing, mainly due to the mixing of UEFI/GPT and Bios/MBR. I found a good one here win10 +ubuntu20.04双系统安装:双硬盘+nvidia独立显卡_柚子=_=的博客.

A general process to install the dua boot system:

  1. Install Windows on one SSD, using UEFI/GPT. If the hardisk is bitlockedm(BitLocker encrypted disk), you need to save the recovery ID and passport code. Otherwise, you could not log back after ubuntu is installed.
  2. Make a USB boot Ubuntu 20.04 disk.
  3. Set EFI, boot from USB.
  4. “Normal installation”, “Something Else…”
  5. Select place to install the system.
  6. My partitions:
    • For the 1024G SSD harddisk
    Partition File System Mount Size Primary/Logical
    EFI ESP /boot/efi 1024MB Primary
    OS EXT4 / 100GB Logical
    User Home EXT4 /home 900GB Logical
    SWAP SWAP   Remaining ~13GB Logical
    • For the 256GB SSD harddisk: NTFS, Windows 10, C
    • For the 4TB HDD harddisk: NTFS, 500 GB for other documents(Volume D:) NTFS, Remaining 3.5TB for data.

To best understand the installation process, we need to know the boot procesure, from Vaibhav Kandwal:

  1. You press the power button on your laptop/desktop.
  2. The CPU starts up, but needs some instructions to work on (remember, the CPU always needs to do something). Since the main memory is empty at this stage, CPU defers to load instructions from the firmware chip on the motherboard and begins executing instructions.
  3. The firmware code does a Power On Self Test (POST), initializes the remaining hardware, detects the connected peripherals (mouse, keyboard, pendrive etc.) and checks if all connected devices are healthy. You might remember it as a ‘beep’ that desktops used to make after POST is successful.
  4. Finally, the firmware code cycles through all storage devices and looks for a boot-loader (usually located in first sector of a disk). If the boot-loader is found, then the firmware hands over control of the computer to it.

UEFI and Bios(or Legacy) are two such firmware interfaces used by all most all personal computers. To begin with, we need to know the latest UEFI

This PC also has a RTX3090 24GB vedio card, 64GB memory, with Intel i9-11900K CPU. The total power is 1000W. In the next poster, I will update the configurations of pytorch and cuda for this computer, which is tricky.