Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Ubuntu installation does not boot while Lubuntu does

  1. #1
    Join Date
    Sep 2013
    Beans
    56

    Ubuntu installation does not boot while Lubuntu does

    I have Ubuntu 22.04 running on a HP ProBook 4540s. Originally I started it way back on 18.04 and upgraded it twice (to 20.04 then to 22.04)


    I got a new hard drive and I decided to start from scratch by installing 22.04.03 using the iso and a bootable usb. The live USB worked and then I got it to install. But on booting from the new hard drive, I got an error (BootDevice not found). Using gparted on the live usb, I can see the installation on the new hard drive as /dev/sda1 grub2core.img 1 MB, /dev sda2 EFI system partition, and /dev/sda3 is ubuntu 22.04. This isn't what I expected though as I thought the install was simply on /dev/sda1.


    Strange thing is when I installed Lubuntu 22.04.03 instead using the live usb, Lubuntu booted properly and was installed on /dev/sda1 as expected.


    I would rather be using Ubuntu than Lubuntu. Could anyone help me on how to get Ubuntu 22.04.03 to boot?

  2. #2
    Join Date
    May 2008
    Beans
    4,509
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Ubuntu installation does not boot while Lubuntu does

    The installer created three partitions because you booted/installed in Legacy mode.
    If your PC is UEFI compatible, I would install only in UEFI mode with GPT.

    In your HP UEFI settings, can you disable Legacy boot?

  3. #3
    Join Date
    Sep 2013
    Beans
    56

    Re: Ubuntu installation does not boot while Lubuntu does

    Quote Originally Posted by tea for one View Post
    In your HP UEFI settings, can you disable Legacy boot?
    I believe I can but you reminded me of a problem I had when I first installed 18.04. I looked in some old notes and it seems that back then, the 18.04 live usb would not even boot under HP's implementation of UEFI. So I enabled Legacy Boot and only then did I managed to install 18.04. It was a rather painful process though because I had to go back and forth in the UEFI menus and at one point, the laptop would not even boot at all (black screen only)! It seems HP has a bad implementation of UEFI. I would rather not like to go through that again and potentially get stuck with a brick laptop. Is there a way to get the Ubuntu installer to work with Legacy boot? Otherwise, I guess I have to switch to Lubuntu.

  4. #4
    Join Date
    May 2008
    Beans
    4,509
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Ubuntu installation does not boot while Lubuntu does

    Quote Originally Posted by srope01 View Post
    It seems HP has a bad implementation of UEFI.
    Yes, this is mentioned often in these forums.
    Quote Originally Posted by srope01 View Post
    I would rather not like to go through that again and potentially get stuck with a brick laptop. Is there a way to get the Ubuntu installer to work with Legacy boot?
    Yes, I think so.

    Boot the installer in Legacy mode
    Check your boot mode via terminal with
    Code:
    [ -d /sys/firmware/efi ] && echo "UEFI" || echo "Legacy"
    Open Gparted and create one partition ext4
    Close Gparted
    Start the installer and install to the previous created partition.
    The installer may ask to create an ESP - ignore it as long as you have booted in Legacy mode.

    i tested this some time ago - more info here (post 4) https://ubuntuforums.org/showthread.php?t=2476625
    Last edited by tea for one; August 18th, 2023 at 03:51 PM.

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Ubuntu installation does not boot while Lubuntu does

    If the drive is gpt partitioned (which I recommend) you will need a 1MB unformatted partition with the bios_grub flag (if using gparted).
    I have used gpt with my 2006 BIOS only laptop and a desktop from from about then also. I started converting drives to gpt in 2010.

    I also suggest having the ESP, so perhaps in future you can convert to UEFI boot. The only real difference is UEFI settings on default boot and version of grub, grub-pc for BIOS or grub-efi-amd64 for UEFI.

    We have seen many posts of HP with UEFI boot issues. Most eventually are able to boot. A few do give up and just boot with BIOS which does work ok.

    GPT Advantages (older 2010 but still valid) see post#2 by srs5694:
    [gpt Advantages](http://ubuntuforums.org/showthread.php?t=1457901) &
    https://wiki.archlinux.org/title/Par...en_GPT_and_MBR
    http://en.wikipedia.org/wiki/Unified...ware_Interface
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Sep 2013
    Beans
    56

    Re: Ubuntu installation does not boot while Lubuntu does

    Quote Originally Posted by tea for one View Post
    Start the installer and install to the previous created partition.
    The installer may ask to create an ESP - ignore it as long as you have booted in Legacy mode.
    Ok, I ran the test in terminal and I am sure I am in Legacy mode. I created a partition for the whole drive. When I tried to install Ubuntu, I got only one choice, "Erase disk and install Ubuntu". It then installed the three partition Ubuntu which then does not boot. I went back to the installer and tried it again, hoping to install in the partition /dev/sda3. I get 3 choices, Erase and reinstall, Install side by side, Erase disk and install.

    How did you manage to install to the previous created partition?

  7. #7
    Join Date
    May 2008
    Beans
    4,509
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Ubuntu installation does not boot while Lubuntu does

    In the window "Installation Type", do you not see "Something else"?

    Anyway, let's tweak the installation and see what happens:

    Boot the 22.04 installer in Legacy mode
    Double check with the terminal command
    Code:
    [ -d /sys/firmware/efi ] && echo "UEFI" || echo "Legacy"
    Open Gparted > Device > Create Partition Table > msdos
    Also create one ext4 partition but using only 50% of the target disk
    Close Gparted
    Start the installation
    Choose Something else at Installation type
    Select your pre-prepared partion
    Format to ext4 and mount point = /
    Boot loader to same disk (not to the partition) e.g. sda not sda1
    Ignore the warning about ESP
    Continue the installation

    Any joy?

  8. #8
    Join Date
    Jun 2014
    Beans
    7,913

    Re: Ubuntu installation does not boot while Lubuntu does

    the 18.04 live usb would not even boot under HP's implementation of UEFI.
    I installed 18.04 on an HP in UEFI mode several years ago without problems. I had an option in the BIOS boot options to select UEFI or Legacy boot. Do you see that. My newer HP laptop does not have an option to boot in Legacy mode and I expect that will be the case in the near future for other manufacturers as well.

    /dev/sda1 grub2core.img 1 MB, /dev sda2 EFI system partition, and /dev/sda3 is ubuntu 22.04.
    An MBR install will put boot code in the MBR of the drive and need only 1 partition. If you are using a GPT drive and install in Legacy mode, you need the BIOS-boot partition for the grub core.img file. If it is an EFI install on GPT, you don't need the BIOS_boot partition only the EFI partition which in your case shows as sda2. It would seem that your Lubuntu install is/was a Legacy isntall rather than EFI and Ubuntu is/was EFI. Disable Legacy/csm boot in the BIOS and test boot. It is usually simpler if you install all OS's in the same mode.

    If you want a Legacy install and have that option in the BIOS, I would expect the recommendations posted by Tea For One to do the job.

  9. #9
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,853
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Ubuntu installation does not boot while Lubuntu does

    I've got an HP of about the same age as yours and indeed, those are difficult to work with in UEFI mode. I just use Xubuntu in legacy mode.

    Your Ubuntu creates an EFI partition, a BIOS_grub partition and a root partition. On legacy systems, the EFI partition isn't needed and isn't used, it's just created automatically. The BIOS_grub partition is needed to install Ubuntu in legacy mode on a GPT partitioned drive. Your Lubuntu live disk instead installs on an MBR partitioned drive, where you only need a root partition. It's considered old-fashioned; the option may have been removed from Ubuntu's installer, but retained on Lubuntu's installer. Lubuntu takes more care to work on older computers.

  10. #10
    Join Date
    Sep 2013
    Beans
    56

    Re: Ubuntu installation does not boot while Lubuntu does

    Quote Originally Posted by tea for one View Post
    In the window "Installation Type", do you not see "Something else"?

    Anyway, let's tweak the installation and see what happens:

    Boot the 22.04 installer in Legacy mode
    Double check with the terminal command
    Code:
    [ -d /sys/firmware/efi ] && echo "UEFI" || echo "Legacy"
    Open Gparted > Device > Create Partition Table > msdos
    Also create one ext4 partition but using only 50% of the target disk
    Close Gparted
    Start the installation
    Choose Something else at Installation type
    Select your pre-prepared partion
    Format to ext4 and mount point = /
    Boot loader to same disk (not to the partition) e.g. sda not sda1
    Ignore the warning about ESP
    Continue the installation

    Any joy?
    When I chose Something else, I can see /dev/sda1 is the whole drive and there are three buttons Quit, Back, and Install Now. But the Install Now button is greyed out.

    Following your tweaked instructions, it worked but there was one additional step. When I get to the point of selecting the prepared partition, I had to click on Change. I get a menu in which the default was "Do not use this partition". I changed it to ext4 and mount point /. The Install Now button is no longer grey. I am installing now. I will post again after rebooting.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •