Question regarding kernel panic

Hi Jorge, :wave:

thanks so much for your reply. :heart:

Yes, that´s correct. But that´s still an intermittent phenomenon.
Here are the dates when it happened:

1.) 1.11.2023
2.) 10.11.2023
3.) 5.2.2024
4.) 16.3.2024
5.) 31.3.2024

As @nevj mentioned in post #50:

In actual fact I haven´t used it until now. The few times the kernel panic happend I just switched the PC off (with the hardware on/off button) and started again. It always worked the second time.

After it happened today I decided to give the rootdelay parameter a try.
I didn´t alter the grub entry though. Just passed the option manually to grub before boot was executed.

So for the next few times I´d like to give it a try first in order to see whether this may be of any help. :blush:

Thanks a lot for your kind offer, dear Jorge. :heart:

I´ll come back to that if everything else fails.

Although I´m not quite sure how to directly connect an external disk to my motherboard.
I´m not much of a hardware person, I´m afraid.

In the meantime: thanks a lot and many greetings from Rosika :slightly_smiling_face:

P.S.:

That´s alright, Jorge. Your English is much better than you think it is. No problem there. :+1:

1 Like

Hi Rosika,

Do you still want to keep Win 8? I feel pretty certain that if you install Linux on your internal disk, your kernel panic would go away.

Take care,
Howard

3 Likes

Hi Howard, :wave:

thanks for your suggestion.

Well, not necessarily. And if so, just for nostalgic reasons. :laughing:

I´d have to save some ISO files first before nuking the internal HDD.

At the moment I´m still trying out the rootdelay=10 parameter.
Until now it´s been working fine. But today was only the 2nd time I booted my system that way. So I can’t say anything definitive about it yet.

Thanks again and many greetings from Rosika :slightly_smiling_face:

2 Likes

Hi again, :wave:

I found something interesting on Stack Exchange.
Here they deal with this topic: “What’s the point of rootwait/rootdelay?”.
This might be of interest to me.

I found the comment:

rootwait and rootdelay are used in situations when the filesystem is not immediately available, for example if it’s detected asynchroneously or mounted via usb.

Well, my system actually is mounted via USB.

I also found this explanation:

what rootdelay truly does is to delay the start of the kernel for the specified time in order to let the kernel find the rootfs in slower devices.

Therefore, if you for example set rootdelay=10, your system will wait 10 seconds before trying to start the kernel regardless of whether the rootfs has been found or not.

On the other hand, rootwait simply waits indefinitely for your rootfs to be available and then starts the kernel."

(BTW: The kernel parameters are well documented here:
The kernel’s command-line parameters — The Linux Kernel documentation .)

But I don´t quite understand what the user stated here:

All in all, if you had a system that takes 5 seconds to find the rootfs and you have it set up like rootdelay=10 rootwait, it will wait 10 seconds and then start it immediately.

If the system were to take 15 seconds to find the rootfs, then rootdelay=10 will force the first 10 seconds of wait, and then rootwait will take care of the last 5 seconds needed.
Finally, in this last case, if you hadn’t set rootwait, the system will fail to boot after 10 seconds since it wouldn’t be able to find the rootfs.

Well, I understand the reasoning behind the statement but I don´t understand the setting of rootdelay=10 rootwait.

Why use both parameters together :question:
Wouldn´t rootwait alone have done the trick? :thinking:

And what does “detected asynchroneously” mean?

Many thanks for your opinions and many greetings from Rosika :slightly_smiling_face:

2 Likes

For a disc, async means writes are buffered, so the computer can go onto other things before the write is completed. The opposite, sync, means no buffering, so everything has to wait for the disk to actually write the data, before proceeding.
Disks are nearly always set to async.
There are sync and async options on the mount statement.

I agree, using both rootwait and rootdelay is illogical

3 Likes

Hi Neville, :wave:

thank you so much for the explanation.

I see. Good to know. That´s the case with me then as well.

Well, at least I understood it correctly then. Thanks for the confirmation.

I really admire your knowledge, Neville :+1: .

Many greetings from Rosika :slightly_smiling_face:

2 Likes

Hi Rosika,

Just wondering. Do you have both rootwait and rootdelay set?
And if you do have them set, have you had the kernel panic since setting them?

Kind Regards,
Howard

3 Likes

@easyt50 :

Hi Howard, :wave:

thanks for your feedback. :heart:

No, actually I haven´t. I was just wondering why the user Carlos Moro from stackexchange suggested trying both parameters together.

Well, he didn´t really suggest it; he just explained how the boot process would work if both parameters were set. That got me thinking…

In actual fact I haven´t edited /etc/default/grub yet.

Before doing so I thought: why not edit the linux-line when grub shows up (for the time being) …

Selecting the newest kernel and editiing it with e (just adding a whitespace and then either rootdelay=10 or rootwait; then CTRL+X).

I´d like to do it this way for a while just to make sure I do the right thing before editing grub.

Well, a few days ago I ran into a kernel panic again (after 37 days).

I´ve been using rootdelay=10 during this time. Seems the 10 seconds weren´t enough :thinking: .

For 2 days I´ve been using rootwait. The system booted well this way. But it´s too early to say if it´s the right thing to do.

Perhaps I need to supply a higher value than 10 seconds to rootdelay.
Still experimenting. :blush:

Many greetings from Rosika :slightly_smiling_face:

3 Likes

Hi Rosika,
Sorry for my response, but I still say you’d get “a new PC” if you put the external disk as an internal disk.

Just Neville? And the rest of the forum users? :cry:
I’m kidding, of course.

I also greatly admire Neville’s knowledge and commitment and his tireless daily help on the forum.

To Neville and all the forum users, thank you very much for all the help you give us on a daily basis.

Jorge

3 Likes

Here a toast to all of them. :clinking_glasses:

2 Likes

Yes, lets not forget it takes many contributors to make a forum work.
I have a limited range of skills and experience. Some topics are beyond me. I feel I learn more than I put in.

Thank you @Tech_JA and @Rosika for kind words.
@easyt50 has it right… we need to appreciate everyonne’s contribution

3 Likes

Hi all, :wave:

@Tech_JA :

Oh dear, oh dear. :neutral_face:
I didn’t want to offend anyone or even exclude anyone from my praise.

I am really sorry if it came out the wrong way. :slightly_frowning_face:

I just wanted to express my respect for Neville´s explanation of what async meant in that particular context.jat async meant in that particular context.

I would of course like to agree with this without reservation :heart: .
Thanks to all of you from me as well.

O.K. That would make sense, of course, Jorge.

@easyt50 :

From me as well. :slightly_smiling_face:

@nevj :

You´re very welcome, Neville.

That´s certainly true with me as well. :wink:

3 Likes