Despite using both GUI and CLI apps to reinstall linux419 …
( had a previous problem with filesystem so I had to reinstall all the packages…)
But recently i have found thta kernel 4.19 is not bootable.
Usually I have installed several kernels: the latest testing and a major version with the corresponding LTS kernel .
All the kernels were installed via the Manjaro Settings GUI with no errors whatsoever …
For some reason all the kernels are fine except the 4.19 .
Which reports something like :
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Any ideas to understand why does this specific kernel fails to boot ?
( I have a P8Z77 motherboard and started to use Manjaro since 2015 …
Never reinstalled from zero …
Started with kernel 3.18 or something … and Manjaro were one of the first distros to have the 4.xx kernel available …)
Most of the time I have the latest kernel but sometimes when some strange behaviour appears I like to go back to a previous kernel to find if it something “new” or something that I missed before …
So in this case I am just asking if some else in the forum has the same problem as I have now …
Nonetheless I believe that the problem might be related to the init image compression …
I think I have actived ( it seems globally … ) the init images to be compressed in lzma …
Now my question is more of a : why did the mkinitcpio did not report any warning or information … ?!?
Curious as I am, I just changed /etc/mkinitcpio.conf and set lzma as the compression option.
(default is gzip)
It “feels” like lzma causes the image creation to take a long time - especially for the fallback image.
But both 5.15 and 4.19 boot and work just fine.
Why would you suspect the compression algorithm to be a cause of the problem?
What should it have warned about?
It will tell you what it does and which compression is used - certainly if you run sudo mkinitcpio -P linux from terminal
zstd cannot be used for lower versions than 5.9 - but otherwise, compression used should not matter for functionality.
I just saw in the Arch Wiki that zstd is the default there - but the text in /etc/mkinitcpio.conf here on Manjaro says the default is gzip.
Once I tried to make some experiences related to the initramfs ( compression algorithms and startup speed ) … But did not reach any conclusion.
Nonetheless calling file /etc/initramfs I get :
boot/initramfs-4.19-x86_64-fallback.img: ASCII cpio archive (SVR4 with no CRC)
/boot/initramfs-4.19-x86_64.img: ASCII cpio archive (SVR4 with no CRC)
/boot/initramfs-5.15-x86_64.img: ASCII cpio archive (SVR4 with no CRC)
/boot/initramfs-6.6-x86_64.img: ASCII cpio archive (SVR4 with no CRC)
/boot/initramfs-6.8-x86_64-fallback.img: ASCII cpio archive (SVR4 with no CRC)
/boot/initramfs-6.8-x86_64.img: ASCII cpio archive (SVR4 with no CRC)
/boot/initramfs-6.9-x86_64-fallback.img: ASCII cpio archive (SVR4 with no CRC)
/boot/initramfs-6.9-x86_64.img: ASCII cpio archive (SVR4 with no CRC)
Which I interpret that I do not have compression … !?
Or am I missing something ?
...
COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
COMPRESSION="zstd"
...
That means that something is not working as expected …
How can I force a full initramfs rebuild manually ?
( normally I expect the “update-grub” script to execute , once a new kernel is updated …)
That won’t work with 5.4 and 4.19. Ah this was already said. Also next time mark the most appropriate answer as a solution instead of selfishly marking your own repeat.
If you leave /etc/mkinitcpio.conf totally untouched
all the possible compression methods are commented out
and the default should be used - which is gzip
If you explicitly use cat
or if you uncomment a method for which you do not have the necessary program installed
(this is the case for me when I try to use lzop)
then the fallback that is used is cat - which produces the result you see (uncompressed cpio archive)
yes, i have upstream mkinitcpio from pacnew and all are commented, and it show same output as above. I used to have modified one but reverted to upstream when i did large update to plasma6 to rule out any hacks i have made as potential issues for the update.
And with this i have same output from the file command as was earlier taken to mean the image is uncompressed. So 1 of the 2 interpretations are wrong. Or is the output i posted saying it outright: it “generates gzip” but outputs “uncompressed” ?