Difference between revisions of "Manjaro Kernels"

imported>Handy
imported>Handy
Line 57: Line 57:
= Removing Kernels =
= Removing Kernels =


{{warning|DO NOT attempt to delete an existing kernel while it is actually being used by Manjaro at the time. You can first identify what kernel is running on your system by using the command '''uname -r''' in the terminal (see above).}}
{{warning|DO NOT attempt to delete an existing kernel while it is actually being used by Manjaro at the time. You can first identify what kernel is running on your system by using the command '''mhwd-kernel -li''' in the terminal (see above).}}


Where multiple kernels are present on your system, ''pacman'' can be used to remove them in the terminal. It may be necessary to delete a total of three elements of the kernel in total to completely remove it:
Where multiple kernels are present on your system, ''pacman'' can be used to remove them in the terminal. It may be necessary to delete a total of three elements of the kernel in total to completely remove it:
Line 65: Line 65:
# The kernel's extra modules
# The kernel's extra modules


Whether or not the headers and extra modules must be deleted depends on whether or not they have been installed. The syntax of the pacman command to remove a kernel is as follows:
Whether or not the headers and extra modules must be deleted depends on whether or not they have been installed.




1. '''To delete a kernel''', the syntax is:
1. '''To remove a kernel''' use the following syntax:
  sudo pacman -R linux[version]
  sudo mhwd-kernel -R linux[version]




For example, to delete kernel version 3.5 from the system, the following command would be entered:
Here is an example for removing kernel 3.9.10-1
  sudo pacman -R linux35
 
  sudo mhwd-kernel -R linux39




Line 80: Line 81:




For example, to delete the headers of kernel version 3.5 from the system, the following command would be entered:
For example, to delete the headers of kernel version 3.9 from the system, the following command would be entered:
  sudo pacman -R linux35-headers
  sudo pacman -R linux39-headers




Line 88: Line 89:




For example, to delete the extra modules of kernel version 3.5 from the system, the following command would be entered:
For example, to delete the extra modules of kernel version 3.9 from the system, the following command would be entered:
  sudo pacman -R linux35-extramodules
  sudo pacman -R linux39-extramodules




Line 96: Line 97:




For example, to completely remove all elements of kernel version 3.5, the following command would be entered:
For example, to completely remove all elements of kernel version 3.9, the following command would be entered:
  sudo pacman -R linux35 linux35-headers linux35-extramodules
  sudo pacman -R linux39 linux39-headers linux39-extramodules


Please note however, that attempting to delete multiple elements at once if they are not present on your system will result in an error message before the operation itself is aborted. It is also worthwhile noting if Manjaro is being run in a virtual machine (e.g. Oracle Virtualbox), you may not be able to delete certain kernels if they contain elements important to the virtualisation process itself.
Please note however, that attempting to delete multiple elements at once if they are not present on your system will result in an error message before the operation itself is aborted. It is also worthwhile noting if Manjaro is being run in a virtual machine (e.g. Oracle Virtualbox), you may not be able to delete certain kernels if they contain elements important to the virtualisation process itself.


= Selecting Kernels =
= Selecting Kernels =
Anonymous user