I know there are tons of Questions/Answers about this problem, but even after few hours of search did not give me what I really wanted. Maybe I searched with wrong keyword, but I think this is out of my capability.
I have PC with MSI B450M Mortar, 1 SSD, 1 HDD. And I want my whole system's partition stuff be like this.
- SATA SSD, 500GB
- 512MB EFI Partition
- 140GB Windows(NTFS) Partition (This is where Windows is installed)
- 325GB NTFS Partition (This is where I install games etc.)
- SATA HDD, 1TB
- 500GB NTFS Partition (This is where I install some heavy software)
- 100GB ext4
/
Partition (This is where Ubuntu's/
will be mounted) - 400GB ext4
/home
Partition (This is where Ubuntu's/home
will be mounted)
Since I don't mainly use Ubuntu but occasionally use it, I don't need SSD for most of Ubuntu stuff. I satisfied with its speed with HDD.
Since I don't know much about 'Windows Boot Manager', I assume it is just for launching Windows. Maybe I can do 'Safe Mode' stuff without it. Thus, I want GRUB to replace WBM. That means, when I turn my PC on, only GRUB will appear(with some cool theme). If I select Windows in GRUB, it will boot to Windows. If I select Ubuntu in GRUB, it will boot to Ubuntu.
(In this case, I don't care about GRUB launching WBM, but only if doing so doesn't impact Windows' boot speed)
I've tried several ways. Since Windows is primary OS for me, I installed Windows first.
(I can't remember everything so I will describe what I remember now)
First, I splitted partition in HDD before installing Ubuntu. I selected 'custom' option thing when installing Ubuntu and selected 'boot loader' partition as /dev/sda1
which Windows Boot Manager is already installed.
It worked well, but boot time was horrible. Booting into Windows and Ubuntu took much much longer. I think this is because GRUB refers config in /boot/grub
which is located in HDD, so PC need to search SSD first for EFI and HDD for GRUB config. So, I need to put GRUB thing into EFI partition. My guess is, if I do it, boot time will be fast enough because GRUB gets its config in SSD in same partition as EFI partition.
So I tried to mount EFI partition as /boot
when installing, but Ubuntu Installer didn't allow it.
Next attempt was create another 512MB partition next to EFI partition, shrinking Windows partition. I mounted /boot
(/dev/sda4 - that's because it was created 4th) and /boot/efi
(/dev/sda1 - EFI partition). Well, I don't know why, but it didn't mount /boot
, so /dev/sda4 was blank, not used at all.
I even tried to install with Ubuntu Installer's 'Install with Windows Boot Manager' option and I regret it. It created blank, not used partitoin in HDD and put /dev/sdb5 under /dev/sdb3. There was no /dev/sdb4. I personally hate those 'unordered' things, so I gave up with that option.
So, long story short, I want boot loaders act like this.
- If WBM act crucial part about 'Safe Mode' etc.
- GRUB first
- If Windows is selected, boot with WBM, boot into Windows
- If Ubuntu is selected, boot into Ubuntu
- GRUB config/theme located in EFI partition
- GRUB first
- If WBM act nothing about 'Safe Mode' etc.
- GRUB only
- If Windows is selected, boot into Windows, without WBM
- If Ubuntu is selected, boot into Ubuntu
- GRUB config/theme located in EFI partition
- GRUB only
PS. Don't worry about WBM wiped out. I recovered it with bcdboot C:\Windows /l ko-kr /s K: /f UEFI
everytime I formatted EFI partition and recovered WBM.
/boot
in installer, so try it once more' – tetratheta May 23 '21 at 06:03