LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 12-11-2023, 10:12 AM   #1
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Rep: Reputation: Disabled
Installation of MX Linux on GPT disk failed - EFI wasn't selected?


Back again, hello everyone.
After I added a GPT partition to my new 4TB Samsung Evo I went ahead and tried to prepare it properly in order to be able to install MX Linux 21.3 on it. For the installation I utilize a Live MX USB stick. This is something that I've done for years, probably installed MX Linux over 100 times on many different machines, but always on disks with MBR on them.

According to documentation that I located Online I created a 512 MB FAT32 boot partition as SDA1 and utilized the flag option to mark that partition as the boot partition.

Aside from a swap partition there is only one other 225GB partition which was created and formatted as ext4 in order to be able to install the system with root privileges.

The installation process began initially without a problem, except for the fact that a message appeared informing me of the missing MBR for which GRUB would be required. Proceed anyway? To which I responded, yes. I proceeded anyway because I had created the required EFI / FAT32 boot partition and figured that the MX installer would make use of that automatically. Sadly that wasn't the case. Upon rebooting the system an error appeared, boot disk or operating system couldn't be found.

So I figured perhaps it had something to do with my Bios settings. I made adjustments for disable legacy mode but keep secureboot enabled ... which did not work. Same message about missing boot disk or missing operating system. So I got back into the bios and changed the setting to enable legacy but keep secureboot disabled. Tried booting into the system again, same problem. My bios has the 4TB disk showing accurately (actually 3.73 TB). It is also selected to be the first boot device by default. So at this point I don't have a clue as to what I need to do in order to be able to boot my newly installed system?
Any helpful thoughts would be appreciated.
 
Old 12-11-2023, 11:20 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
I created a 512 MB FAT32 boot partition as SDA1 and utilized the flag option to mark that partition as the boot partition.
Using gparted or some similar software, you need to set your 512MB vfat partition as boot and efi. In gparted, right click the EFI partition in the main window and move down and select Manage flags and select the check box to the left of boot and efi. Did you do that? Did you boot the usb to install in EFI mode? The fact that the installer asked about the MBR would seem to indicate it was not booted EFI as the MBR is not used with EFI boot code.

You can install in Legacy/MBR mode on a GPT disk but then you would need to create an unformatted 1MB bios_boot partition and have that partition set to bios_boot with manage flags. The bios_boot partiton is needed in this case for the Grub core.img file. Better to boot and install EFI.

Last edited by yancek; 12-11-2023 at 11:23 AM.
 
Old 12-11-2023, 11:35 AM   #3
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Original Poster
Rep: Reputation: Disabled
Yes, everything was done as you suggested and as I had read elsewhere. But you're right, when I booted into the Live MX installation USB I did not use EFI. Didn't think that it would matter for the USB stick. I'll try again tomorrow morning (it's evening time here). Thank you.
 
Old 12-11-2023, 12:03 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,139
Blog Entries: 21

Rep: Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480
There is a boot repair in the MX menu.
 
Old 12-17-2023, 06:26 AM   #5
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Original Poster
Rep: Reputation: Disabled
Wasn't certain if Boot Repair could work with the differences between a legacy boot stick alongside a UEFI required installation. So just to play it safe I went ahead and booted back into the USB installation mode, this time using the UEFI option. Then I reinstalled the system. Right away I could see that the boot (menu?) was being installed correctly into the root ESP partition which was created for that purpose. So this time around the installation went fine, after a reboot the system was there as it should be, without any errors.

Just for the heck of it I did try to enable fastboot & secureboot in the bios but that didn't work. Received drive not found error. As soon as I went back into the bios, disabling fastboot as well as secureboot, everything was fine again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failed to open \EFI\uniontech\grub.efi - Not found Matthew Wai Linux - Software 1 01-27-2023 12:31 AM
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
[SOLVED] failed to open \efi\boot\grubx64.efi patrickwilson82 Linux - Server 5 02-19-2018 10:44 AM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM
Disk Partitions for dual boot with Windows 7 GPT/EFI motiv8d1 Linux - General 2 01-10-2011 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 04:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration