I’m moving a Linux Mint 21.1 build I currently have on a external SSD disk to my NVMe, but for some reason initrd can’t find /sbin/init in the root partition when booting in the NVMe, although it can do it just fine on the SSD (and they’re copies of one another).
The only difference between the initrd in my SSD and in the NVMe is that I added the vmd and nvme modules needed for initrd to recognize my NVMe, which it does correctly (you can see it identifies and even mounts the root partition).
And obviously, I changed the UUIDs of the partitions accordingly in the bootloader and in /etc/fstab, so it is trying to mount the correct partition (nvme0n1p2) on /, that’s the correct partition and it contains /sbin/init.
/sbin/init is a symlink to /lib/systemd/systemd, which is there (/lib is a symlink to /usr/lib, all of them are there, nothing is missing).
I really can’t wrap my head around of what is going wrong, because it does mount the partition correctly.
Here’s a part of the initrd messages in my SSD (working) until the first message from systemd (which means systemd has been executed):
[ 1.524745] usb 3-10: new high-speed USB device number 3 using xhci_hcd
[ 1.653191] usb 3-10: New USB device found, idVendor=04ca, idProduct=3802, bcdDevice 1.00
[ 1.653213] usb 3-10: New USB device strings: Mfr=5, Product=6, SerialNumber= 7
[ 1.653222] usb 3-10: Product: Wireless_Device
[ 1.653228] usb 3-10: Manufacturer: MediaTek Inc.
[ 1.653233] usb 3-10: SerialNumber: 000000000
[ 2.395120] ACPI Warning: _SB.NPCF._DSM: Argument #4 type mismatch Found [Buffer], ACPI requires [Package] (20230628/nsarguments-61)
[ 2.395179] ACPI Warning: _SB.PC00.PEGO.PEGP._DSM: Argument #4 type mismatch Found [Buffer], ACPI requires [Package] (20230628/nsarguments-61)
[ 3.872876] [drm] Initialized 1915 1.6.0 20230929 for 0000:00:02.0 on minor 1
[ 3.873747] ACPI: video: Video Device [GFXO] (multi-head: yes rom: no post: no)
[ 3.873973] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNPOA08:00/L NXVIDEO:00/input/input4
[ 3.876308] fbcon: i915drmfb (fbo) is primary device
[ 3.887838] Console: switching to colour frame buffer device 240x67
[ 3.895820] i915 0000:00:02.0: [drm] fb0: 1915drmfb frame buffer device
[ 4.032235] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
[ 4.032505] nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes
Begin: Loading essential drivers... done.
Begin: Running/scripts/init-premount ... done.
Begin: Mounting root file system... Begin: Running/scripts/local-top done.
Begin: Running/scripts/local-premount done.
Begin: Will now check root file system fsck from util-linux 2.37.2
[/usr/sbin/fsck.ext2 (1) -- /dev/sda1] fsck.ext2 -a -CO /dev/sda1
/dev/sda1: clean, 137601/2621440 files, 5862797/10485760 blocks
done.
[ 4.133784] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[ 4.136218] EXT4-fs (sda1): mounted filesystem 302236d3-0767-4e60-81ac-5b3bdecd12bd ro without journal. Quota
done.
Begin: Running/scripts/local-bottom done.
Begin: Running/scripts/init-bottom done.
[ 4.335850] systemd[1]: Inserted module 'autofs4
Meanwhile, here’s a similar cut from the messages on my NVMe:
[ 1.415813] usb 3-10: new high-speed USB device number 3 using xhci_hcd
[ 1.544904] usb 3-10: New USB device found, idVendor=04ca, idProduct=3802, bcdDevice 1.00
[ 1.544938] usb 3-10: New USB device strings: Mfr=5, Product=6, SerialNumber= 7
[ 1.544950] usb 3-10: Product: Wireless_Device
[ 1.544959] usb 3-10: Manufacturer: MediaTek Inc.
[ 1.544967] usb 3-10: SerialNumber: 000000000
[ 2.431115] ACPI Warning: _SB.NPCF._DSM: Argument #4 type mismatch Found [Buffer], ACPI requires [Package] (20230628/nsarguments-61)
[ 2.431175] ACPI Warning: _SB.PC00.PEGO.PEGP._DSM: Argument #4 type mismatch Found [Buffer], ACPI requires [Package] (20230628/nsarguments-61)
[ 3.899012] [drm] Initialized 1915 1.6.0 20230929 for 0000:00:02.0 on minor 1
[ 3.899898] ACPI: video: Video Device [GFXO] (multi-head: yes rom: no post: no)
[ 3.900115] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/L NXVIDEO:00/input/input4
[ 3.902433] fbcon: i915drmfb (fbo) is primary device
[ 3.914059] Console: switching to colour frame buffer device 240x67
[ 3.922093] i915 0000:00:02.0: [drm] fb0: 1915drmfb frame buffer device
[ 4.063033] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
[ 4.063295] nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes
Begin: Loading essential drivers... done.
Begin: Running/scripts/init-premount ... done.
Begin: Mounting root file system... Begin: Running/scripts/local-top done.
Begin: Running/scripts/local-premount done.
Begin: Will now check root file system fsck from util-linux 2.37.2
[/usr/sbin/fsck.ext2 (1) -- /dev/nvme0n1p2] fsck.ext2 -a -CO/dev/nvme0n1p2
/dev/nvme0n1p2: clean, 136105/3932160 files, 3579664/15728640 blocks
done.
[ 4.172752] EXT4-fs (nvme0n1p2): mounting ext2 file system using the ext4 subsystem
[ 4.173540] EXT4-fs (nvme0n1p2): mounted filesystem c035d356-4e3a-4c75-94c0-a12cf90aecb6 ro without journal.
done.
Begin: Running/scripts/local-bottom done.
Begin: Running/scripts/init-bottom done.
run-init: can't execute '/sbin/init': No such file or directory
[ 4.244749] Kernel panic not syncing: Attempted to kill init! exitcode=0x00000100
[ 4.244767] CPU: 8 PID: 1 Comm: run-init Tainted: P OE 6.8.0-47-generic #47~22.04.1-Ubuntu
[ 4.244786] Hardware name: Acer Nitro ANV15-51/Sportage_RTH, BIOS V1.25 02/05/2025