Open top menu
Monday, December 29, 2014


Sebenarnya tutor ini sudah banyak tersedia di google. Namun saya sengaja posting di blog ini untuk arsip saya sendiri, biar mudah kalo nyari refrensi.

Oke kali ini saya akan share cara Menghapus Kernel Lama di Ubuntu - BackBox Linux.



Pertama, masuk terminal sebagai root.

jackwilder@yunivita ~ % sudo su 

[sudo] password for jackwilder:



lalu masukkan command berikut untuk melihat kernel berapa saja yang terpasang.

root@yunivita:/home/jackwilder# dpkg --get-selections | grep 'linux-image'

linux-image-3.13.0-36-generic            install

linux-image-3.17.4-031704-generic        install

linux-image-3.18.0-031800-generic        install

linux-image-extra-3.13.0-36-generic        install

linux-image-generic                install



Kali ini saya ingin menghapus kernel 3.17 karena saya sudah mengupgrade ke kernel 3.18 ( kernel yang dipakai saat ini.

Sementara , kernel 3.13, bawaan dari BacBox 4.0 biarkan saja.



root@yunivita:/home/jackwilder# apt-get remove linux-image-3.17.4-*

Reading package lists... Done

Building dependency tree      

Reading state information... Done

Note, selecting 'linux-image-3.17.4-031704-generic' for regex 'linux-image-3.17.4-*'

The following packages will be REMOVED:

  linux-image-3.17.4-031704-generic

0 upgraded, 0 newly installed, 1 to remove and 66 not upgraded.

After this operation, 203 MB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database ... 259700 files and directories currently installed.)

Removing linux-image-3.17.4-031704-generic (3.17.4-031704.201411211317) ...

Examining /etc/kernel/prerm.d.

run-parts: executing /etc/kernel/prerm.d/dkms 3.17.4-031704-generic /boot/vmlinuz-3.17.4-031704-generic

Examining /etc/kernel/postrm.d .

run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.17.4-031704-generic /boot/vmlinuz-3.17.4-031704-generic

update-initramfs: Deleting /boot/initrd.img-3.17.4-031704-generic

run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.17.4-031704-generic /boot/vmlinuz-3.17.4-031704-generic

Generating grub configuration file ...

Found linux image: /boot/vmlinuz-3.18.0-031800-generic

Found initrd image: /boot/initrd.img-3.18.0-031800-generic

Found linux image: /boot/vmlinuz-3.13.0-36-generic

Found initrd image: /boot/initrd.img-3.13.0-36-generic

Found memtest86+ image: /memtest86+.elf

Found memtest86+ image: /memtest86+.bin

Found Windows 7 (loader) on /dev/sda2

done

The link /vmlinuz.old is a damaged link

Removing symbolic link vmlinuz.old

 you may need to re-run your boot loader[grub]

The link /initrd.img.old is a damaged link

Removing symbolic link initrd.img.old

 you may need to re-run your boot loader[grub]

Updating BackBox console menu ...



Sudah.. ? Uppss.. belum.

Ada lagi yang harus kita remove, yaitu linux-headers nya.

Berhubung yang saya re move tadi adalah linux-image kernel 3.17, maka untuk linux-headers nya juga harys yang 3.17.



root@yunivita:/home/jackwilder# apt-get remove linux-headers-3.17.4-*

Reading package lists... Done

Building dependency tree    

Reading state information... Done

Note, selecting 'linux-headers-3.17.4-031704-generic' for regex 'linux-headers-3.17.4-*'

Note, selecting 'linux-headers-3.17.4-031704' for regex 'linux-headers-3.17.4-*'

The following packages will be REMOVED:

  linux-headers-3.17.4-031704 linux-headers-3.17.4-031704-generic

0 upgraded, 0 newly installed, 2 to remove and 66 not upgraded.

After this operation, 78,5 MB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database ... 254545 files and directories currently installed.)

Removing linux-headers-3.17.4-031704-generic (3.17.4-031704.201411211317) ...

Removing linux-headers-3.17.4-031704 (3.17.4-031704.201411211317) ...

Updating BackBox console menu ...



Jangan lupa untuk melakukan update grub setelah penghapusan kernel lama selesai.

root@yunivita:/home/jackwilder# update-grub .



Sekian tutor kali ini semoga bermanfaat.

Different Themes
Written by Kcnewbie

Ikatlah ilmu dengan menuliskanya.

0 comments