LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2021, 12:40 PM   #1
duckwobble
LQ Newbie
 
Registered: May 2021
Posts: 15

Rep: Reputation: Disabled
Lubuntu 20.04 won't boot in UEFI or Legacy


I'm sure I just wrote a thread - I don't know if they have to go through an approval process?

I've installed a new ssd, so I'm installing Lubuntu from a usb. This is the only usb I have, but I'm wondering if the image might be faulty?

I've tweaked all the boot options and orders, installed in both legacy and uefi - neither would boot. Either 'no boot device' or 'no operating system' errors.

I tried boot-repair in both modes:
legacy: https://paste.ubuntu.com/p/W5DPCMByjp/
uefi: http://paste.ubuntu.com/p/C3jMp42K7d/

I tried manually partitioning, but couldn't mount them in Gparted and the installer didn't like it much either. Wasn't entirely sure what I was doing, but had a go since it's a fresh drive and no risk of data loss.

Currently quite flummoxed, overwhelmed by all the information out there and which direction is best to take.

Any help and suggestion very welcome and much appreciated.

TIA
 
Old 05-03-2021, 07:54 PM   #2
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
The first thing I'd try is to turn off secure boot.

But if the usb is booting it's getting round secure boot.
 
Old 05-03-2021, 08:16 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
uefi did not work, one you booted into legacy mode both times according to boot-repair, second the disk type is msdos not gpt.

Go into the firmware/bios and disable legacy/csm mode.

Boot the lubuntu usb.

Use gparted to set device>create-partition table>type gpt,

Start installer, during partitioning stage select "erase disk and install"

Last edited by colorpurple21859; 05-03-2021 at 09:23 PM.
 
Old 05-04-2021, 02:12 AM   #4
duckwobble
LQ Newbie
 
Registered: May 2021
Posts: 15

Original Poster
Rep: Reputation: Disabled
So, if I go into bios and select uefi with csm - does that not count as uefi?

On uefi without csm the usb wasnt recognised as a boot option.

The penny dropped that I needed to update the firmware on the new ssd, but I don't know if this would make a difference?

I booted in both legacy and uefi with csm. So, is it the csm thats making the system think it's not in uefi?

The only way to boot in uefi without csm is with an efi file - and I have no idea which filename to enter.

I have turned off secure boot as far as I can tell (only indicated by a checkbox to clear secure keys - there is no explicit on/off option).

The usb boots only through F9, ie, manually.

Thanks!

Last edited by duckwobble; 05-04-2021 at 02:13 AM. Reason: Clarifying
 
Old 05-04-2021, 02:48 AM   #5
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
duckwobble,

For UEFI boot, follow colorpurple21859’s suggestion but then create a 300MiB EFI system partition (esp), formatted as FAT32. This will be sda1 (see below).

NB Once this is created it is essential to right click on this partition and flag it as esp/boot, then exit gparted.

Hopefully this will boot and you can then select “Something else” and create 3 primary partitions along the following lines.

Make sure to select Beginning for the location of each partition.

Highlight the free space and click on Change.

First create sda2:
sda2....formatted (X in the box) as ext4 as the root partition (/)......Size: 25000MB
Click on OK.

Highlight the free space and click on Change.

sda3.....not formatted (no X in the box) as the swap partition.............Size: 2000MB.
Click on OK.

Highlight the free space and click on Change.

sda4......formatted (X in the box) as ext4 as the Home partition (/home)......Size: Remainder of hard drive.
Click on OK.

Install on sda.
 
Old 05-04-2021, 04:04 AM   #6
duckwobble
LQ Newbie
 
Registered: May 2021
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks for the little partition guide beachboy - very much appreciated..! I had made a little fat32 partition, but didn't know about the esp/boot.

Just to clarify, is the boot mode 'uefi with csm' suitable for this method?

Also, is the swap for a dual boot setup?

And finally, when I go to install and 'erase disk' - the partitions will remain?

Thank you for the assistance ��
 
Old 05-04-2021, 05:51 AM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
So, if I go into bios and select uefi with csm - does that not count as uefi?
No, csm is an implementation of the old way of booting a system on a uefi system.
Quote:
On uefi without csm the usb wasnt recognised as a boot option.
This indicates the usb is only booting in csm/legacy mode not uefi mode. What is the name of the iso you used and how did you put the iso onto the usb?

Quote:
The only way to boot in uefi without csm is with an efi file - and I have no idea which filename to enter.
on the usb it will be a EFI/Boot/Bootx64.efi file.

It is possible to install a system in uefi mode while booted in legacy/csm mode, but may be daunting for someone that isn't familiar with linux and the use of the console/terminal.

Quote:
And finally, when I go to install and 'erase disk' - the partitions will remain?
No, the installation will create all new partitions including the efi partition if the usb is booted in uefi mode. You will have to use "something else" option to keep a previously created partition table.

The existence/nonexistence of /sys/firmware/efi directory indicates whether or not your booted in uefi or legacy/csm mode.

A simple of test if it's existence from a terminal/console is this
Code:
cat /sys/firmware/efi
This will come back as "it is a directory" or doesn't exist message.

Last edited by colorpurple21859; 05-04-2021 at 06:04 AM.
 
1 members found this post helpful.
Old 05-04-2021, 06:13 AM   #8
duckwobble
LQ Newbie
 
Registered: May 2021
Posts: 15

Original Poster
Rep: Reputation: Disabled
Aha, so the problem is that I've been booting in 'uefi with csm'.

I downloaded the iso from lubuntu and installed it with unetbootin, but that's all I know. I think I'm going to try again, but with some efi configurations. Although, I might try that filename first!

By "something else", the options were to add a partition for the install, replace a partition or manual partition, is this what you mean? I did try manual on the installer, but it never activated the 'next' button.

I very much appreciate your time explaining through this with me, it's such a tonic to be able to ask directly. A lot of searching tends to be one big puzzle with missing pieces!

Currently in transit but I'll be getting my laptop shortly to try all these suggestions thank you!
 
Old 05-04-2021, 07:04 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
installed it with unetbootin
I think this is your problem. If using windows, I recommend rufus https://rufus.ie/ It has two different modes to install to usb, it has iso-image or dd mode. choose iso-image as it will allow to copy additional files to the usb if needed, whereas dd will make the usb read-only like a regular dd/cd, if iso-image doesn't work then use DD mode. Accept the defaults on the first screen that comes up.

Last edited by colorpurple21859; 05-04-2021 at 07:05 AM.
 
Old 05-04-2021, 07:14 AM   #10
duckwobble
LQ Newbie
 
Registered: May 2021
Posts: 15

Original Poster
Rep: Reputation: Disabled
If I write another usb it'll have to be done on the live OS. Does Unetbootin also have that feature?
 
Old 05-04-2021, 07:16 AM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
If you decide to try downloading again, make sure you use the official download site at the link below and also make sure you verify the download process was good. That is explained in a link on the page.

https://lubuntu.me/downloads/

There is a lot of information available online, much of it inaccurate so using the official documentation is usually best. Link below is the Lubuntu install guide including setting the drive (gpt,msdos) type and partitioning.

https://manual.lubuntu.me/stable/1/1...tallation.html

You make reference to option in the BIOS firmware but have not indicated the manufacturer (HP, Dell, Toshiba, etc.) which could help someone to help you with regard to firmware options.
 
Old 05-04-2021, 07:51 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Code:
If I write another usb it'll have to be done on the live OS
Here are links to ways of doing this.
https://www.pragmaticlinux.com/2021/...nux-iso-image/

https://www.howtogeek.com/414574/how...rive-in-linux/
I have had good luck with balena-etcher.

Make sure you select the correct usb.
 
Old 05-04-2021, 08:09 AM   #13
duckwobble
LQ Newbie
 
Registered: May 2021
Posts: 15

Original Poster
Rep: Reputation: Disabled
Oh my... what do you mean by correct usb? Just that it's correctly formatted to boot? Ohhh you mean the right drive, ie, if I have two plugged in?

My laptop is a HP ProBook 4540s, now with a Crucial mx500 ssd.

Thank you for the links cant wait to try all this!
 
Old 05-05-2021, 12:36 PM   #14
duckwobble
LQ Newbie
 
Registered: May 2021
Posts: 15

Original Poster
Rep: Reputation: Disabled
Turns out all I needed was that file name! Installation and reboot went smoothly, no issue whatsoever! I had tried searching for that to no avail. Big thank you colourpurple..! What a load of faff.... best part of three days and it was installed and running in about 3 minutes. Amazing.. haha. Very pleased anyway, and I've learnt a lot in the process. Much gratitude for all contributions here
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI Class 3 :: To use UEFI, or not to use UEFI? jheengut Slackware 19 12-30-2020 09:24 AM
which is official site for Lubuntu? lubuntu.me or lubuntu.net linux-man Linux - Newbie 3 07-05-2020 11:02 AM
[SOLVED] Trying to boot Ubuntu in UEFI mode, UEFI doesn't recognize boot devices Sarcutus Ubuntu 11 01-11-2019 07:14 PM
Mobo only supports uefi boot - how do I boot off a non-uefi cd? Ulysses_ Linux - Hardware 3 02-25-2016 08:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:45 PM.

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