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.
About this post
- Posted
- Archived
- Edited
- Score
- 61 · 96% up
- Kind
- Text
- ID
- oe3nav
58 comments
https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported
Exactly
Deleted before we saved it.
Did you try to regenerate grub? For me it's
sudo grub-mkconfig -o /boot/grub/grub.cfgAlso don't you have any error messages?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.
Uh- can i ask what is a alpm hook?
solved, Don't know why grub wasn't configured correctly(edited the post)
Yes i did
Tomorrow I'll try to run grub in some debug mode or something so that maybe i see any errors
Never, ever use
pacman -Sy. Always usepacman -Syuinstead.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
Yeah ... -Sy updates the mirrors and installs a packages (if given as an option) -Syu updates all installed packages as well
Do you have "quiet" in your boot arguments? If so remove it and every other boot argument and write last error logs please.
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)
This post lacks information, afaik. Any error messages? Did you recreate the initcpio files?
uh- that was basically all I did.
the initcpio got generated automatically back then, but now that you said that, I did
mkinitcpio -p linuxandmkinitcpio -p linux-zenbut 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?) ?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?
Try adding nomodeset and vga=keep to your boot parameters. In the very least, this might let you see some errors.
was going to do that and found the problem when seeing the grub configuration there, edited the post
Had the exact same issue. Would you mind pinging me when you find a solution?
Sure, i will.
Thx.
Having the same issue. Can you post exactly what you did to fix it?
If you use grub, can you select the kernel you wanna boot with(in grub) and then instead of pressing
enter, presseand check if there's a line that hasinitrd?Thank you. In my case, the problem was using nvidia instead of nvidia-dkms
Just some info. Last time i try anbox on arch, it didn't work on linux-zen kernel. They didn't include ashmem if i remember. I went with linux-xanmod-anbox kernel instead. But i don't know if they included it again in linux-zen kernel
They did. https://github.com/archlinux/svntogit-packages/blob/packages/linux-zen/trunk/config#L8232
Nice. Thanks for the info
What worked for me was
nvidia-dkmsplus adding all related nvidia modules to/etc/mkinitcpio.confwhich wereMODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)hey, problem solved(edited the question)
In my case this was the issue. I installed nvidia-dkms and restarted with zen kernel and boom. Just worked.
You can update with
sudo pacman -Syuand then just install withsudo pacman -SThat 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
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
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
Gotta read those manuals!
Debug flag in grub for error log
I'll do it tomorrow
Was in grub and found the problem, edited the post
Deleted before we saved it.
did u install the dkms nvidia driver lol
Would really help if I knew what “it” was. What did you add this line too?