How to choose grub default OS entry without fixing it to a specific kernel version?

I have Ubuntu 16.04, Ubuntu 18.04, and Windows 10 installed on my machine. I want to update the order of entries in the grub menu so that the default (first) entry is Ubutnu 18.04. The solutions available online suggest manually changing the default to a specific entry, with a specific kernel version. However, after kernel update, won’t I need to again change the order to put the latest version on top?

I notice I have this kind of “generic” entry (the first entry, called “Ubuntu”) which always loads the last kernel version available of Ubuntu 16.04. How can I have an entry with the same behavior for Ubuntu 18.04 and move it to the top? Also, could someone explain how this entry works? I couldn’t find anything online about it.

P.S: I tried changing the order and saving with Grub-customizer, but it didn’t actually change it! Also, it seems to be inconsistent, because in the first entry named “Ubuntu”, when I click edit, I find that it has this part “linux /boot/vmlinuz-4.18.0-25-generic”. So, it seems to be referring to Ubuntu 18.04 kernel, but when I open the same entry from boot menu, it opens Ubuntu 16.04 instead.

Thank you.

Why can’t I use any kernel greater than 4.2?

I’m pretty new in Linux. I used GNUU to download and install linux kernels and i manually downloaded every version newer than mine (4.18.0-25-generic) none of which worked. When I turned on my pc, i was left with a blank black screen and it wasn’t loading anything at all.

I read linux kernel >5 finally has some serious improvements with AMDs, and I’m deeply interessed in that. I recently had some freeze issues, and it turned out it was something related with KWin/compositor. (not sure if this is related).

This is my OS

Operating System: Kubuntu 19.04 KDE Plasma Version: 5.15.4 KDE Frameworks Version: 5.56.0 Qt Version: 5.12.2 Kernel Version: 4.18.0-25-generic OS Type: 64-bit Processors: 8 × AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx Memory: 7,5 GiB of RAM 

This is my hardware

sclero                           description: Notebook     product: Swift SF315-41 (0000000000000000)     vendor: Acer     version: V1.02     serial: NXGV7ET00175005CC27200     width: 64 bits     capabilities: smbios-3.0 dmi-3.0 smp vsyscall32     configuration: chassis=notebook family=Swift 3 sku=0000000000000000 uuid=E003CDFF-4BE2-E781-2FFC-9822EF92F3FD   *-core        description: Motherboard        product: Becks_RR        vendor: RR        physical id: 0        version: V1.02        serial: NBGV511005750029DE7200        slot: Type2 - Board Chassis Location      *-firmware           description: BIOS           vendor: Insyde Corp.           physical id: 0           version: V1.02           date: 12/04/2017           size: 128KiB           capacity: 8128KiB           capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi      *-cpu           description: CPU           product: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx           vendor: Advanced Micro Devices [AMD]           physical id: 4           bus info: cpu@0           version: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx           serial: Unknown           slot: FP5           size: 3344MHz           capacity: 3600MHz           width: 64 bits           clock: 100MHz           capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx hw_pstate sme ssbd sev vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca cpufreq           configuration: cores=4 enabledcores=4 threads=8         *-cache:0              description: L1 cache              physical id: 5              slot: L1 - Cache              size: 384KiB              capacity: 384KiB              clock: 1GHz (1.0ns)              capabilities: pipeline-burst internal write-back unified              configuration: level=1         *-cache:1              description: L2 cache              physical id: 6              slot: L2 - Cache              size: 2MiB              capacity: 2MiB              clock: 1GHz (1.0ns)              capabilities: pipeline-burst internal write-back unified              configuration: level=2         *-cache:2              description: L3 cache              physical id: 7              slot: L3 - Cache              size: 4MiB              capacity: 4MiB              clock: 1GHz (1.0ns)              capabilities: pipeline-burst internal write-back unified              configuration: level=3      *-memory           description: System Memory           physical id: b           slot: System board or motherboard           size: 8GiB         *-bank:0              description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0,4 ns)              product: 4ATF51264HZ-2G3B1              vendor: Micron Technology              physical id: 0              serial: 00000000              slot: DIMM 0              size: 4GiB              width: 64 bits              clock: 2400MHz (0.4ns)         *-bank:1              description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0,4 ns)              product: 4ATF51264HZ-2G3B1              vendor: Micron Technology              physical id: 1              serial: 00000000              slot: DIMM 0              size: 4GiB              width: 64 bits              clock: 2400MHz (0.4ns)      *-pci:0           description: Host bridge           product: Advanced Micro Devices, Inc. [AMD]           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 100           bus info: pci@0000:00:00.0           version: 00           width: 32 bits           clock: 33MHz         *-generic UNCLAIMED              description: IOMMU              product: Advanced Micro Devices, Inc. [AMD]              vendor: Advanced Micro Devices, Inc. [AMD]              physical id: 0.2              bus info: pci@0000:00:00.2              version: 00              width: 32 bits              clock: 33MHz              capabilities: msi ht bus_master cap_list              configuration: latency=0         *-pci:0              description: PCI bridge              product: Advanced Micro Devices, Inc. [AMD]              vendor: Advanced Micro Devices, Inc. [AMD]              physical id: 1.2              bus info: pci@0000:00:01.2              version: 00              width: 32 bits              clock: 33MHz              capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list              configuration: driver=pcieport              resources: irq:26 memory:e0900000-e09fffff            *-storage                 description: Non-Volatile memory controller                 product: Intel Corporation                 vendor: Intel Corporation                 physical id: 0                 bus info: pci@0000:01:00.0                 version: 03                 width: 64 bits                 clock: 33MHz                 capabilities: storage pm pciexpress msix nvm_express bus_master cap_list                 configuration: driver=nvme latency=0                 resources: irq:48 memory:e0900000-e0903fff         *-pci:1              description: PCI bridge              product: Advanced Micro Devices, Inc. [AMD]              vendor: Advanced Micro Devices, Inc. [AMD]              physical id: 1.7              bus info: pci@0000:00:01.7              version: 00              width: 32 bits              clock: 33MHz              capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list              configuration: driver=pcieport              resources: irq:27 memory:e0200000-e03fffff            *-network                 description: Wireless interface                 product: QCA6174 802.11ac Wireless Network Adapter                 vendor: Qualcomm Atheros                 physical id: 0                 bus info: pci@0000:02:00.0                 logical name: wlp2s0                 version: 32                 serial: 98:22:ef:92:f3:fd                 width: 64 bits                 clock: 33MHz                 capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless                 configuration: broadcast=yes driver=ath10k_pci driverversion=4.18.0-25-generic firmware=RM.4.4.1.c2-00057-QCARMSWP-1 ip=192.168.1.76 latency=0 link=yes multicast=yes wireless=IEEE 802.11                 resources: irq:60 memory:e0200000-e03fffff         *-pci:2              description: PCI bridge              product: Advanced Micro Devices, Inc. [AMD]              vendor: Advanced Micro Devices, Inc. [AMD]              physical id: 8.1              bus info: pci@0000:00:08.1              version: 00              width: 32 bits              clock: 33MHz              capabilities: pci pm pciexpress msi normal_decode bus_master cap_list              configuration: driver=pcieport              resources: irq:28 ioport:1000(size=4096) memory:e0500000-e08fffff ioport:d0000000(size=270532608)            *-display                 description: VGA compatible controller                 product: Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]                 vendor: Advanced Micro Devices, Inc. [AMD/ATI]                 physical id: 0                 bus info: pci@0000:03:00.0                 version: c4                 width: 64 bits                 clock: 33MHz                 capabilities: pm pciexpress msi msix vga_controller bus_master cap_list                 configuration: driver=amdgpu latency=0                 resources: irq:50 memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:1000(size=256) memory:e0800000-e087ffff            *-multimedia:0                 description: Audio device                 product: Advanced Micro Devices, Inc. [AMD/ATI]                 vendor: Advanced Micro Devices, Inc. [AMD/ATI]                 physical id: 0.1                 bus info: pci@0000:03:00.1                 version: 00                 width: 32 bits                 clock: 33MHz                 capabilities: pm pciexpress msi bus_master cap_list                 configuration: driver=snd_hda_intel latency=0                 resources: irq:62 memory:e08c8000-e08cbfff            *-generic UNCLAIMED                 description: Encryption controller                 product: Advanced Micro Devices, Inc. [AMD]                 vendor: Advanced Micro Devices, Inc. [AMD]                 physical id: 0.2                 bus info: pci@0000:03:00.2                 version: 00                 width: 32 bits                 clock: 33MHz                 capabilities: pm pciexpress msi msix cap_list                 configuration: latency=0                 resources: memory:e0700000-e07fffff memory:e08cc000-e08cdfff            *-usb:0                 description: USB controller                 product: Advanced Micro Devices, Inc. [AMD]                 vendor: Advanced Micro Devices, Inc. [AMD]                 physical id: 0.3                 bus info: pci@0000:03:00.3                 version: 00                 width: 64 bits                 clock: 33MHz                 capabilities: pm pciexpress msi msix xhci bus_master cap_list                 configuration: driver=xhci_hcd latency=0                 resources: irq:29 memory:e0600000-e06fffff               *-usbhost:0                    product: xHCI Host Controller                    vendor: Linux 4.18.0-25-generic xhci-hcd                    physical id: 0                    bus info: usb@1                    logical name: usb1                    version: 4.18                    capabilities: usb-2.00                    configuration: driver=hub slots=4 speed=480Mbit/s               *-usbhost:1                    product: xHCI Host Controller                    vendor: Linux 4.18.0-25-generic xhci-hcd                    physical id: 1                    bus info: usb@2                    logical name: usb2                    version: 4.18                    capabilities: usb-3.10                    configuration: driver=hub slots=4 speed=10000Mbit/s            *-usb:1                 description: USB controller                 product: Advanced Micro Devices, Inc. [AMD]                 vendor: Advanced Micro Devices, Inc. [AMD]                 physical id: 0.4                 bus info: pci@0000:03:00.4                 version: 00                 width: 64 bits                 clock: 33MHz                 capabilities: pm pciexpress msi msix xhci bus_master cap_list                 configuration: driver=xhci_hcd latency=0                 resources: irq:38 memory:e0500000-e05fffff               *-usbhost:0                    product: xHCI Host Controller                    vendor: Linux 4.18.0-25-generic xhci-hcd                    physical id: 0                    bus info: usb@3                    logical name: usb3                    version: 4.18                    capabilities: usb-2.00                    configuration: driver=hub slots=2 speed=480Mbit/s                  *-usb:0                       description: Video                       product: HD WebCam                       vendor: Chicony Electronics Co.,Ltd.                       physical id: 1                       bus info: usb@3:1                       version: 92.26                       capabilities: usb-2.00                       configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s                  *-usb:1                       description: USB hub                       product: USB2.0 Hub                       vendor: Genesys Logic, Inc.                       physical id: 2                       bus info: usb@3:2                       version: 88.32                       capabilities: usb-2.00                       configuration: driver=hub maxpower=100mA slots=4 speed=480Mbit/s                     *-usb:0                          description: Mouse                          product: G203 Prodigy Gaming Mouse                          vendor: Logitech                          physical id: 1                          bus info: usb@3:2.1                          version: 7.03                          serial: 0D8637603636                          capabilities: usb-2.00                          configuration: driver=usbhid maxpower=300mA speed=12Mbit/s                     *-usb:1                          description: Generic USB device                          product: USB2.0-CRW                          vendor: Generic                          physical id: 2                          bus info: usb@3:2.2                          version: 39.60                          serial: 20100201396000000                          capabilities: usb-2.00                          configuration: driver=rtsx_usb maxpower=500mA speed=480Mbit/s                     *-usb:2 UNCLAIMED                          description: Generic USB device                          product: EgisTec Touch Fingerprint Sensor                          vendor: EgisTec                          physical id: 3                          bus info: usb@3:2.3                          version: 10.41                          serial: 07029CDA                          capabilities: usb-1.10                          configuration: maxpower=100mA speed=12Mbit/s                     *-usb:3                          description: Bluetooth wireless interface                          vendor: Lite-On Technology Corp.                          physical id: 4                          bus info: usb@3:2.4                          version: 0.01                          capabilities: bluetooth usb-2.01                          configuration: driver=btusb maxpower=100mA speed=12Mbit/s               *-usbhost:1                    product: xHCI Host Controller                    vendor: Linux 4.18.0-25-generic xhci-hcd                    physical id: 1                    bus info: usb@4                    logical name: usb4                    version: 4.18                    capabilities: usb-3.10                    configuration: driver=hub slots=1 speed=10000Mbit/s            *-multimedia:1 UNCLAIMED                 description: Multimedia controller                 product: Advanced Micro Devices, Inc. [AMD]                 vendor: Advanced Micro Devices, Inc. [AMD]                 physical id: 0.5                 bus info: pci@0000:03:00.5                 version: 00                 width: 32 bits                 clock: 33MHz                 capabilities: pm pciexpress msi cap_list                 configuration: latency=0                 resources: memory:e0880000-e08bffff            *-multimedia:2                 description: Audio device                 product: Advanced Micro Devices, Inc. [AMD]                 vendor: Advanced Micro Devices, Inc. [AMD]                 physical id: 0.6                 bus info: pci@0000:03:00.6                 version: 00                 width: 32 bits                 clock: 33MHz                 capabilities: pm pciexpress msi bus_master cap_list                 configuration: driver=snd_hda_intel latency=0                 resources: irq:64 memory:e08c0000-e08c7fff         *-serial              description: SMBus              product: FCH SMBus Controller              vendor: Advanced Micro Devices, Inc. [AMD]              physical id: 14              bus info: pci@0000:00:14.0              version: 61              width: 32 bits              clock: 66MHz              configuration: driver=piix4_smbus latency=0              resources: irq:0         *-isa              description: ISA bridge              product: FCH LPC Bridge              vendor: Advanced Micro Devices, Inc. [AMD]              physical id: 14.3              bus info: pci@0000:00:14.3              version: 51              width: 32 bits              clock: 66MHz              capabilities: isa bus_master              configuration: latency=0      *-pci:1           description: Host bridge           product: Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 101           bus info: pci@0000:00:01.0           version: 00           width: 32 bits           clock: 33MHz      *-pci:2           description: Host bridge           product: Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 102           bus info: pci@0000:00:08.0           version: 00           width: 32 bits           clock: 33MHz      *-pci:3           description: Host bridge           product: Advanced Micro Devices, Inc. [AMD]           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 103           bus info: pci@0000:00:18.0           version: 00           width: 32 bits           clock: 33MHz      *-pci:4           description: Host bridge           product: Advanced Micro Devices, Inc. [AMD]           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 104           bus info: pci@0000:00:18.1           version: 00           width: 32 bits           clock: 33MHz      *-pci:5           description: Host bridge           product: Advanced Micro Devices, Inc. [AMD]           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 105           bus info: pci@0000:00:18.2           version: 00           width: 32 bits           clock: 33MHz      *-pci:6           description: Host bridge           product: Advanced Micro Devices, Inc. [AMD]           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 106           bus info: pci@0000:00:18.3           version: 00           width: 32 bits           clock: 33MHz           configuration: driver=k10temp           resources: irq:0      *-pci:7           description: Host bridge           product: Advanced Micro Devices, Inc. [AMD]           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 107           bus info: pci@0000:00:18.4           version: 00           width: 32 bits           clock: 33MHz      *-pci:8           description: Host bridge           product: Advanced Micro Devices, Inc. [AMD]           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 108           bus info: pci@0000:00:18.5           version: 00           width: 32 bits           clock: 33MHz      *-pci:9           description: Host bridge           product: Advanced Micro Devices, Inc. [AMD]           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 109           bus info: pci@0000:00:18.6           version: 00           width: 32 bits           clock: 33MHz      *-pci:10           description: Host bridge           product: Advanced Micro Devices, Inc. [AMD]           vendor: Advanced Micro Devices, Inc. [AMD]           physical id: 10a           bus info: pci@0000:00:18.7           version: 00           width: 32 bits           clock: 33MHz 

kernel version for ubuntu 14.04.6?

Would like to check the latest kernel version for ubunutu OS 14.04.6. the machine is currently intalled with ubuntu OS is “Ubuntu 14.04.6 LTS” and kernel version is “Linux 4.4.0-148-generic”. Do let me if it is not the latest patches for OS 14.04.6. Thank you.

$ apt list –upgradable

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get dist-upgrade

$ sudo apt full-upgrade

$ sudo apt-get upgrade linux-image-generic

$ sudo reboot

Menuconfig GUI doesn’t show up when “petalinux-config -c kernel” command run

I want to implement Zynq Ultrascale MPSoc VCU TRD 2018.1 Design Module-2 application on Zcu106 Board. I installed petalinux and tftp server then I started to apply these steps:

% cd $ TRD_HOME/apu/vcu_petalinux_bsp
% petalinux-create -t project -s xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final.bsp
% cd xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final
% cp project-spec/meta-user/recipes-bsp/device-tree/files/zcu106-vcu-dm2.dtsi project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
% petalinux-config –get-hw-description=$ TRD_HOME/pl/pre-built/sdirx_vcu
% petalinux-build

But when I finished and run “petalinux-build” command I got some warnings and error as:

ExpansionError during parsing /components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.1.bb

However I couldn’t find any useful solution on internet and I decided to do some changes in Menuconfig GUI according to “PetaLinux kernel and application build steps in configuring ZU MPSoC board as PS PCIe End Point and Root Port” page.”petalinux-config” part was OK but when I run “petalinux-config -c kernel” command in second step GUI didn’t show up.

I searched on internet and applied some advices like editing local.conf file and changes OE_TERMINAL = “xterm” or changing terminal size but they didn’t work and now “petalinux-config” command is not working anymore.(GUI doesn’t show up)

I would really appreciate any help.

Thanks in advance.

Problem with Kernel 4.4.0 Modules on Ubuntu

I have a Virtual Server, wunning under Ubuntu 16.04, Kernel version 4.4.0-042stab138.1. Now, I have some trouble to generate a firewall, for example ufw. It means, it will only work when

a) Kernel headers and modules installed ( linux-headers-4.4.0-042stab138

b) /lib/modules/4.4.0-042stab138.1/ modules.builin.bin exists.

The last named file exists, but its empty. I found no information about these Kernel version so I hope, I can build the required files by there source. The next Kernel Version I have found, is 4.4.0-42.62. Now the question of the day, will the compile successful create all neccessary files ?

What is the best way to do here, what would you do ?

How to Set Kernel Options in Ubuntu 18.04 (Bionic)

I’m currently building a router using Ubuntu Server 18.04 (bionic) and am stepping through various configuration tasks. The advent of Systemd and Netplan mean I’m breaking some new ground and having to synthesize multiple sources, and discerning deprecation is nontrivial.

I’m currently roughing out my kernel and other configuration via /etc/sysctl.conf. A distinction seems to exist between (a) kernel parameters or variables, which are read from /etc/sysctl.conf and /etc/sysctl.d/*.conf at runtime; and (b) kernel options.

Specifically, the documentation for several kernel variables make reference to various CONFIG_* settings/options but with no guidance about how or where to enable them. E.g., the documentation for kernel.hung_task_panic at https://sysctl-explorer.net/kernel/hung_task_panic/ states:

Controls the kernel’s behavior when a hung task is detected. This file shows up if CONFIG_DETECT_HUNG_TASK is enabled.

[Note: This particular file happens to appear in 18.04.2 but I’m using it as an example because it’s handy.]

THE QUESTION is how and where to enable kernel options like the CONFIG_DETECT_HUNG_TASK option from above, on modern Linux systems and Ubuntu 18.04 in particular. No definitive guidance seems to exist and the few references I’ve found are years old and with a nontrivial risk of deprecation given intervening years and releases.

The current hypotheses are:

  1. Add a line with the option in /etc/sysctl.conf, similar to how one might add TCP_NODELAY to /etc/smb.conf.

  2. Add a line with the option to the bootloader configuration file /etc/default/grub.

  3. Add a line with the option to whichever other configuration file (which?) is read at runtime to write /boot/config-*-generic.

  4. Build and recompile the kernel from scratch using

make menuconfig 

and related steps, which themselves are poorly and anciently, or at least inconspicuously, documented besides seeming unnecessarily complex.

Thanks in advance for any thoughts.

Kernel tainted and attempted to kill init ubuntu 16.04.06

This is the image of what loads on my screen when I try I try to boot up ubuntu. I don’t know how to fix this error. The Kernel is tainted, and I’m not able to fix anything at the moment because accessing any mode at all leads to this same problem. I have a live disk, but I don’t know ow to fix this problem with it. I know reinstalling would be a solution but is there any way to fix this without doing that? Please help. Thanks!

How to add device aibs to kernel configuration file?

I have an asus laptop, which I have installed in Ubuntu 18.04, Everything works fine but the fans. They make a lot of noise and work always in maximum speed. So I have tried to work this out using pwmConfig, but sensors command does not show any fan. The solution to that is to add device aibs driver to the kernel configuration file or place this line “aibs_load=”YES” in loader.conf file as mentioned here http://manpages.ubuntu.com/manpages/bionic/man4/aibs.4freebsd.html. My problem is I didn’t figure out how to do either of the two methods. How To compile this driver into the kernel? Or how to load the driver as a module at boot time ?