Difference between revisions of "Manjaro Kernels"

imported>Handy
imported>Handy
Line 31: Line 31:
= Adding New Kernels =
= Adding New Kernels =


{{tip| '''mhwd-kernel will automatically update a newly installed kernel with any modules currently used in your existing kernel'''. For example, if you were to update from kernel 3.5 to 3.6, mhwd-kernel would automatically update 3.6 with any and all modules present in 3.5. How about that!}}
{{tip| '''mhwd-kernel will automatically update a newly installed kernel with any modules currently used in your existing kernel'''. For example, if you were to update from kernel 3.9 to 3.10, mhwd-kernel would automatically update 3.10 with any and all modules present in 3.9. How about that!}}


Manjaro not only supports the use of ''multiple'' kernels (selectable from the boot screen), but allows easy access to the '''very latest ''bleeding edge''''' kernels as well. This is undertaken through use of Manjaro's own ''MHWD-kernel'' (Manjaro Hard-Ware Detection) command. The syntax of the command is as follows:
Manjaro not only supports the use of ''multiple'' kernels (selectable from the boot screen), but allows easy access to the '''very latest ''bleeding edge''''' kernels as well. This is undertaken through use of Manjaro's own ''MHWD-kernel'' (Manjaro Hard-Ware Detection) command. The syntax of the command is as follows:


  sudo mhwd-kernel [new kernel: linux(version)] [optional - remove the current kernel: rmc]
  sudo mhwd-kernel [-i] [new kernel: linux(version)] [optional - remove the current kernel: rmc]




When listing a new kernel to be installed in the command, it is not necessary to write the entire version number. For example, any version of Kernel 3.5 can be listed simply as 'linux35', and any version of Kernel 3.6 can be listed as 'linux36', and so on.  
When listing a new kernel to be installed in the command, it is not necessary to write the entire version number. For example, any version of Kernel 3.9 can be listed simply as 'linux39', and any version of Kernel 3.10 can be listed as 'linux310', and so on.  


The optional '''rmc''' ('''<u>r</u>'''e'''<u>m</u>'''ove '''<u>c</u>'''urrent) component is of vital importance. Using this will result in your existing kernel being deleted upon the installation of the new kernel. Otherwise, if it is not used, then the existing kernel will be kept, and will be selectable alongside the new kernel at the boot screen. '''It is recommended - especially if updating to the latest bleeding edge kernel - to keep your old one, even if only for a short time afterwards'''. This the safer option, and the old kernel can be easily removed when satisfied with the stability and functionality of the new one.  
The optional '''rmc''' ('''<u>r</u>'''e'''<u>m</u>'''ove '''<u>c</u>'''urrent) component is of vital importance. Using this will result in your existing kernel being deleted upon the installation of the new kernel. Otherwise, if it is not used, then the existing kernel will be kept, and will be selectable alongside the new kernel at the boot screen. '''It is recommended - especially if updating to the latest bleeding edge kernel - to keep your old one, even if only for a short time afterwards'''. This the safer option, and the old kernel can be easily removed when satisfied with the stability and functionality of the new one.  




As an example, once the terminal is opened, the following command will install a new kernel (3.6) '''without deleting the existing kernel currently being used''':
As an example, once the terminal is opened, the following command will install a new kernel (3.10) '''without deleting the existing kernel currently being used''':


  sudo mhwd-kernel linux36
  sudo mhwd-kernel -i linux310




Otherwise, the following command will install a new kernel (3.6) to replace the existing kernel, '''which will be deleted''':
Otherwise, the following command will install a new kernel (3.10) to replace the existing kernel, '''which will be deleted''':


  sudo mhwd-kernel linux36 '''rmc'''
  sudo mhwd-kernel -i linux310 '''rmc'''




Either way, Manjaro will automatically configure the new kernel for you, ready for immediate use. Once completed, close the terminal and re-boot the system for the change to take effect.
Either way, Manjaro will automatically configure the new kernel for you, ready for immediate use. Once completed, close the terminal and re-boot the system for the change to take effect.


= Removing Kernels =
= Removing Kernels =
Anonymous user