Custom Linux (Ubuntu) Install - Method for Setting Up Dual Boot
Before proceeding make note of the disk partitioning scheme on the boot drive (MBR or GPT) and the boot mechanism (BIOS/Legacy or EFI).
On linux, you can check for the presence of /sys/firmware.efi
; on windows, this can be found with msinfo32
.
When creating the boot media, most support both EFI and BIOS/Legacy if the boot media is installed with either MBR or GPT.
However, when actually booting to that USB device, ensure that the correct boot mechanism (BIOS/Legacy or EFI) is being used.
If a warning comes up on the last stage of the install, you probably have not matched the boot mechanism with the existing boot mechanism and will get a failed install.
Usually best to install Windows first over the whole disk for a dual boot setup.
- Continue wizard until "Installation type"
- Select "Something else"
- (For dual boot) Shrink Windows partition to make free space. Recovery partition can be left untouched.
- Create the following partitions
- Swap partition
- Size: >= RAM (for hibernation)
- Type: Primary (can be logical if "unstable" issue occurs)
- Location: Beginning of space
- Use as: swap area
- Root filesystem - used for kernel, boot files, system files, (most) installed programs, libraries, etc.
- Size: >20GB, I recommend 50GB
- Type: Logical
- Location: Beginning of space
- Use as: ext4 fs
- Mount point: /
- Home directory - used for user files. (For dual boot systems I recommend having a common data partition so this becomes less needed)
- Size: Up to you. Recommended >10GB
- Type: Logical
- Location: Beginning of space
- Use as: ext4 fs
- Mount point: /home
- Swap partition