Upgraded from Linux Mint 21.3 to Linux Mint 22 and now boots to black screen

Specifications

→ Add the output of inxi -Fxmz command here!

System:
Kernel: 6.8.0-39-generic arch: x86_64 bits: 64 compiler: gcc v: 13.2.0
Desktop: Cinnamon v: 6.2.9 Distro: Linux Mint 21.3 Virginia
base: Ubuntu 24.04 noble
Machine:
Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A15 FA506IV_TUF506IV
v: 1.0 serial:
Mobo: ASUSTeK model: FA506IV v: 1.0 serial:
UEFI: American Megatrends v: FA506IV.316 date: 03/12/2021
Battery:
ID-1: BAT1 charge: 47.3 Wh (79.5%) condition: 59.5/90.2 Wh (66.0%)
volts: 16.0 min: 15.9 model: ASUS A32-K55 status: not charging
Memory:
System RAM: total: 64 GiB available: 62.28 GiB used: 4.34 GiB (7.0%)
Array-1: capacity: 64 GiB note: est. slots: 2 modules: 2 EC: None
max-module-size: 32 GiB note: est.
Device-1: Channel-A DIMM 0 type: DDR4 size: 32 GiB speed: 3200 MT/s
Device-2: Channel-B DIMM 0 type: DDR4 size: 32 GiB speed: 3200 MT/s
CPU:
Info: 8-core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64
type: MT MCP arch: Zen 2 rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 8 MiB
Speed (MHz): avg: 1504 high: 3085 min/max: 1400/2900 boost: enabled cores:
1: 1397 2: 1400 3: 1397 4: 1400 5: 1400 6: 1395 7: 1400 8: 1400 9: 3085
10: 1400 11: 1400 12: 1400 13: 1400 14: 1400 15: 1400 16: 1400
bogomips: 92628
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: ASUSTeK
driver: N/A arch: Turing bus-ID: 01:00.0
Device-2: AMD Renoir [Radeon RX Vega 6 ] vendor: ASUSTeK driver: amdgpu
v: kernel arch: GCN-5 bus-ID: 06:00.0 temp: 61.0 C
Device-3: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
bus-ID: 3-4:3
Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X:
loaded: amdgpu unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
resolution: 1920x1080~144Hz
API: EGL v: 1.5 drivers: radeonsi,swrast platforms:
active: x11,surfaceless,device inactive: gbm,wayland
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.9-0ubuntu0.1
glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi
renoir LLVM 17.0.6 DRM 3.57 6.8.0-39-generic)
Audio:
Device-1: NVIDIA TU106 High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus-ID: 01:00.1
Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus-ID: 06:00.1
Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
bus-ID: 06:00.5
Device-4: AMD Family 17h/19h HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus-ID: 06:00.6
API: ALSA v: k6.8.0-39-generic status: kernel-api
Server-1: PipeWire v: 1.0.5 status: active
Server-2: PulseAudio v: 16.1 status: off (using pipewire-pulse)
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK RTL8111/8168/8411 driver: r8169 v: kernel port: e000
bus-ID: 02:00.0
IF: enp2s0 state: down mac:
Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 03:00.0
IF: wlp3s0 state: up mac:
Bluetooth:
Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB bus-ID: 5-1:2
Report: hciconfig ID: hci0 rfk-id: 1 state: up address: bt-v: 5.2
lmp-v: 11
Drives:
Local Storage: total: 1.86 TiB used: 195.51 GiB (10.2%)
ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNU010TZ size: 953.87 GiB
temp: 33.9 C
ID-2: /dev/nvme1n1 vendor: Western Digital model: PC SN530
SDBPNPZ-1T00-1002 size: 953.87 GiB temp: 44.9 C
Partition:
ID-1: / size: 468.38 GiB used: 92.8 GiB (19.8%) fs: ext4 dev: /dev/nvme0n1p1
ID-2: /boot/efi size: 256 MiB used: 31.4 MiB (12.3%) fs: vfat
dev: /dev/nvme1n1p1
ID-3: /home size: 468.38 GiB used: 102.68 GiB (21.9%) fs: ext4
dev: /dev/nvme0n1p2
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) file: /swapfile
Sensors:
System Temperatures: cpu: 70.5 C mobo: N/A gpu: amdgpu temp: 62.0 C
Fan Speeds (rpm): cpu: 3400
Info:
Processes: 385 Uptime: 47m Init: systemd target: graphical (5)
Packages: 3071 Compilers: gcc: 13.2.0 Shell: Bash v: 5.2.21 inxi: 3.3.34
→ Add the output of for f in $(find . -maxdepth 1 -type f -name 'dmesg*.log'); do echo "${f}"; printf '%s\n\n' "$(<"${f}")"; done command here!

for f in $(find . -maxdepth 1 -type f -name 'dmesg*.log'); do echo "${f}"; printf '%s\n\n' "$(<"${f}")"; done
bash: ./dmesg_20240811102955.log: Permission denied

sudo for f in $(find . -maxdepth 1 -type f -name 'dmesg*.log'); do echo "${f}"; printf '%s\n\n' "$(<"${f}")"; done
sudo: ./dmesg_20240811102955.log: command not found

Additional Information (if applicable)

  • Software title | (E.g. Nextcloud)
  • Software version | (E.g. softwarename -V)
  • Was the software title installed freshly or updated/migrated?

Steps to reproduce

  1. Attempted to upgrade to Mint 22 with the ‘mintupgrade’ command

  2. Now when selecting Linux Mint 22 from GRUB menu, booting stops with a black screen.

  3. In GRUB advanced options, selecting recovery boot, a Kernel panic is reported after:

/dev/root: Can’t open blockdev

VFS: Cannot open root device “/dev/nvmc0n1p1” or unknown-block(0,0): error 6

Please append a correct “root=” boot option; here are the available partitions:
ext3

ext2

ext4

squashfs

vfat

fuseblk

Kernel panic - not syncing; VFS: Unable to mount root fs on unknnown-block(0,0)

Expected behaviour

  • It should be booting to the new Linux Mint 22 and kernel 6.8.0-40-generic

Actual behaviour

  • Booting stops at a black screen. But I can use the GRUB advance options and boot the the previous Linux Mint 21.3 and kernel 6.8.0-39-generic

Extra details

  • I have 2 drives, 1 drive has Linux, 1 drive has Windows

gtrevels:~$ hostnamectl
Static hostname: ASUS-TUF-A15-FA506IV
Icon name: computer-laptop
Chassis: laptop :computer:
Machine ID: *********************
Boot ID: **********************
Operating System: Linux Mint 21.3
Kernel: Linux 6.8.0-39-generic
Architecture: x86-64
Hardware Vendor: ASUSTeK COMPUTER INC.
Hardware Model: ASUS TUF Gaming A15 FA506IV_TUF506IV
Firmware Version: FA506IV.316
Firmware Date: Fri 2021-03-12
Firmware Age: 3y 5month
gtrevels:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 21.3
Release: 21.3
Codename: virginia
gtrevels:~$ cat /etc/linuxmint/info
RELEASE=22
CODENAME=wilma
EDITION=“Cinnamon”
DESCRIPTION=“Linux Mint 22 Wilma”
DESKTOP=Gnome
TOOLKIT=GTK
GRUB_TITLE=Linux Mint 22 Cinnamon
gtrevels:~$ cat /etc/os-release
NAME=“Linux Mint”
VERSION=“21.3 (Virginia)”
ID=linuxmint
ID_LIKE=“ubuntu debian”
PRETTY_NAME=“Linux Mint 21.3”
VERSION_ID=“21.3”
<–snip out urls–>
VERSION_CODENAME=virginia
UBUNTU_CODENAME=jammy

1 Like

As the upgrade failed

Try creating a new boot usb key and test to see if it will boot direct to that, if that functions correctly then re install from that key

I had a similar expérience earlier this year with lmde (linux mint debian edition) upgrade, ran that for several hours only for it to fail towards the end so clean new install was the only answer.

1 Like

Thanks for your reply. Fortunately I can still boot to the previous version and modify files. I am interested in learning to fix the GRUB, fstab, or whatever needs to be modified to allow a proper boot up.

1 Like

When comparing the GRUB entries between ‘Linux Mint 22 Cinnamon, with Linux 6.8.0-39-generic’ (this one boots fine) and ‘Linux Mint 22 Cinnamon, with Linux 6.8.0-40-generic’ (fails), ‘Linux Mint 22 Cinnamon, with Linux 6.8.0-39-generic’ has this entry
search --no-floppy --fs-uuid --set=root b0b682fa-d6ee-4da3-8c60-ae2a9ab88695
echo ‘Loading Linux 6.8.0-39-generic …’
linux /boot/vmlinuz-6.8.0-39-generic root=UUID=b0b682fa-d6ee-4da3-8c60-ae2a9ab88695 ro quiet iommu=off
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-6.8.0-39-generic
But the entry for ‘Linux Mint 22 Cinnamon, with Linux 6.8.0-40-generic’ has this entry
search --no-floppy --fs-uuid --set=root b0b682fa-d6ee-4da3-8c60-ae2a9ab88695
echo ‘Loading Linux 6.8.0-40-generic …’
linux /boot/vmlinuz-6.8.0-40-generic root=/dev/nvme1n1p1 ro quiet iommu=off

Is this a problem I can solve by changing root=/dev/nvme1n1p1 to root=UUID=b0b682fa-d6ee-4da3-8c60-ae2a9ab88695 ?
If so, how would I change it?

Also is there something in the fstab that needs to be changed?
gtrevels:~$ cat /etc/fstab

/etc/fstab: static file system information.

Use ‘blkid’ to print the universally unique identifier for a

device; this may be used with UUID= as a more robust way to name devices

that works even if disks are added and removed. See fstab(5).

/ was on /dev/nvme0n1p1 during installation

UUID=b0b682fa-d6ee-4da3-8c60-ae2a9ab88695 / ext4 errors=remount-ro 0 1

/boot/efi was on /dev/nvme1n1p1 during installation

UUID=3493-AF4F /boot/efi vfat umask=0077 0 1

/home was on /dev/nvme0n1p2 during installation

UUID=a7f2d42b-2cc2-43ea-9891-260919ce4377 /home ext4 defaults 0 2
/swapfile none swap sw 0 0

2 Likes

Your copy of fstab has been altered by discourse… I am not sure if some of those lines are comments.
Could you do it again like this

Put three backquote characters on a line (```)
Go to the next line and copy in your cat fstab
Put another three backquote characters on a separate line at the end

That will ensure it copies the material literally
The three backquotes are a markdown instruction which protects the copied material from being interpreted as instructions.

3 Likes

Ok. Sorry. Trying again.

$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p1 during installation
UUID=b0b682fa-d6ee-4da3-8c60-ae2a9ab88695 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme1n1p1 during installation
UUID=3493-AF4F  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/nvme0n1p2 during installation
UUID=a7f2d42b-2cc2-43ea-9891-260919ce4377 /home           ext4    defaults        0       2
/swapfile                                 none            swap    sw              0       0
2 Likes

Right.
It seems to have the correct UUID bo…95 for /

Never seen that /swapfile none line before. It is probably OK
I think fstab is not the problem

That seems likely
You can change it temporarily as follows
boot to the grub menu
navigate to the correct line
hit ‘e’
you will get an editor
go down to the line that starts with linux and edit the root= bit . Carefully type in the uuid.
hit F10 and it will boot

Now , if that works, you want to change it permanently
Edit the file /etc/default/grub
Find the line
GRUB_CMDLINE_LINUX_DEFAULT=
and add UUID=bo…95 there

When you finish editing do
update-grub
that will remake the /boot/grub/grub.cfg file

All the above need sudo

Reboot and it should be right.

There is a tutorial here

https://linuxconfig.org/how-to-set-kernel-boot-parameters-on-linux

I am assuming you only have one Linux. It is more complicated with multiboot.

2 Likes

Modifying GRUB and booting got the same error opening root device and kernel panic. Attaching snapshot of boot error.

1 Like

It says
VFS: Cannot open root device UUID=bo…
It has booted the initramfs and is trying to find the root filesystem so it can boot linux

Assuming you typed the UUiD without errror that means

  • you may have the wrong partition… check that really is the root filesystem
  • the partition may be unreadable … is it ext4? Can you boot some linux from a USB drive and mount that partition and look at it.?
  • there may be a problem accessing the disk during boot. I think I saw somewhere it was an nvme disk… they are rather new… there may be a problem with the driver not being there at boot time when needed … not sure how to deal with that… maybe update the initramfs, but that seems a bit drastic for a new install?

PS
I just noticed it is a Mintupgrade… not a fresh install.
Well maybe the upgrade procedure is faulty. You might indeed need to update the initramfs… you need to boot into it to do that… can you boot it in single user (recovery) mode?

If it is all too messy, save your home directory and do a fresh install

2 Likes

Attached GRUB Adv Boot options picture to show the boot choices. I have performed a few upgrades on this laptop without any issues. This Mint 22 upgrade with the new 6.8.0-40 kernel is the only one that has given me problems. I cannot boot either 6.8.0-40 kernel option. The previous post includes a picture of where the 6.8.0-40 Recovery boot fails. But I can boot the 6.8.0-39 kernel option.
Thanks for the help.
It may be time for a fresh install.

2 Likes

You dont need a fresh install.
Just use the 6.8.0-39 kernel. You can set grub to push 6.8.0-39 to the top of the boot menu.
Does Mint have a facility to delete kernels? If so get rid of it… it seems to have a kernel regression error.
A new kernel should soon appear with updates.

3 Likes

Does it work if you go into recovery mode ?
Then reboot ?

But using an older system will not be a problem as Neville suggests.

I used Update Manager to remove the 6.8.0-40 kernel and rebooted. Now it boots without hanging.
I took another look at Update Manager and 6.8.0-40 is still listed but 6.8.0-39 shows as Active.
This is good for now. I’ll research the upgrade more thoroughly and wait a few weeks before trying to perform another mintupgrade
I also remove the older 6.5xxx kernels with Update Manager.
Thanks, I really appreciate the help from the community.

3 Likes

Here is what mine looks like.

"# swap was on /dev/nvme0n1p5 during installation
UUID=393f8b5a-3d92-4079-b7d7-085f025c2722 none swap sw 0 0

3 Likes

Yours looks normal.
You actually have a swap partition.
I think @GTR 's means he has a device called /swapfile in /dev, but I am not sure if that is mounted to a file, or is a partition?

1 Like

Be a bit conservative getting rid of old kernels.
As you have just seen, you may need them

4 Likes