UEFI: MS Windows 10 and Linux Mint installation

User discussion and information resource forum for BootIt Bare Metal and BootIt UEFI
Post Reply
Mohamed52
Posts: 6
Joined: Mon Sep 07, 2020 3:37 pm

UEFI: MS Windows 10 and Linux Mint installation

Post by Mohamed52 »

I am trying to install both OSs MS Windows 10 and Linux Mint on the same HDD under an UEFI environment and I couldn't succeed.
My machine has already MS Windows 10 installed and works perfectly. After so many trials to install the Linux Mint I got no success. Under BIBM that was so easy and under UEFI I can't get working.
Does anyone have some experience in this configuration and has any advice to me on how to do this?
Many thanks
Brian K
Posts: 2235
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

Re: UEFI: MS Windows 10 and Linux Mint installation

Post by Brian K »

Mohamed52 wrote:
> I am trying to install both OSs MS Windows 10 and Linux Mint on the same
> HDD under an UEFI environment and I couldn't succeed.

Mohamed52,

To help us understand what is going wrong, can you describe in detail your method of installing Linux Mint and setting up the Mint Boot Item.
Mohamed52
Posts: 6
Joined: Mon Sep 07, 2020 3:37 pm

Re: UEFI: MS Windows 10 and Linux Mint installation

Post by Mohamed52 »

Brian K wrote:
> To help us understand what is going wrong, can you describe in detail your method of
> installing Linux Mint and setting up the Mint Boot Item.

Here are the steps done:
1- Create a Linux native partition named "LinuxMint"
2- Install Linux Mint on that partition without any Swap partition, just the root partition with boot (grub) on that root partition
3- Create a new boot menu item named "Linux Mint 20.0 Ulyana"
4- Select the "LinuxMint" as "Boot" in the menu item
Then
5- Bootit adds automatically "\efi\boot\bootx64.efi" under the "Boot File" menu item
6- It says "The boot file was not found. Do you want to continue anyway?"
7- I said "Yes"
8- Trying to boot the linux partition it says "Unable to mount the file system"

Installing linux partitions is straight forward under BIBM.

Many thanks for your help.
Attachments
Boot menu appearance
Boot menu appearance
BootMenu.png (243.23 KiB) Viewed 3520 times
Brian K
Posts: 2235
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

Re: UEFI: MS Windows 10 and Linux Mint installation

Post by Brian K »

Mohamed52 wrote:

>
> Here are the steps done:
> 1- Create a Linux native partition named "LinuxMint"
> 2- Install Linux Mint on that partition without any Swap partition, just the root
> partition with boot (grub) on that root partition

With a UEFI system you should install the boot loader into the ESP, not into the root partition.

If Secure Boot is enabled the Boot File should be...

\EFI\ubuntu.001\shimx64.efi

Remove the tick in "Use UEFI BM". Rename Directory shouldn't be greyed out. Check bit 55. See page 59 in the BIU user guide.
Radiogram
Posts: 23
Joined: Mon Jun 17, 2019 2:25 pm
Location: Melb, Aus

Re: UEFI: MS Windows 10 and Linux Mint installation

Post by Radiogram »

Mohamed52,

Linux Mint is derived from Ubuntu. The two are closely related.
I imagine the install routine for Linux Mint will be more or less the same as for Ubuntu.

My recent experience with multiple installs of Ubuntu required a slight deviation from Brian K's method.

Starting from scratch, the Ubuntu install guide found in the TBI KB is helpful reading:
https://www.terabyteunlimited.com/kb/article.php?id=279
The guide was updated for Ubuntu 15.04 and BootIt BM but remains broadly relevant to Ubuntu 20.04 and BootIt UEFI (BIU).

Edit: TBI have made a similar install guide for Linux Mint:
https://www.terabyteunlimited.com/kb/article.php?id=281

The process I used to successfully install Ubuntu 18.04.5 and Ubuntu 20.04.1 with BIU follows...

(1) In BIU use Partition Work to create the partition into which Linux Mint will be installed.
I made it 60000 MiB. For file type select "Linux Native".
No need for an extra Swap partition; a swap file will be created in / (root) partition by default during installation.
(2) Go to BIU's "Boot Edit" screen.
=> Add -- to add a new boot item for Linux Mint
"Boot" field -- direct this to the partition you made for Linux Mint
"Boot File" field => hit "Browse" button. Direct it to same / (root) partition where Linux Mint will be installed.
Notice will appear saying "Unable to mount file system" => OK.
Use OK buttons to click out of the Boot Edit screen.
(3) At BIU home screen hit Resume.
(4) At BIU's boot screen select the boot item made for Linux Mint and try to boot from it.
The boot attempt will fail. That's expected. There's no OS yet and boot loader hasn't been installed yet either.
(5) Insert your installation media. Best to flash .iso install file to USB stick.
Put stick into USB port and reboot into it.
(6) When the install procedure reaches the "Installation Type" screen choose "Something Else".
In the upper field of the next screen find the partition created for Linux Mint.
Double click its line to select it as partition to install to.
Select file system (ext4 is good for most purposes). Check format option. Select mount point as / (root). Hit OK.
Below the upper field is a wide button labelled "Device for boot loader installation".
Select the same partition as selected above for / (root) ***

***This is the point of difference between my method and Brian's. When I directed installer to put boot loader into EFI partition as Brian suggests the result was a mess. Cannot recall its exact nature but was bad enough for me to delete everything (including new ubuntu.nnn directory added to ESP) and start again using this method. Which works.

Now carefully check the options you've selected.
Make sure correct partition for install has been selected, and that existing OS and data partitions will not be overwritten.

Hit the Continue button and proceed with the install.

After installing reboot. Machine will boot directly into new OS - you won't see BIU boot screen.
You will need to reactivate BIU at next reboot.

Reboot into BIU.

(7) BIU boot screen will have listing for boot item you created plus a newly created boot item.
For Ubuntu installs the new boot item created by the installer is labelled "ubuntu". Maybe you'll see "LinuxMint" instead.
Enter BIU "Maintenance" => Boot Edit screen.
Select the boot item made earlier for Linux Mint => Edit
Boot File => Browse
Drill down through this path in / (root) partition:
\boot\grub\x86_64-efi\grub.efi

Click OK to save your work and return to BIU home screen.
Hit Resume => takes you to BIU boot screen presenting list of boot items to boot from.
Check that the boot item you created boots to Linux Mint.

Later you might check the "LinuxMint" boot item that was created during the install process via BIU Boot Edit => Edit.
Its path to boot loader will be different but still works.
For my Ubuntu installs the extra boot item created by installer is setup to look for boot loader in EFI System Partition (ESP).
Path for boot loader file is something like: \EFI\ubuntu.nnn\grub64.efi
Last edited by Radiogram on Thu Sep 10, 2020 11:24 pm, edited 1 time in total.
Brian K
Posts: 2235
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

Re: UEFI: MS Windows 10 and Linux Mint installation

Post by Brian K »

Radiogram,

That's an interesting method and it even works if you delete ubuntu.001

However it doesn't work if Secure Boot is enabled.
Radiogram
Posts: 23
Joined: Mon Jun 17, 2019 2:25 pm
Location: Melb, Aus

Re: UEFI: MS Windows 10 and Linux Mint installation

Post by Radiogram »

Brian,

These are observations I was trying to convey in other recent threads.
They were discovered by process of trial and error.

Only possible when there is no risk of data loss or corruption.
Preparing for potential catastrophe with IFL backup images is an essential starting point.
No stress. No worries. Easy to wind back the clock.

When the process has been completed two new BIU boot items will have been created:
-- user created one for which the boot item is directed to find boot loader in / (root) partition
-- installer created one for which the boot item is directed to find boot loader in ESP
Both work.

When you deleted the new ubuntu.nnn directory from ESP and OS still booted, I presume you booted from the root-directed boot item. It would surprise me if ESP-directed boot item still worked.

Do you have any links to hand on Secure Boot?
I probably should look into it a little more.
Brian K
Posts: 2235
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

Re: UEFI: MS Windows 10 and Linux Mint installation

Post by Brian K »

Radiogram wrote:
> When you deleted the new ubuntu.nnn directory from ESP and OS still booted,
> I presume you booted from the root-directed boot item.

Yes, I used your Boot File method.
Post Reply