Ubuntu does not boot after upgrade to 24.04.01 (BusyBox)

I want to fix booting my system after upgrade to Ubuntu 24.04.1. It uses UEFI Only mode (CSM Support: No).

Ubuntu Version:
Ubuntu version 22.04 LTS

Desktop Environment (if applicable):
GNOME

Problem Description:
I’ve just upgraded to new Ubuntu version 24.04. Upgrade completed successfully. System does not load. After I select Ubuntu in grub menu I get into BusyBox v1.30.1.with ALERT! UUID=xxxx does not exists.

Relevant System Information:
One ssd disk, details in Ubuntu Pastebin
ThinkPad T460

Screenshots or Error Messages:

Gave up waiting for root file system device. Common Problems:
- Boot args  (cat /proc-cmdline)
   - Check rootdelay= (did the sytem wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
- ALERT! UUID=c0ac1b15-d468-4fb2-b3b2-3b9d34a6f2dc does not exist. Drop to a shell!

BussyBox v1.30.1 (Ubuntu 1:1.30.1-7ubuntu3.1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) _

What I’ve Tried:

  • I tried Boot-Repair.
  • Added Ubuntu entry with a command efibootmgr -c -d /dev/sda -p 1 -L Ubuntu -l '\EFI\ubuntu\grubx64.efi' because it was absent in the list.
  • Change boot order with ‘efibootmgr -o 0001,0000,…’
  • Fix persistence by disabling Boot Order Lock in BIOS.
  • Change Boot Mode “Quick” to “Diagnostics”
  • Remove “Windows boot manager” via bios.
  • Try to use another efi file with a command efibootmgr -c -d /dev/sda -p 1 -L Ubuntu -l '\EFI\ubuntu\shimx64.efi' (delete previous and changed order if required)
1 Like

You say you upgraded from 22.04 to 24.04 but you did not tell us how you did that.
Did you use the command line upgrade system (which I have never used) or did you do a new installation from a downloaded .iso archive file; if the latter did you make sure that you used the manual partitioning utility, ie “Something Else” in the installer and pointed it to the old root partition for the new one?

Welcome to Ubuntu Discourse :slight_smile:

One thing that stood out for me from the boot script summary was this:

line 88: Locked-NVram detected. Please do not forget to make your UEFI firmware boot on the Ubuntu 24.04.1 LTS entry (sda1/efi/ubuntu/grubx64.efi file)

On the Ubuntu Forums there were a number of threads where this was an issue but no single solution.

Have you tried disabling Secure Boot?

Did it help?

I did upgrade by pressing Upgrade button in the notification dialog. I did not use the command line upgrade commands and I did not download any iso files. I did not do any partition changes. When upgrade was completed I pressed Reboot now or something like that. One strange thing for me was during upgrade it was a new dialog with a question if I want to upgrade to 24.04.01, I did not touch it and wait until current upgrade process is completed.

In 2021 I’ve installed Ubuntu 22.04 (maybe it was 20.04 and I already did upgrade) by erasing all disk. Only one system was on laptop.

I tried Secure Boot enabled and disabled. It did not help.

When you reach the busybox screen, type
exit and hit the Enter key.
Any messages?

The same message repeats again:

Gave up waiting for root file system device. Common Problems:
- Boot args  (cat /proc-cmdline)
   - Check rootdelay= (did the sytem wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
- ALERT! UUID=c0ac1b15-d468-4fb2-b3b2-3b9d34a6f2dc does not exist. Drop to a shell!

BussyBox v1.30.1 (Ubuntu 1:1.30.1-7ubuntu3.1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) _

After receiving the busybox message, do you use the power button on your PC to power off?

I use ctrl+alt+del to reboot. To turn off my computer I can use only a long press power button or I guess I can use GUI turn off button if I load system from USB drive.

Power off via the power button may damage the file systems because they are still mounted.
Can you boot into a “Try Ubuntu” live session (preferably using a 24.04.1 iso) and run fsck on both your partitions.
sudo fsck /dev/sda1
sudo fsck /dev/sda2

So are you telling us that you normally shutdown the computer using a long press of the power button?
If so I am not surprised that you have problems such as this busybox error.

Always shut down using either the GUI shutdown buttons/dialog in the panel or if really needed with command
sudo shutdown -h now

No, I do not turn off my computer by power button (only in rare case when it does not respond). I BusyBox I does not have another option to turn off laptop as to use power button.

No errors

GParted 1.5.0

configuration --enable-libparted-dmraid --enable-online-resize

libparted 3.6

========================================

Device:/dev/sda
Model:ATA Micron M600 2.5
Serial:1617128D597C
Sector size:512
Total sectors:1000215216
 
Heads:255
Sectors/track:2
Cylinders:1961206
 
Partition table:gpt
 
PartitionTypeStartEndFlagsPartition NameFile SystemLabelMount Point
/dev/sda1Primary20481050623boot, espEFI System Partitionfat32
/dev/sda2Primary10506241000214527ext4

========================================

Device:/dev/sdb
Model:UFD 2.0 Silicon-Power8G
Serial:
Sector size:512
Total sectors:15130624
 
Heads:255
Sectors/track:2
Cylinders:29667
 
Partition table:none
 
PartitionTypeStartEndFlagsPartition NameFile SystemLabelMount Point
/dev/sdbUnpartitioned015130623iso9660Ubuntu 24.04.1 LTS amd64

========================================

Check and repair file system (fat32) on /dev/sda1  00:00:00    ( SUCCESS )
    
calibrate /dev/sda1  00:00:00    ( SUCCESS )
    
path: /dev/sda1 (partition)
start: 2048
end: 1050623
size: 1048576 (512.00 MiB)
check file system on /dev/sda1 for errors and (if possible) fix them  00:00:00    ( SUCCESS )
    
fsck.fat -a -w -v '/dev/sda1'  00:00:00    ( SUCCESS )
    
fsck.fat 4.2 (2021-01-31)
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
4096 bytes per cluster
32 reserved sectors
First FAT starts at byte 16384 (sector 32)
2 FATs, 32 bit entries
524288 bytes per FAT (= 1024 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 1064960 (sector 2080)
130812 data clusters (535805952 bytes)
63 sectors/track, 255 heads
2048 hidden sectors
1048576 sectors total
Reclaiming unconnected clusters.
Checking free cluster summary.
/dev/sda1: 15 files, 4948/130812 clusters
grow file system to fill the partition  00:00:00    ( SUCCESS )
    
using libparted

========================================

Check and repair file system (ext4) on /dev/sda2  00:00:09    ( SUCCESS )
    
calibrate /dev/sda2  00:00:00    ( SUCCESS )
    
path: /dev/sda2 (partition)
start: 1050624
end: 1000214527
size: 999163904 (476.44 GiB)
check file system on /dev/sda2 for errors and (if possible) fix them  00:00:09    ( SUCCESS )
    
e2fsck -f -y -v -C 0 '/dev/sda2'  00:00:09    ( SUCCESS )
    
Pass 1: Checking inodes, blocks, and sizes
Inode 2228739 extent tree (at level 1) could be shorter. Optimize? yes

Inode 5638991 extent tree (at level 1) could be shorter. Optimize? yes

Inode 7471117 extent tree (at level 2) could be narrower. Optimize? yes

Inode 7471431 extent tree (at level 2) could be narrower. Optimize? yes

Pass 1E: Optimizing extent trees
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/sda2: ***** FILE SYSTEM WAS MODIFIED *****

1081142 inodes used (3.46%, out of 31227904)
9007 non-contiguous files (0.8%)
1560 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 1035366/1166/2
65307829 blocks used (52.29%, out of 124895488)
0 bad blocks
14 large files

977734 regular files
55526 directories
9 character device files
0 block device files
12 fifos
36733 links
47836 symbolic links (44563 fast symbolic links)
16 sockets
------------
1117866 files
e2fsck 1.47.0 (5-Feb-2023)
grow file system to fill the partition  00:00:00    ( SUCCESS )
    
resize2fs -p '/dev/sda2'  00:00:00    ( SUCCESS )
    
resize2fs 1.47.0 (5-Feb-2023)
The filesystem is already 124895488 (4k) blocks long. Nothing to do!

Any luck with booting now?

If busybox still appears, you can type poweroff to shutdown the PC

1 Like

No. I’ve tried Boot-Repair again but it did not help.

Not much progress yet, but, let’s try another approach.
Your PC is a Lenovo and the boot-repair report states
Warning: NVram is locked (Ubuntu not found in efibootmgr)

Can you access the UEFI settings and disable the following (if they are present)

TPM (Trusted Platform Module)
PTT (Platform Trust Technology)
FTPM (Firmware Trusted Platform Module)
TPT (Trust Platform Technology)
PSP (Platform Security Processor)
Device Guard (some Lenovo devices)
OS Optimised Defaults (some Lenovo devices)
Lock UEFI BIOS Settings
Boot Order Lock

Also, double check that Secure Boot is still disabled

2 Likes

This line makes me think your /etc/fstab is wrong.

- ALERT! UUID=c0ac1b15-d468-4fb2-b3b2-3b9d34a6f2dc does not exist. Drop to a shell!

Are you able to boot a live ISO and then run the following?

ls -l /dev/disk/by-uuid

Is there a line such as this?

lrwxrwxrwx 1 root root 15 Jan 2 12:28 96c77f27-d90f-4d14-a5d5-59ac57b3f6dc -> ../../sda2

If so, examine the long UUID. Does it or does it not match the one in the alert?

Maybe mount the partition to examine the /etc/fstab file:

mkdir /mnt/tmp2
mount /dev/sda2 /mnt/tmp2
cat /mnt/tmp2/etc/fstab

Is there a line such as this in it:?

UUID=96c77f27-d90f-4d14-a5d5-59ac57b3f6dc / ext4 defaults 0 0

Does the UUID here match the one in the alert or the one from the ls command?

2 Likes

Line 264: UUID=c0ac1b15-d468-4fb2-b3b2-3b9d34a6f2dc /
This is from the fstab in the boot-repair report (post no. 1)

2 Likes

Ah apologies, I searched this page, but not the paste. My bad.

When you end up in an initramfs shell like this, the fstab is not available yet anyway, the UUID comes from the kernel command line…

With the ls -l /dev/disk/by-uuid popey was on the right track, but you should run it from the initramfs shell to see what disks the kernel found or if it didn’t find one at all …

1 Like