You are not logged in.

#1 2023-08-30 09:28:10

paulbrause
Member
Registered: 2021-10-06
Posts: 40

[SOLVED] Arch Linux no longer boots after hardware upgrade

Hello!
After quite a few years I have completely upgraded my computer and had thought I could take my Arch installation that has been running fine so far with me.

However, when I boot Arch now, I get the following error message:

:: running hook [udev]
:: Triggering uevents...
Waiting 10 seconds for device /dev/disk/by-partuuid/EE39492F-E59E-4E7C-93C7-C43423F28FD1 ...
Waiting 10 seconds for device /dev/disk/by-partuuid/EE39492F-E59E-4E7C-93C7-C43423F28FD1 ...
ERROR: device 'PARTUUID=EE39492F-E59E-4E7C-93C7-C43423F28FD1" not found. Skipping fsck.

and i get into the emergency shell.

I now have two NVMEs instead of previously normal SSDs and have cloned my partitions to the new disks.

This is what my disk layout looks like:

lsblk -f
nvme0n1
|-nvme0n1p1  ext 4
--nvme0n1p2  swap

nvme1n1
|-nvme1n1p1  ntfs
|-nvme1n1p2  vfat (FAT32)
|-nvme1n1p3  
|-nvme1n1p4  ntfs
--nvme1n1p5  ntfs

/dev/nvme0n1p1 is my root partition, /dev/nvme0n1p2 my swap and /dev/nvme1n1p2 is the boot partition which is mounted into /boot.
So it is a dual boot system with Windows and as bootloader I used refind.

The menu entry in my refind config looks like this:

menueentry "Arch Linux" {
    volume "Arch Linux"
    loader /vmlinuz-linux
    initrd /initramfs-linux.img
    options "rw root=PARTUUID=EE39492F-E59E-4E7C-93C7-C43423F28FD1 add_efi_memmap initrd=/amd-ucode.img"
}

What i did so far:

  • After the hardware upgrade I used a Live-USB to update the system and recreate

    mkinitcpio -P
  • I double checked the PARTUUID and also tried to use the UUID.

  • I tried to add

    MODULES=(nvme)

    and

    MODULES=(vmd)

    to /etc/mkinitcpio.conf.

  • downgraded the kernel to 6.4.9 (after reading this:https://bbs.archlinux.org/viewtopic.php?id=288095

None of the above attempts have been successful, my Arch just won't boot anymore.
Windows is booting as normal and without any problem.

What else can i do?

Last edited by paulbrause (2023-08-30 13:39:48)

Offline

#2 2023-08-30 10:23:58

Soultrigger
Member
From: Brazil
Registered: 2021-11-04
Posts: 111

Re: [SOLVED] Arch Linux no longer boots after hardware upgrade

I am a newbe, but the problem you have might be the need to update the fstab to get the new nvme drivers mounted properly, and it seems the system is looking for those ssds you removed.

Did you change the root device? If so might be worth checking if the PARTUUID you are using is the same.

It might be as simple as to load an installation media from Arch and mount all your devices properly in /mnt and their right folder (such as / in mnt and home /mnt/home and boot /mnt/boot and so on)

And then use "genfstab -U /mnt >> /mnt/etc/fstab"

Before you run the above command it might be a good idea to copy your fstab file as a  backup somewhere...

If I am right, then you can umount -R /mnt and reboot and you system should work.

PS: remember to change the UUID for root in your refind menu

Last edited by Soultrigger (2023-08-30 10:25:16)

Offline

#3 2023-08-30 13:07:15

ScarletFire
Member
Registered: 2023-08-29
Posts: 6

Re: [SOLVED] Arch Linux no longer boots after hardware upgrade

As Soultrigger wrote depending on how you cloned your disk your partition ids might have changed.
Try booting from the installation media, get the UUID (not PARTUUID) from the disk with

blkid -s UUID /dev/nvme0n1p1

and change the rEFInd options entry from

root=PARTUUID=EE39492F-E59E-4E7C-93C7-C43423F28FD1

to

root=UUID=<id gathered from blkid without quotation marks>

Last edited by ScarletFire (2023-08-30 13:15:19)

Offline

#4 2023-08-30 13:39:22

paulbrause
Member
Registered: 2021-10-06
Posts: 40

Re: [SOLVED] Arch Linux no longer boots after hardware upgrade

I was able to solve the problem myself.

The UUIDs were all correct, but during the cloning of the drive the partition label was not taken over.

In refind.conf I commented out the line

volume "Arch Linux"

and Arch started up again.

Thanks anyway to both of you. smile

Offline

Board footer

Powered by FluxBB