[SOLVED] updated kernel without updating grub.cfg or initrd.gz, now system won't boot.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is slackware15, but you are trying to fix it with Manjaro livecd. First thing to ask, do you have huge kernel installed? If vmlinuz symlink is pointing at generic image, try pointing grub it at huge image? Most systems booting from huge kernel will give you a working console , no network slackware environment form which you can 1) reinstall grub, 2) reinstall lilo,3)edit grub.cfg, 4) edit lilo.cfg, 5) make new initrd.gz (which is not usually required to boot with huge). Maybe you tried this or don't have huge kernel image but I don't see it discussed and it is normal early step to attempt for slackware rescue. Also similar effect to use slackware install iso for rescue boot, did you attempt to get console only no network system that way?
My huge-kernel was also part of the update that initially broke the system; so I couldn't boot into that either. I don't see any advantage of using the slackware install iso over a manjaro-live boot iso (which is more full-featured and easier to use), so I didn't try it.. In fact, I didn't think the slackware install iso was capable of anything aside from installing slackware. But I will keep that in mind and give it a try next time.
Although, I'm still a little confused as to why and how mounting the sdc /dev/ could cause the system to hang.. it seems it has something to do with the fact that it was formatted as an exfat filesystem, according to mrmazda..?
Nothing to do with the filesystem type.
/dev/ is for device file creation - device names to be used and referred to. It is never as far as I can imagine a place to mount anything of any kind.
Any directory upon which a filesystem is mounted hides all the files that live there, making them inaccessible.
Did you actually try to boot with huge or assumed it wouldn't work because it was updated too? Huge image has a lot of extra drivers in it as it is meant to mount the root storage device and root filesystem with no initrd.gz required on most systems. This means it will often boot your system to a console only no network state sufficient to do significant rescue work even if there is a mismatch between the kernel image and module version. Of course if you have unusual hardware or use unusual root filesystem YMMV.
Although, I'm still a little confused as to why and how mounting the sdc /dev/ could cause the system to hang.. it seems it has something to do with the fact that it was formatted as an exfat filesystem, according to mrmazda..?
You need to know what /dev is for. This is not a real directory but the mountpoint for a virtual filesystem that is used by the kernel to manage hardware. As the kernel identifies drives, partitions and similar hardware at boot, the udev daemon creates device files for them. These are not real files; they have no content and no presence on disk. They are merely access points into the kernel.
Every time a program wants to access hardware, it accesses the corresponding device file. That wakes up the kernel which uses the appropriate driver function to carry out the requested operation. As far as the program is concerned, it has simply been accessing a file and getting a returned result. That makes Linux programming very simple because the programmer does not need to know anything at all about the hardware or how to access it.
Now if you mount something on /dev, it will replace all the virtual device files which udev has created and the kernel will therefore lose all access to hardware such as partitions.
Did you actually try to boot with huge or assumed it wouldn't work because it was updated too? Huge image has a lot of extra drivers in it as it is meant to mount the root storage device and root filesystem with no initrd.gz required on most systems. This means it will often boot your system to a console only no network state sufficient to do significant rescue work even if there is a mismatch between the kernel image and module version. Of course if you have unusual hardware or use unusual root filesystem YMMV.
yes, I actually tried to boot with it. I'm not sure why it didn't work. I have an Asus TUF X570-PLUS and an AMD Ryzen 9 3900X, for reference. I don't think that would qualify as unusual hardware, though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.