D
D
Dmitry2015-12-16 14:35:11
ubuntu
Dmitry, 2015-12-16 14:35:11

How to restore /boot/config*, initrd* in Ubuntu?

When updating, I always got an error about the lack of space on /boot.
there were files:

initrd.img-4.2.0-16-generic
initrd.img-4.2.0-17-generic
initrd.img-4.2.0-18-generic
config-4.2.0-16-generic
config-4.2.0-17- generic
config-4.2.0-18-generic
System.map-4.2.0-16-generic
System.map-4.2.0-17-generic
System.map-4.2.0-18-generic
vmlinuz-4.2.0-16 -generic
vmlinuz-4.2.0-17-generic
-abi-4.2.0-16-generic-
abi-4.2.0-17-generic-
abi-4.2.0-18-generic

There was 2% free space, so vmlinuz-4.2.0-18-generic was not saved.
All *16* and *17* were deleted, after the update *18* appeared and for some reason a couple of *17* again.
Then *18* and fresh *19* were foolishly deleted, now after the update they are not restored :(
Now I'm afraid to reboot.
How to cure?
Here is the log of the last actions:
[email protected]:~$ cd /boot
[email protected]:/boot$ ls -la
итого 75971
drwxr-xr-x  4 root root     1024 дек.  16 13:24 .
drwxr-xr-x 22 root root     4096 дек.  16 12:12 ..
-rw-r--r--  1 root root  1312674 нояб. 11 16:33 abi-4.2.0-19-generic
-rw-r--r--  1 root root   188953 нояб. 11 16:33 config-4.2.0-19-generic
drwxr-xr-x  5 root root     1024 дек.  16 13:10 grub
lrwxrwxrwx  1 root root       32 дек.  16 13:24 initrd.img-4.2.0-17-generic -> /tmp/initrd.img-4.2.0-17-generic
-rw-r--r--  1 root root 33085693 дек.  16 13:10 initrd.img-4.2.0-18-generic
-rw-r--r--  1 root root 33086338 дек.  16 12:54 initrd.img-4.2.0-19-generic
drwx------  2 root root    12288 нояб.  9 10:51 lost+found
-rw-r--r--  1 root root   182704 авг.  27 16:04 memtest86+.bin
-rw-r--r--  1 root root   184380 авг.  27 16:04 memtest86+.elf
-rw-r--r--  1 root root   184840 авг.  27 16:04 memtest86+_multiboot.bin
-rw-------  1 root root  2986882 нояб. 11 16:33 System.map-4.2.0-19-generic
-rw-------  1 root root  6557408 нояб. 11 16:33 vmlinuz-4.2.0-19-generic
[email protected]:/boot$ sudo rm *-17-*
[sudo] пароль для tomasina: 
[email protected]:/boot$ sudo rm *-18-*
[email protected]:/boot$ sudo rm *-19-*
[email protected]:/boot$ ls -la
итого 559
drwxr-xr-x  4 root root   1024 дек.  16 14:10 .
drwxr-xr-x 22 root root   4096 дек.  16 12:12 ..
drwxr-xr-x  5 root root   1024 дек.  16 13:10 grub
drwx------  2 root root  12288 нояб.  9 10:51 lost+found
-rw-r--r--  1 root root 182704 авг.  27 16:04 memtest86+.bin
-rw-r--r--  1 root root 184380 авг.  27 16:04 memtest86+.elf
-rw-r--r--  1 root root 184840 авг.  27 16:04 memtest86+_multiboot.bin
[email protected]:/boot$ df -k
Файл.система   1K-блоков Использовано  Доступно Использовано% Cмонтировано в
udev             1014548            0   1014548            0% /dev
tmpfs             206236         9488    196748            5% /run
/dev/sda3       31366044     12048124  17701536           41% /
tmpfs            1031172           84   1031088            1% /dev/shm
tmpfs               5120            4      5116            1% /run/lock
tmpfs            1031172            0   1031172            0% /sys/fs/cgroup
/dev/sda2         116883         9009     99130            9% /boot
/dev/sda4      204675864     41865204 152390644           22% /home
tmpfs             206236           68    206168            1% /run/user/1000
/dev/sdb5      262228960    172138144  90090816           66% /media/tomasina/Data
/dev/sdc1        7612048      5630464   1981584           74% /media/tomasina/KINGSTON
[email protected]:/boot$ df -k
Файл.система   1K-блоков Использовано  Доступно Использовано% Cмонтировано в
udev             1014548            0   1014548            0% /dev
tmpfs             206236         9488    196748            5% /run
/dev/sda3       31366044     11737904  18011756           40% /
tmpfs            1031172           84   1031088            1% /dev/shm
tmpfs               5120            4      5116            1% /run/lock
tmpfs            1031172            0   1031172            0% /sys/fs/cgroup
/dev/sda2         116883         9009     99130            9% /boot
/dev/sda4      204675864     41866152 152389696           22% /home
tmpfs             206236           64    206172            1% /run/user/1000
/dev/sdb5      262228960    172138144  90090816           66% /media/tomasina/Data
/dev/sdc1        7612048      5788080   1823968           77% /media/tomasina/KINGSTON
[email protected]:/boot$ ls -la
итого 559
drwxr-xr-x  4 root root   1024 дек.  16 14:10 .
drwxr-xr-x 22 root root   4096 дек.  16 12:12 ..
drwxr-xr-x  5 root root   1024 дек.  16 13:10 grub
drwx------  2 root root  12288 нояб.  9 10:51 lost+found
-rw-r--r--  1 root root 182704 авг.  27 16:04 memtest86+.bin
-rw-r--r--  1 root root 184380 авг.  27 16:04 memtest86+.elf
-rw-r--r--  1 root root 184840 авг.  27 16:04 memtest86+_multiboot.bin

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikon_NLG, 2015-12-18
@Tomasina

apt-get install linux-image-4.2.0-19-generic --reinstall
?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question