Not a solution now, but still: learn lvm2(would be good just for the knowledge alone) and next time install arch on lvm logical volumes. It will give you more flexibility compared to partitions.
He knows what he is talking about. Pacman does not clean its cache, to do that automatically you may install paccache-hook, it will clean it every time pacman executed, configurable in case you want to keep latest versions there and remove older ones.
It isn't about arch here is I see it. You want to learn but want it to be forced? Maybe instead choose what you want to learn and just do it without blaming distribution?
Go check infrastructure stuff like docker or kubernetes, or virtualization like xen and kvm, play with virtual machines, PCI passthrough. Learn and practice machine learning right on your archlinux. Possibilities are limitless
Ok, not EXACTLY at the time of kernel panic but seconds/minutes prior to that. Do I really need to be that explicit or is it enough in to just give the direction?
Reasoning:
The biggest risk of panic during update is corrupted package installation, or not fully installed package. As the easiest measure to eliminate that entirely you either force reinstall every single package(which is overkill since you have pacman log) or force reinstall only those that may have been affected.
Log would contain a list of packages downloaded and list of packages installed(if any) just before panic. That alone may provide the info on what were, supposed to be updated and what has been by the time it crashed.
Check /var/log/pacman.log for what it was doing at the time of crash, that will give you idea what package to probably force reinstall if pacman was interrupted during installation. And then just update again.
There may be more difficult case if it crashed during initrd image generation, but likelyhood if that is low.
It's more about differences in defining a word 'supports'. Those who define it like me while reading your original comment may think that refind can read and boot kernel from LVM or even encrypted partitions, which is not true, this is exactly how i got into that conversation.
It's okay to not to agree, it's okay to be different, it's okay to have setups the way you want them to be.
I asked because I legitimately want to have boot on lvm volume with rEFInd and was interested how you did that since i know it's not truely possible. As for whether refind supports lvm or not - it's simple: Can it read all metadata from disks required to know what VGs are there? can it realize what LVs are there? Can it properly read from PEs in right order to read filesystem blocks? And can it get that way to the level of actual files? Answer to all that is no, meaning LVM is not supported by rEFInd. And the way it is implemented is a trick to work that around. Despite that i like it more than alternatives for being self sustained with dynamic menu items and tools support, without dependencies from the rest of rootfs.
At the same time GRUB has a module that allows direct support for LVM without moving kernel around in order for it to be available during boot.
As for why i want boot be in LVM without such tricks: well once i had to migrate system between different disks several time due to changes in allocation across other PC at home and it was as easy as adding PV to VG, move LVs to new PV, creating and copying EFS content. The only downside - /boot mount point had to be changed to point to new EFS. With proper LVM support, i would not need to change mount points. Also there would be no need to keep EFS mounted anyways so it would not be in fstab in my case, only mount it manually when i needed to update refind. In this case system would have been as abstract from physical disks as possible. It's just something i like in LVM in general.
Let me explain why i'm skeptical: this is official refind instructions for installation, including LVM: https://www.rodsbooks.com/refind/linux.html as you can see it directly says LVM is unsupported and in manual steps it provides a solution to use EFI-as-boot, which works around refind's inability to read from LVM by simply having kernel and initrd at the location refind can easily read them. This way kernel can take over and continue execution with all the benefits of kernel running including support for encryption, lvm and all other good stuff.
What you had provided is kernel parameters which does not tell anything about refind's support for encryption and LVM, rather kernel's own support for that and refind's ability to pass those parameters to kernel.
So there are several ways you could have achieved that: 1. Have boot on EFI, 2. Have some sort of pacman/mkinitcpio hook that copies freshly installed kernel and initrd to efi partition for refind to be able to read those, 3. Have copied kernel to efi long time ago and set up chain loading to your current kernel(not sure if it's a thing, but it may easily be).
As you can see this is why i asked where your kernel is.
Last i checked rEFInd does not support encryption and LVM. I still use it and prefer it over grub, efistub and systemd-boot for its fully OS independent operation/configuration, but have to keep efi as boot to work around lack of LVM support.
Haven't used retroarch, but for files installed just use pacman -Ql [package] to [Q]uery a [l]ist of files owned by a [package], so you will be able to copy relevant files or change config accordingly.
Likely your previous kernel was removed and new one was not yet installed when you had power loss. So just boot archiso, mount everithing, chroot and reinstall kernel/update by running pacman -Suy linux. You'll be good
You don't have kernel intalled, look at that /boot listing. Or you are mounting wrong partition as /boot. Or you have installed kernel and mounted /boot afterwards. Assuming you are mounting EFI as /boot
It's even better with virtualization. Much easier to create logical volumes as vm drives with all the benefits including raid, migration across physical volumes, snapshots etc. instead of using file based images. Also removes additional filesystem layer to gain a bit of performance.
Look at LVM. Want partitions on separate drives - sure. Want to wipe one drive/reuse it for other purpuses - just migrate partitions while they are mounted and in use from that drive. Want to mirror one partition only to another drive - sure(or even raid6 for example only for selected volumes or all of them - you decide). Want to have [enter any number] separate OS installations on one volume group sharing home without actually repartitioning anything - sure. Don't need partition anymore - delete it and space is available right away. Want hybrid ssd/hdd volume group so you can create/move partitions to faster/slower drive as needed on the fly - you got it. Want to span one huge partition across several drives - you guess what.
when i wrote partition it essentially meant to be logical volume, but for simplicity i choose term partition.
I had mandriva break itself during usual update, had ubuntu not booting after update, had opensuse break itself during dist-update. But after around 6 or 7 years with arch had no issues unless i break it myself.
Usual way: backup all data. Boot from live usb. Use gparted or similar.
Safe way 1: If your home usage is less than 50 percent you can shrink to half a size, create new partition after it. Move all your home to a new partition. Update fstab to use new partition as a home. Remove old home. Resize root. Profit. Now you have to resize new home, but it's going to be tricky if it does not fit in between root and new home, read below.
Safe way 2 AKA tower of hanoi: If home usage is more than 50 percent. Same as above, but create partition as big as you had free space. Move there some directory that fits best. Update fstab accordingly. Repeat until you have your original home around 32GB and all it's data moved to another one. Remove old one and resize root. Now you have cool home made of dozen of partitions mounted here and there. Now it's easier to backup whole home, remove all that small partitions and restore properly than trying to fix it, while it is still possible. Don't forget to update fstab!
I'd suggest using case-heatsink for rpi4 for silent operation. Even overclocked it stays in mid 70's while compiling kernel on all four cores. Also looks and feels good - like a solid rugged block of aluminum.
Not a solution now, but still: learn lvm2(would be good just for the knowledge alone) and next time install arch on lvm logical volumes. It will give you more flexibility compared to partitions.
He knows what he is talking about. Pacman does not clean its cache, to do that automatically you may install paccache-hook, it will clean it every time pacman executed, configurable in case you want to keep latest versions there and remove older ones.
It isn't about arch here is I see it. You want to learn but want it to be forced? Maybe instead choose what you want to learn and just do it without blaming distribution?
Go check infrastructure stuff like docker or kubernetes, or virtualization like xen and kvm, play with virtual machines, PCI passthrough. Learn and practice machine learning right on your archlinux. Possibilities are limitless
Ok, not EXACTLY at the time of kernel panic but seconds/minutes prior to that. Do I really need to be that explicit or is it enough in to just give the direction?
Reasoning: The biggest risk of panic during update is corrupted package installation, or not fully installed package. As the easiest measure to eliminate that entirely you either force reinstall every single package(which is overkill since you have pacman log) or force reinstall only those that may have been affected.
Log would contain a list of packages downloaded and list of packages installed(if any) just before panic. That alone may provide the info on what were, supposed to be updated and what has been by the time it crashed.
Check /var/log/pacman.log for what it was doing at the time of crash, that will give you idea what package to probably force reinstall if pacman was interrupted during installation. And then just update again.
There may be more difficult case if it crashed during initrd image generation, but likelyhood if that is low.
screen
It's more about differences in defining a word 'supports'. Those who define it like me while reading your original comment may think that refind can read and boot kernel from LVM or even encrypted partitions, which is not true, this is exactly how i got into that conversation.
It's okay to not to agree, it's okay to be different, it's okay to have setups the way you want them to be.
I asked because I legitimately want to have boot on lvm volume with rEFInd and was interested how you did that since i know it's not truely possible. As for whether refind supports lvm or not - it's simple: Can it read all metadata from disks required to know what VGs are there? can it realize what LVs are there? Can it properly read from PEs in right order to read filesystem blocks? And can it get that way to the level of actual files? Answer to all that is no, meaning LVM is not supported by rEFInd. And the way it is implemented is a trick to work that around. Despite that i like it more than alternatives for being self sustained with dynamic menu items and tools support, without dependencies from the rest of rootfs.
At the same time GRUB has a module that allows direct support for LVM without moving kernel around in order for it to be available during boot.
As for why i want boot be in LVM without such tricks: well once i had to migrate system between different disks several time due to changes in allocation across other PC at home and it was as easy as adding PV to VG, move LVs to new PV, creating and copying EFS content. The only downside - /boot mount point had to be changed to point to new EFS. With proper LVM support, i would not need to change mount points. Also there would be no need to keep EFS mounted anyways so it would not be in fstab in my case, only mount it manually when i needed to update refind. In this case system would have been as abstract from physical disks as possible. It's just something i like in LVM in general.
Let me explain why i'm skeptical: this is official refind instructions for installation, including LVM: https://www.rodsbooks.com/refind/linux.html as you can see it directly says LVM is unsupported and in manual steps it provides a solution to use EFI-as-boot, which works around refind's inability to read from LVM by simply having kernel and initrd at the location refind can easily read them. This way kernel can take over and continue execution with all the benefits of kernel running including support for encryption, lvm and all other good stuff.
What you had provided is kernel parameters which does not tell anything about refind's support for encryption and LVM, rather kernel's own support for that and refind's ability to pass those parameters to kernel.
So there are several ways you could have achieved that: 1. Have boot on EFI, 2. Have some sort of pacman/mkinitcpio hook that copies freshly installed kernel and initrd to efi partition for refind to be able to read those, 3. Have copied kernel to efi long time ago and set up chain loading to your current kernel(not sure if it's a thing, but it may easily be).
As you can see this is why i asked where your kernel is.
I assume that's your kernel parameters and kernel and initrd resides outside of LVM volumes, like on EFI volume, right?
Last i checked rEFInd does not support encryption and LVM. I still use it and prefer it over grub, efistub and systemd-boot for its fully OS independent operation/configuration, but have to keep efi as boot to work around lack of LVM support.
You're welcome. Glad I helped twice with single comment =.)
Boring: box, rpi, mini, micro. Last two are laptops.
Haven't used retroarch, but for files installed just use pacman -Ql [package] to [Q]uery a [l]ist of files owned by a [package], so you will be able to copy relevant files or change config accordingly.
Glad it did!
Likely your previous kernel was removed and new one was not yet installed when you had power loss. So just boot archiso, mount everithing, chroot and reinstall kernel/update by running pacman -Suy linux. You'll be good
You don't have kernel intalled, look at that /boot listing. Or you are mounting wrong partition as /boot. Or you have installed kernel and mounted /boot afterwards. Assuming you are mounting EFI as /boot
Can you post here:
UPD: I guess you need nvme driver for rEFInd. Check that out https://rodsbooks.com/refind/drivers.html
It's even better with virtualization. Much easier to create logical volumes as vm drives with all the benefits including raid, migration across physical volumes, snapshots etc. instead of using file based images. Also removes additional filesystem layer to gain a bit of performance.
Look at LVM. Want partitions on separate drives - sure. Want to wipe one drive/reuse it for other purpuses - just migrate partitions while they are mounted and in use from that drive. Want to mirror one partition only to another drive - sure(or even raid6 for example only for selected volumes or all of them - you decide). Want to have [enter any number] separate OS installations on one volume group sharing home without actually repartitioning anything - sure. Don't need partition anymore - delete it and space is available right away. Want hybrid ssd/hdd volume group so you can create/move partitions to faster/slower drive as needed on the fly - you got it. Want to span one huge partition across several drives - you guess what.
when i wrote partition it essentially meant to be logical volume, but for simplicity i choose term partition.
I had mandriva break itself during usual update, had ubuntu not booting after update, had opensuse break itself during dist-update. But after around 6 or 7 years with arch had no issues unless i break it myself.
Here is a compile time chart of chromium on different cpus, it's less than 1 hour for high end desktop cpus https://youtu.be/sg9WgwIkhvU?t=530
Usual way: backup all data. Boot from live usb. Use gparted or similar.
Safe way 1: If your home usage is less than 50 percent you can shrink to half a size, create new partition after it. Move all your home to a new partition. Update fstab to use new partition as a home. Remove old home. Resize root. Profit. Now you have to resize new home, but it's going to be tricky if it does not fit in between root and new home, read below.
Safe way 2 AKA tower of hanoi: If home usage is more than 50 percent. Same as above, but create partition as big as you had free space. Move there some directory that fits best. Update fstab accordingly. Repeat until you have your original home around 32GB and all it's data moved to another one. Remove old one and resize root. Now you have cool home made of dozen of partitions mounted here and there. Now it's easier to backup whole home, remove all that small partitions and restore properly than trying to fix it, while it is still possible. Don't forget to update fstab!
Unfortunately you can't use such case with poe hat installed
I'd suggest using case-heatsink for rpi4 for silent operation. Even overclocked it stays in mid 70's while compiling kernel on all four cores. Also looks and feels good - like a solid rugged block of aluminum.