Kusprayitna Blogs

Hidup untuk berbagi ilmu :: IT Linux Windows Database Oracle PHP OpenSource

Ubuntu, /boot penuh sehingga gagal update

Posted by Prayitna Kuswidianta on July 10th, 2015

Server Ubuntu memakai versi 12.04, sudah lama dipakai dan terhubung dengan internet secara NAT.

Untuk detail release dapat dilihat sebagai berikut :

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"

Dengan konfigurasi /boot yang kecil, maka untuk hari ini diketahui sudah penuh

# df -h

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vmhoat232-root 127G 84G 37G 70% /
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 799M 352K 799M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 0 3.9G 0% /run/shm
/dev/cciss/c0d0p1 228M 206M 11M 96% /boot

Apabila dilakukan update akan berakibat gagal, seperti pesan berikut ini :

# sudo apt-get update

Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:64 http://us.archive.ubuntu.com precise-backports/universe Translation-en [35.0 kB]
Fetched 6,102 kB in 38s (160 kB/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.virtualbox.org precise Release: The following signatures were invalid: BADSIG 54422A4B98AB5139 Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>

W: Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/precise/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.

 

Apakah yang harus dilakukan ?

1. Cek versi dari kernel yang dipakai

# uname -r
3.2.0-80-generic

2. Lihat daftar kernel di folder /boot yang ada

# ls /boot
abi-3.2.0-29-generic initrd.img-3.2.0-36-generic
abi-3.2.0-31-generic initrd.img-3.2.0-79-generic
abi-3.2.0-32-generic initrd.img-3.2.0-80-generic
abi-3.2.0-33-generic lost+found
abi-3.2.0-34-generic memtest86+.bin
abi-3.2.0-35-generic memtest86+_multiboot.bin
abi-3.2.0-36-generic System.map-3.2.0-29-generic
abi-3.2.0-79-generic System.map-3.2.0-31-generic
abi-3.2.0-80-generic System.map-3.2.0-32-generic
config-3.2.0-29-generic System.map-3.2.0-33-generic
config-3.2.0-31-generic System.map-3.2.0-34-generic
config-3.2.0-32-generic System.map-3.2.0-35-generic
config-3.2.0-33-generic System.map-3.2.0-36-generic
config-3.2.0-34-generic System.map-3.2.0-79-generic
config-3.2.0-35-generic System.map-3.2.0-80-generic
config-3.2.0-36-generic vmlinuz-3.2.0-29-generic
config-3.2.0-79-generic vmlinuz-3.2.0-31-generic
config-3.2.0-80-generic vmlinuz-3.2.0-32-generic
grub vmlinuz-3.2.0-33-generic
initrd.img-3.2.0-29-generic vmlinuz-3.2.0-34-generic
initrd.img-3.2.0-31-generic vmlinuz-3.2.0-35-generic
initrd.img-3.2.0-32-generic vmlinuz-3.2.0-36-generic
initrd.img-3.2.0-33-generic vmlinuz-3.2.0-79-generic
initrd.img-3.2.0-34-generic vmlinuz-3.2.0-80-generic
initrd.img-3.2.0-35-generic

3. Hapus file kernel yang sebelum tahap 1

# sudo rm *-3.2.0-29*
# sudo rm *-3.2.0-31*
# sudo rm *-3.2.0-32*
# sudo rm *-3.2.0-33*
# sudo rm *-3.2.0-34*
# sudo rm *-3.2.0-35*
# sudo rm *-3.2.0-36*
# sudo rm *-3.2.0-79*

4. Cek ulang ukuran /boot

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vmhoat232-root 127G 84G 37G 70% /
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 799M 352K 799M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 0 3.9G 0% /run/shm
/dev/cciss/c0d0p1 228M 25M 192M 12% /boot

5. Pastikan bahwa tidak ada aplikasi yang pending saat instalasi

# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 218 not upgraded.

6. Lakukan update OS

# sudo apt-get update

Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Reading package lists... Done

7. Lakukan pembersihan aplikasi yang tidak lagi diperlukan, terutama akibat point 3 yang kita lakukan

# sudo apt-get autoremove

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>