1 Answers1

1

As soon as your system/server starts to boot press C key. In this mode,select a different kernel and try to boot in it.

If it fails then you need to first backup everthing using a live linux distro.

Now as its a kernel panic you would need to first mount the partiton in live mode. In this case I first suggest you to install new kernel and update the grub

Step 1: Boot using a live CD/USB

Step 2: type command df -h and obtain the partition where Ubuntu is installed

Step 3 : Mount the partiton where ubuntu is using the Command sudo mount /dev/sdX /mnt where X matches the partition title.

Step 4 : Now its time to get new kernels so either download it before hand or you may do it now.

Goto ubuntu kernel, select the latest kernel. In my case its v4.14-rc1, so click that. Now based on your server arch you can download the kernels. To know the arch,type the command uname -a to get a fair knowledge of the kernel arch. X86 shows its 32 bits, x86_64 shows its a 64 bits processor with support for 32. So I would download these in case of 64 bits

  • linux-headers-4.14.0-041400rc1_4.14.0-041400rc1.201709162031_all.deb
  • linux-headers-4.14.0-041400rc1-generic_4.14.0-041400rc1.201709162031_amd64.deb
  • linux-image-4.14.0-041400rc1-generic_4.14.0-041400rc1.201709162031_amd64.deb

You can do these either by making a text file (I would call it as kernel.list) having all the links, saving that and then using wget to download these all. In your case it should be

sudo wget -i /dev/sdx/kernel.list

Then type

sudo dpkg -i *.deb --root-directory=/mnt/ /dev/sdX

This will install all the kernel file at /dev/sdx to its mounted volume at /mnt. or you could simply do the wget -i kernel.list on another machine. Copy paste it to /dev/sdx using the command `

sudo cp /usb_driver /dev/sdx

and then install kernel by

sudo dpkg -i *.deb --root-directory=/mnt/ /dev/sdX

Step 5: Now in terminal type

sudo grub-install --root-directory=/mnt/ /dev/sdX

these will re-install grub2.

Step 6: Now simply reboot , command "sudo reboot" and check wheter it works or not.

Note :

  • Step 5 installs new kernel
  • Step 6 re installs grub2 so that your bootloader is fixed and is linked with your new kernel.
SIDDHARTH
  • 209