Skip to content

Can't boot into arch with linux-zen kernel

So, I wanted to use/try anbox, so I tried to install linux-zen kernel using sudo pacman -Sy linux-zen but when I boot using linux-zen ( just simply chose linux-zen with arch in grub) It didn't boot and stuck in a black/blank screen, without access to tty screens

after that I did sudo pacman -Sy linux-zen linux-zen-headers nvidia-dkms (I have a nvidia gpu) but still no luck, the same thing happned, can't boot.

Edit: thanks everyone for your answers, Im away from my laptop for a day, so I'll try the solutions tomorrow (probably firstly running the os without quite label and using other helpfull boot arguments and see if i can achieve anything from that like seeing some errors maybe)


Second edit/Problem solved : So, In grub menu I tried to edit the kernel parameters and remove quiet from it and at the exact moment I saw that there is no initrd defined in linux-zen entry, so I checked my hard drive for linux-zen initramfs and it was in my /boot as it should, really don't know why grub didn't configure itself correctly, anyways, I added a new line at the end of it initrd /boot/initramfs-linux-zen.img and everything started to work greatly with linux-zen kernel.

again, Thanks everyone for your help, maybe it was kind of a dumb problem that I should've solve it myself, but apart from that,I learnt a lot about arch in this thread

Edited 7 Jul 2021. We only hold this version.

61 points50 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
61 · 96% up
Kind
Text
ID
oe3nav

Author

13
posts
46
comments
1
media
View profile

58 comments

Did you try to regenerate grub? For me it's sudo grub-mkconfig -o /boot/grub/grub.cfg Also don't you have any error messages?

25 points

This one used to trip me up.

Install the grub-hook package from the AUR to automatically regenerate grub config as a alpm hook if you're gonna be swapping kernels regularly.

9 points

solved, Don't know why grub wasn't configured correctly(edited the post)

3 points

Yes i did

Tomorrow I'll try to run grub in some debug mode or something so that maybe i see any errors

2 points

Never, ever use pacman -Sy. Always use pacman -Syu instead.

22 points

I always thought like im doing the rightest thing using -Sy, thanks for mentioning, maybe the whole problem is that me using -Sy the whole past month using arch

2 points

Yeah ... -Sy updates the mirrors and installs a packages (if given as an option) -Syu updates all installed packages as well

10 points

Do you have "quiet" in your boot arguments? If so remove it and every other boot argument and write last error logs please.

6 points

i was going to remove quiet and I saw the problem there :), still don't know why grub wasn't configured correctly

(edited the post)

1 points

This post lacks information, afaik. Any error messages? Did you recreate the initcpio files?

3 points

uh- that was basically all I did.

the initcpio got generated automatically back then, but now that you said that, I did mkinitcpio -p linux and mkinitcpio -p linux-zen but still no luck. about errors, as I said, after i choose linux-zen the system just shows a black screen, should look for logs/errors in any way(how can I specificly see the logs for the boot I did with the linux-zen one, not the one that i booted to right now?) ?

2 points

Do you mean you see no kernel messages at all? Inspect /boot. Are there all files the system needs to boot?

As I use dracut and systemd-boot, I can't help very much. But if the kernel images and init files are in /boot, the system should be able to boot. If those exist, you might want to check grub. Can you at least edit the grub menu entry, is it complete and correct?

2 points

Try adding nomodeset and vga=keep to your boot parameters. In the very least, this might let you see some errors.

3 points

was going to do that and found the problem when seeing the grub configuration there, edited the post

1 points

Having the same issue. Can you post exactly what you did to fix it?

2 points

If you use grub, can you select the kernel you wanna boot with(in grub) and then instead of pressing enter, press e and check if there's a line that has initrd?

2 points

What worked for me was nvidia-dkms plus adding all related nvidia modules to /etc/mkinitcpio.conf which were

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

2 points

In my case this was the issue. I installed nvidia-dkms and restarted with zen kernel and boom. Just worked.

1 points

You can update with sudo pacman -Syu and then just install with sudo pacman -S

That way, everything's more or less on the same version. If you just pacman -Sy different programs, you'll get a mess of different versions which aren't compatible

2 points

Can you confirm your boot loader is configured correctly? And that mkinitcpio ran correctly?

I had this issue the other night; I wanted to change from the default 5.12.14-arch to 5.12.14 zen but I could not boot. Boot loader said it was added and I saw it’s entry but it would fail to boot and leave me at a rootfs shell. Reinstalling GRUB to my /boot partition fixed the problem.

https://wiki.archlinux.org/title/GRUB#Configuration

I only had to read sections 2 to 2.1 and 3 to 3.1.2.1

I hope I helped you a little.

Second, if you took the time to read the the manuals, Arch states if you need to update/upgrade your system, please do not do partial upgrades by omitting the -u in “pacman -Syu”

This could have also been a problem as to why your system became unresponsive after kernel changes. Partial upgrades are NOT supported by Arch.

https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported

1 points

I cant say that im sure, will check it tomorrow.

And, god, im using arch like 1 month, and all this time thinking the right thing is using -Sy before every package, that explains a lot for me, like a couple of weeks ago when I installed libre office it couldn't open because of a dependency newer version in mh system missing, and when i installed the dependency my OS totally died, the next time I just waited and LibreOffice fixed by it self

I could say that the problem is that now too, of course, I'll try other possibilities Must check the wiki much more. But really Happy to know that now before I have new problems because of it

1 points
unknown author

Deleted before we saved it.

1 points

Would really help if I knew what “it” was. What did you add this line too?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.