所有的鸟儿他们都知道, 他们的巢应该筑在什么地方, 鸟儿知道自己该在什么地方筑巢, 那就意味着他们了解他们自己的使命。 我们身为万物之灵的人类, 怎么会不知道,连鸟儿都知道的道理呢?
Recovering From a Kernel Panic Using a Custom ISO  linux 急救
Recovering From a Kernel Panic Using a Custom ISO linux 急救

Recovering From a Kernel Panic Using a Custom ISO linux 急救

https://www.vultr.com/docs/recovering-from-a-kernel-panic-using-a-custom-iso

There are times when we modify our kernels to optimize them, upgrade them, or tinker around with them. Unfortunately for Linux-based operating systems, this means that there is the possibility of kernel panics – the equivalent to a “blue screen of death” on Windows. It’s important that you know how to recover from these, as any KVM VPS (including Vultr) or dedicated server that you use has its own kernel.

For this article, I’ll explain how to recover from a kernel panic on a Vultr VPS. I will be using an ISO from the SystemRescueCd project.

Step 1: Finding the error

From the Vultr control panel, select your VPS and hit VNC console. Attempt to boot the server, and you’ll be able to see the error. Take note of this so that you can repair it.

Step 2: Mounting a custom ISO from the control panel

Click the “ISO” option, and input the SystemRescueCd ISO URL. You may visit the official site for newer images.

http://iweb.dl.sourceforge.net/project/systemrescuecd/sysresccd-x86/4.5.3/systemrescuecd-x86-4.5.3.iso

vultr_upload_iso.png

From there, head back to your VPS controls and click “Mount ISO”.

You will be greeted with a pop-up screen by pressing the VNC console. Click “Enter” on the first option, and your system will start up.

start_up.png

Step 3: Rescuing your kernel

Now that you have access to a shell prompt, create a directory to mount your VPS’s disk.

mkdir /rescuedisk

Now, mount the disk.

mount /dev/vda1 /rescuedisk

You now have access to your files. At this point, you can choose whether to copy your files to a remote server, or research the kernel panic’s message that you took note of earlier.

An example of a kernel panic issue would be a missing /etc/shadow file, or any missing system file. You could replace a missing file with a backup by copying over /etc/shadow- to /etc/shadow. For example:

cd /rescuedisk
cp etc/shadow- etc/shadow

Once you have finished fixing the issue, unmount the ISO from the Vultr control panel and reboot your VPS by typing reboot in the prompt. If your issue was fixed, then your VPS will boot normally.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注