You are not logged in.
I ran a update through pacman last night and when I restarted my computer I got this error on boot
[ 0.03568] Ignoring BGRT: invalid status 0 (expected 1)
Warning: /lib/modules/4.1.20-1-lts/modules.devnamev not founde - ignoring
ERROR: device 'UUID=snip' not found. Skipping fsck
ERROR: Unable to find root device 'UUID=snip'
You are being dropped into recovery shell
Type 'exit' to try and continue booting
sh: can't access tty; job controll turned offFrom here I couldn't type, but I booted into my installation USB arch-chrooted back in and ran the following code as suggested by various threads
pacman -Syy
pacman -Syu
pacman -S udev
pacman -S mkinitcpio
mkinitcpio -p linux
rebootto no effect.
I am runing arch on a laptop with nvidia video and an amd processor. It is dual booted with the factory install of windows with a refind boot loader.
Are any of these things causing the standard mkinitcpio fix to fail?
Last edited by wp23 (2016-03-21 17:12:38)
Offline
"UUID=snip", what kind of root device is that?
Arch is home!
https://github.com/Docbroke
Offline
The UUID is for my hard drive which is my only one. When I run blkid I get a specific partition UUID for my root directory which is different but the whole drive definitely has the same UUID as quoted in the boot error.
Offline
In the recovery shell, what directories exist in /lib/modules?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I can't type anything in the recovery shell at the moment is there I directory I should go to from the installation USB?
Offline
what have you specified in your kernel parameter for root device "root=UUID=snip"?? As far as I know you should have UUID of the root partition there, for which snip sounds very unusual UUID, can you try to boot after changing to "root=/dev/sda2" or whichever is your root partition
Arch is home!
https://github.com/Docbroke
Offline
I think he removed the UUID for some reason (security posting to a public forum??) In any case, to the OP - Boot to a live environment, mount your partitions, and use arch-chroot to enter the install.
1) Check /etc/fstab for accuracy
2) Regenerate your kernel images (mkinitcpio -p linux)
3) Regenerate your boot loader config file
Offline
This has all the hallmarks of an out-of-date initrd. Do you have a dedicated boot/EFI system partition? Is it full? I think the kernel has updated, but the initrd couldn't be generated for some reason, so you're booting a newer kernel with an old initrd with incompatible modules.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I think he removed the UUID for some reason (security posting to a public forum??) In any case, to the OP - Boot to a live environment, mount your partitions, and use arch-chroot to enter the install.
1) Check /etc/fstab for accuracy
2) Regenerate your kernel images (mkinitcpio -p linux)
3) Regenerate your boot loader config file
1) The fstab seems to be in order and has comfirmed that the UUID in the boot error was specifically for my root partition after all.
2)I'd already regenerated the kernel and it didn't word I tried again but still there was no change
3)I don't know how to regenerate the bootloader cfg but I have already uninstalled and reinstalled refind (sacrificing a beautiful theme in the process) with no change to the error.
fyi I snipped the UUID because I'm typing this on my phone and I didn't think it would be relevant because it looks like any other UUID.
Offline
This has all the hallmarks of an out-of-date initrd. Do you have a dedicated boot/EFI system partition? Is it full? I think the kernel has updated, but the initrd couldn't be generated for some reason, so you're booting a newer kernel with an old initrd with incompatible modules.
I do have a dedicated boot partition how do I update the initrd?
Offline
I do have a dedicated boot partition how do I update the initrd?
mkinitcpio -p linux
does that command gave any errors, as you already has done that
Arch is home!
https://github.com/Docbroke
Offline
Please clarify the situation. You have a boot partition, but do you mean a EFI System Partition (ESP)? You say you are using rEFInd, which means you must have an ESP, but do you also have a boot partition? You don't need one, but if you have one it could be confusing the situation.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
wp23 wrote:I do have a dedicated boot partition how do I update the initrd?
mkinitcpio -p linux
does that command gave any errors, as you already has done that
I get no errors for the default image but I get two warnings for the fallback they say that I am possibly missing firmware for modules aic94xx and wd719x
Offline
Please clarify the situation. You have a boot partition, but do you mean a EFI System Partition (ESP)? You say you are using rEFInd, which means you must have an ESP, but do you also have a boot partition? You don't need one, but if you have one it could be confusing the situation.
My setup is convoluted, both because of my ineptitude and the OEM windows install which I kept for windows games and the like I have:
sda1
sda2
sda3: All under a GB windows things I cannot get any info from.
sda4: Main windows install
sda5: arch /boot
sda6: arch /
sda7: swap
sda8 arch /home
The boot partition is vfat, the / and /home are ext4 and swap is swap.
I hope thats not too shamefully set up.
Offline
Okay, from a livecd could you check the files on sda5, and anything in sda6's /boot directory.
e.g.
mount /dev/sda5 /mnt
file /mnt/vmlinuz-linux-lts
lsinitcpio -a /mnt/initramfs-linux-lts.img | grep KernelIf your rEFInd is configured to look for kernel images at a different path, adjust as necessary.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I have four files in the sda5 apart from refind, initramfs-linux.img initramfs-linux-fallback.img initramfs-lts.img and initramfs-lts-fallback.
Output for
lsinitcpio -a (image) | grep Kernel prints 4.4.5-1 for the linux and 4.1.20-1-lts for the lts
Is the difference in version my problem?
Offline
I have four files in the sda5 apart from refind, initramfs-linux.img initramfs-linux-fallback.img initramfs-lts.img and initramfs-lts-fallback.
So you don't have any kernels in there (vmlinuz-linux or vmlinuz-linux-lts)? Please check the other location I mentioned. REFInd can, I believe, read kernels and initrds from other partitions, which may be confusing matters further.
I have two theories now:
1) The initrd that refind is using has become outdated for some reason.
2) The initrd that refind is using is not the correct one for the kernel you are booting (i.e. it is trying to boot the -lts kernel, but using the initrd for the non-lts kernel).
If it's the latter, then you might want to look into manual boot stanzas, rather than leaving it to rEFInd's autodetection: https://wiki.archlinux.org/index.php/RE … figuration
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I have four files in the sda5 apart from refind, initramfs-linux.img initramfs-linux-fallback.img initramfs-lts.img and initramfs-lts-fallback.
So you don't have any kernels in there (vmlinuz-linux or vmlinuz-linux-lts)? Please check the other location I mentioned
Sorry my mistake I ran the command for images only there are those two kernels with no extension. If I run
file vmlinuz-linux It gives me their versions and a lot of other info.
Summary
vmlinuz-linux: kernel x86 boot executable bzimage, version 4.4.5-1-ARCH updated march 10 (a whole week before I updated and failed to boot)
vmlinuz-linux-lts: kernel x86 boot executable bzimage version 4.1.20-1-lts updated march 18 (the day before I updated and failed to boot)
Also I've been reading that wiki page and is there a specific loader or initramfs you think I should reference I will be trying the non lts ones.
Finally there is nothing in the sda6 /boot directory.
Offline
So the initrds match up with the kernels, so we can eliminate my first theory. To check my second theory you could move the non-lts kernel image and initrds out of sda5 temporarily, so that only the lts kernel and initrds remain, then try booting again.
I don't understand your question about the manual boot stanzas. The non-lts kernel (vmlinux-linux) should use the non-lts initrds (e.g. initramfs-linux.img), and the lts kernel should use the lts initrds.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
So the initrds match up with the kernels, so we can eliminate my first theory. To check my second theory you could move the non-lts kernel image and initrds out of sda5 temporarily, so that only the lts kernel and initrds remain, then try booting again.
I don't understand your question about the manual boot stanzas. The non-lts kernel (vmlinux-linux) should use the non-lts initrds (e.g. initramfs-linux.img), and the lts kernel should use the lts initrds.
I've just done that and it suceeded to boot! Although it spends ages running "start jobs" and looking for missing filrs so my boot time is getting close to 2minutes.
Looking closer at my bootloader screen earlier I noticed the lts kernel was using the non-lts loader which might be the problem. I tried using a manual boot stanza to use two of the same type but I'm getting an error message when booting from the stanza
...
Invalid loader file!
Error: Not Found while loading vmlinuz-linuxand this still happens even though I removed the non-lts files from the boot partition.
Should I now remove the lts files and add the other ones?
Offline
I've changed this to solved.
WorMzy explained the issue which was rEFInd using the wrong loader for the kernel. My best guess for a cause is that the image was ruined by the pacman update so rEFInd used the wrong one, when the image was reloaded by mkinitcpio rEFInd didn't start using consistent kernels and loaders again so it had no effect.
Whatever the cause using a manual boot stanza fixes that problem, the slow boot was a result of missing an option for my PCs hardware which I have now added and the Invalid loader file was because I had a typo in the loader line
. Either way thanks for all the help.
Offline