I'm trying to reinstall something on my new kernel of Ubuntu 16.04 system. And I accidentally tried the command: sudo update initramfs -u Since then, my computer could not boot correctly anymore. Every time, it will enter the busybox, just like:
BusyBox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) built-in shell (ash) enter 'help' for a list of built-in commands.
(initramfs)
More importantly, I could not type in anything under this circumstance.
Right now, I am able to use my computer via another kernel. But does anyone have some good ideas to fix my issue? Thanks.
Here is the output of ls -al /boot
total 158540
drwxr-xr-x 4 root root 4096 Apr 7 12:28 .
drwxr-xr-x 24 root root 4096 Apr 7 07:01 ..
-rw-r--r-- 1 root root 217286 Apr 5 2019 config-4.15.0-48-generic
-rw-r--r-- 1 root root 217465 Feb 28 12:24 config-4.15.0-91-generic
-rw-r--r-- 1 root root 217465 Apr 1 01:44 config-4.15.0-96-generic
drwx------ 3 root root 4096 Dec 31 1969 efi
drwxr-xr-x 5 root root 4096 Apr 7 12:30 grub
-rw-r--r-- 1 root root 55577646 Aug 28 2019 initrd.img-4.15.0-48-generic
-rw-r--r-- 1 root root 56163066 Mar 18 06:25 initrd.img-4.15.0-91-generic
-rw-r--r-- 1 root root 12625827 Apr 7 12:28 initrd.img-4.15.0-96-generic
-rw-r--r-- 1 root root 182704 Jan 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 184380 Jan 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 184840 Jan 28 2016 memtest86+_multiboot.bin
-rw------- 1 root root 4051368 Apr 5 2019 System.map-4.15.0-48-generic
-rw------- 1 root root 4067536 Feb 28 12:24 System.map-4.15.0-91-generic
-rw------- 1 root root 4068326 Apr 1 01:44 System.map-4.15.0-96-generic
-rw------- 1 root root 8141400 Apr 8 2019 vmlinuz-4.15.0-48-generic
-rw------- 1 root root 8193432 Mar 1 05:28 vmlinuz-4.15.0-91-generic
-rw------- 1 root root 8191544 Apr 6 12:08 vmlinuz-4.15.0-96-generic
I tried sudo update-initramfs -c -k 4.15.0-96-generic
but it did not help.
The updated output of ls -al /boot
:
total 158540
drwxr-xr-x 4 root root 4096 Apr 7 16:25 .
drwxr-xr-x 24 root root 4096 Apr 7 07:01 ..
-rw-r--r-- 1 root root 217286 Apr 5 2019 config-4.15.0-48-generic
-rw-r--r-- 1 root root 217465 Feb 28 12:24 config-4.15.0-91-generic
-rw-r--r-- 1 root root 217465 Apr 1 01:44 config-4.15.0-96-generic
drwx------ 3 root root 4096 Dec 31 1969 efi
drwxr-xr-x 5 root root 4096 Apr 7 12:30 grub
-rw-r--r-- 1 root root 55577646 Aug 28 2019 initrd.img-4.15.0-48-generic
-rw-r--r-- 1 root root 56163066 Mar 18 06:25 initrd.img-4.15.0-91-generic
-rw-r--r-- 1 root root 12625839 Apr 7 16:25 initrd.img-4.15.0-96-generic
-rw-r--r-- 1 root root 182704 Jan 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 184380 Jan 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 184840 Jan 28 2016 memtest86+_multiboot.bin
-rw------- 1 root root 4051368 Apr 5 2019 System.map-4.15.0-48-generic
-rw------- 1 root root 4067536 Feb 28 12:24 System.map-4.15.0-91-generic
-rw------- 1 root root 4068326 Apr 1 01:44 System.map-4.15.0-96-generic
-rw------- 1 root root 8141400 Apr 8 2019 vmlinuz-4.15.0-48-generic
-rw------- 1 root root 8193432 Mar 1 05:28 vmlinuz-4.15.0-91-generic
-rw------- 1 root root 8191544 Apr 6 12:08 vmlinuz-4.15.0-96-generic
ls -al /boot
and edit that output into your question, and I'll see if I can help. Why did you do the update-initramfs command? What were you trying to reinstall on your kernel? Start commands to me with @heynnema or I may miss them.