Questions tagged [linux-kernel]

This tag is for questions about the internals of the Linux kernel itself - particularly about use or configuration of kernel modules or drivers.

Filter by
Sorted by
Tagged with
1 vote
1 answer
2k views

How do I install the newest Linux kernel (6.5 currently) on Linux Mint (21.2 Victoria currently)

I know how to use Mainline, and can install that kernel, but the headers require a newer libc (>= 2.38) than what’s installed (2.35-0ubuntu3.1), and I need the headers to build two modules (...
user avatar
0 votes
0 answers
238 views

Configure amount of reserved memory for Linux kernel

I am running Linux on an embedded device with 64MB of physical RAM. Linux prints the following message when it boots: [ 0.000000] Memory: 58944K/65536K available (3072K kernel code, 576K rwdata, 832K ...
utnd03's user avatar
  • 1
0 votes
0 answers
45 views

Using ebtables with hostapd to block outbound access from an IoT network

I have a Raspberry Pi set up to control a number of local IoT devices, and needed them connected to the Internet to set them up initially, but want to prevent them from "phoning home" to a ...
Curtis Parfitt-Ford's user avatar
0 votes
0 answers
37 views

executing bash script on rotation with iio-sensor-proxy

I have a Tablet-laptop where i want to disable a gnome extension when the screen is rotated. Auto-rotation works via iio-sensor-proxy. it would be stupid to poll monitor-sensor constantly for resource ...
definitiv's user avatar
0 votes
1 answer
257 views

How to install specific kernel version on ubuntu, which disappeared already from repo `deb http://archive.ubuntu.com/ubuntu/`

My current kernel version is "5.15.0-73-generic". There is some "leading" crypto company, which offers product to strenghten company machines, and our company bought their product ...
Martin Mucha's user avatar
1 vote
1 answer
106 views

Linux from Scratch: can't connect to home WLAN

I started building LFS to learn more about linux internals. I struggel to configure WLAN and can't even narrow down the problem. On my laptop I have a dual boot (ubuntu 22 and LFS 11.3) and on ubuntu ...
Amit's user avatar
  • 23
0 votes
1 answer
32 views

Why does it go through netfilter postrouting when visiting local ports?

Environment: [root@VM-32-4-centos ~]# uname -r 3.10.0-514.26.2.el7.x86_64 I have set log printing in the following chain: [root@VM-32-4-centos ~]# iptables -A INPUT -p tcp --dport 8000 -j LOG --log-...
user1795323's user avatar
-4 votes
1 answer
368 views

Can't login to Ubuntu in virtual machine

When I updated the system, and then I restarted the machine, I don't know why it's showing this picture: Can someone solve this problem? I tried to restart the machine again and again, but its still ...
user avatar
1 vote
1 answer
242 views

Linux Kernel Compilation: Debug info generated albeit disabling `DEBUG_INFO`

I regularly compile Linux kernel on my own. For speed issues, I would like to omit debug information. A minimal way that reproduces the problem is make localmodconfig scripts/config --disable ...
Max Görner's user avatar
0 votes
0 answers
266 views

Not turning off completely the system. its going to the halt mode in Fedora

some time when i want to shutdown the system in fedora, the system not shutdown completely. in this problem screen is off but fan is working Not sure if this is relevant,but there are several errors ...
furton's user avatar
  • 1
1 vote
2 answers
438 views

LFS 11.2 on Ubuntu Server 22.04: chroot: failed to run command ‘/usr/bin/env’: No such file or directory

I have been following the LFS 11.2 guide and it has gone smoothly up until the chroot part. Although the symlinks have created properly i.e. relative to the LFS directory, the error is still ...
Abhinav Gupta's user avatar
3 votes
2 answers
3k views

Fedora 37 VirtualBox Error "vboxdrv kernel module is not loaded" and "Kernel driver not installed (rc=-1908)"

(I already tried things from answers in similar questions to this one) Fedora Linux 37 (Workstation Edition) x86_64, kernel: 6.0.7-301.fc37.x86_64 I installed VirtualBox with sudo dnf install ...
metramarta's user avatar
0 votes
1 answer
544 views

Disable autoremove of old kernel versions on Fedora 37

Somewhy i can't boot on kernel version higher than 6.0.7-301 (more here). Recently Fedora automatically downloaded kernel 6.1.10, and after a few days 6.1.11. Both of them, as i said, i can't use for ...
metramarta's user avatar
0 votes
1 answer
715 views

Cannot upgrade linux kernel due to space, but cannot remove older ones

uname -r 5.15.0-60-generic My apt upgrade is failing with: Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done Get more ...
Nik's user avatar
  • 447
1 vote
0 answers
191 views

Second nvme missing in /dev/ after kernel upgrade

I have been pushing back my kernel upgrades on my arch machine because after upgrading from 5.14.9 my secondary nvme is not populated into /dev/ anymore. But I want to tackles this now, hopefully with ...
ccman's user avatar
  • 11
0 votes
1 answer
756 views

Fedora 37 Infinite boot on kernel 6.1.9-200 (and higher)

Fedora Linux 37 (Workstation Edition) x86_64 GNOME 43.2 Kernel: 6.1.7-200.fc37.x86_64 After selecting kernel 6.1.9 while boot (which is chosen by default) I'm having infinite black screen with ...
metramarta's user avatar
0 votes
0 answers
143 views

Can we ditch the Linux initial ramdisk if we don't use loadable modules?

I'd like to boot an embedded machine without using a ramdisk image. I understand one of the reasons for the ramdisk is so it can load the filesystem module needed for accessing the root partition (to ...
Synthetix's user avatar
  • 247
1 vote
0 answers
182 views

net.core.netdev_max_backlog - what's the impact when set too HIGH?

I'm working on optimizing and right-sizing my EC2 syslog-ng servers and have some carryover settings in our ansible playbook for kernel settings that were used on "in-house" data center ...
jasonr's user avatar
  • 11
0 votes
0 answers
152 views

How can I install Kernel 5.17 on CentOS 7?

On a CentOS 7.9 installation I have some troubles running newer CPUs, e.g Ryzen 5 5600G (with included graphics). I concluded that it is the Kernel because it boots with certain versions, with kernel ...
adrianTNT's user avatar
  • 242
2 votes
1 answer
383 views

Is there anything preventing modifying linux's tcp stack to have over 65,535 ports?

I was reading this and started to wonder of there was anything preventing me from just modifying a copy of the linux tcp stack to support more than a 16-bit header to allow for more ports. Would this ...
Lei Adair's user avatar
3 votes
1 answer
5k views

High System CPU usage on Linux

We have an unusual problem where some of our Linux servers are going into a state where the CPU utilisation is very high and when we dig down, most of it is in kernel space. The %sys utilisation is 80%...
StarNix's user avatar
  • 141
0 votes
1 answer
2k views

Change default kernel for an AWS instance running Ubuntu 18.04

1. Problem summary I have an instance on AWS running Ubuntu 18.04. The kernel version is 5.4.0. I have installed kernel 4.15.0 but I am failing to set it as the default. 2. What I have tried A) I set ...
Tugees's user avatar
  • 1
0 votes
1 answer
126 views

Can't open pseudoterminals from local following an update on Arch

I did a complete update (via yay->pacman), restarted, and now I seemingly can't open any pseudoterminals. All I can do is switch to TTY/teletype terminals. If I try to open a terminal app, it just ...
Dustin Oprea's user avatar
1 vote
0 answers
638 views

Fedora 35: Switch back to stock kernel?

A few months ago I built a new machine and installed Fedora on it. At the time, 5.15 was the latest "stock" kernel, but I needed some of the Alder Lake fixes/improvements from 5.16 and 5.17,...
David's user avatar
  • 11
1 vote
1 answer
141 views

linux-ck-ivybridge stuck on 5.12.18-1

I use the CPU optimized kernel linux-ck-ivybridge on Arch Linux using the repository below, however for unknown reasons pacman has stopped upgrading the kernel since July 2021. It is also not listed ...
Konrad Höffner's user avatar
1 vote
0 answers
2k views

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000005

I'm pretty new to embedded linux and I would really appreciate a bit of help. I'm trying to run a linux kernel on the risc-v fpga. I built linux 5.0.0 with busybox initramfs and compiled with this ...
lemoncake's user avatar
1 vote
1 answer
2k views

UEFI Variable Storage (removing /sys/firmware/efi dump files) when Kernel Variables CONFIG_EFIVAR_FS & CONFIG_EFI_VARS both =y as in Ubuntu 20.04

In the Arch Wiki I see that the two kernel variables CONFIG_EFIVAR_FS & CONFIG_EFI_VARS should be set =y and =n respectively. Arch says, "This option should be disabled to prevent any ...
Diagon's user avatar
  • 726
0 votes
1 answer
61 views

KVM 3.1.1 installation

I have a requirement to install KVM 3.1.1 on RHEL7 or 8. When I am checking I found that qemu-kvm is automatically installed on RHEL8 and the version is 4.2. It would be great if anyone can share the ...
MOBIN TM's user avatar
0 votes
0 answers
100 views

Linux System goes back to vendor's default config after reboot

I hope everyone is 0k. I have embraced Linux systems for around 3-4 years now, I am not what you called an expert nor a rookie. Anyway, I have a NAS device running BusyBox v1.20.2 - Linux version 3.2....
leosilvapaiola's user avatar
1 vote
1 answer
2k views

How to use dracut in chroot environment established through SLES15 Rescue boot image?

To fix an unbootable SLES15 system, I booted the Rescue image, mounted the existing system to /mnt, and then did chroot /mnt (I'm leaving out the details, as those are probably known (or found in How ...
U. Windl's user avatar
  • 547
2 votes
1 answer
803 views

HDD I/O error after high multithreading usage

I have a computer with 64 physical cores (AMD Ryzen Threadripper PRO 3995WX 64-Cores), with two threads per core capability (that is, 128 logical cores), running on Ubuntu 20.04.3 LTS. Recently, I ...
user1655769's user avatar
3 votes
0 answers
2k views

Connecting two monitors at boot causes Linux kernel to hang when enabling KMS

When two monitors are connected at boot, the Linux kernel completely hangs at fb0: switching to i915 from EFI VGA. The screens stay on and continue displaying the last message, but everything is ...
Mastax's user avatar
  • 116
1 vote
1 answer
2k views

Defragment BTRFS to change the compression level

I can do: btrfs filesystem defragment -rvf -czstd ./ But not: btrfs filesystem defragment -rvf -czstd:1 ./ I get the error: ERROR: unknown compression type zstd:1 Is there any way to change the ...
London Smith's user avatar
0 votes
1 answer
3k views

How to disable features in an xfs file system to make it compatible with an older kernel?

I am using a rocky8 system on which I need to build, install and run a 3.10 kernel. I managed to get it to build and install, but when booting it up I get the error message: XFS (sda1): Superblock has ...
feeling_lonely's user avatar
1 vote
1 answer
367 views

linux-firmware apt package VS fwupd tool: Are they doing same thing?

I noticed here two things about firmware: 1. apt list linux-firmware https://launchpad.net/ubuntu/+source/linux-firmware $ apt list linux-firmware -a Listing... Done linux-firmware/focal-updates,focal-...
yurenchen's user avatar
  • 385
0 votes
1 answer
572 views

centos7 crash when systemctl start docker successed

[phenomenon] 1、I enter the command systemctl start docker from centos7, the centos7 crashed after docker successfully started.(It's reproducible) 2、Docker used to be available until I ran 3 ZooKeeper. ...
ryanstian's user avatar
1 vote
0 answers
230 views

Linux USB mass storage gadget issues with large drives

I'm trying to make a linux device act as a large USB drive with a USB port in OTG/device mode. The g_mass_storage module works well with backing files up to 2Tb of size, but I can't find a way to ...
Burner's user avatar
  • 11
0 votes
1 answer
380 views

Remove kernels installed from source from Fedora 34

I have compiled and installed a linux kernel from source, installing it with sudo make install, but the system failed to boot. How can I remove the kernel installed as such?
robertspierre's user avatar
0 votes
0 answers
1k views

iptables use to ignore TCP packets. Not reject But ignoring including syc comning in but nothing is done

I like to simulate TCP connection in Server-client using layer 2 sockets for receiving packets and sending packets using Packet MMAP or DPDK or netfilters and dev_xmit for this to come any close to ...
user786's user avatar
  • 133
0 votes
1 answer
386 views

Is it possible to build Linux kernel inside an LXC container?

I would like to build an optimized kernel for a machine that runs Ubuntu 20.04 but in my scenario I cannot "pollute" the Linux installation with all the dependencies required to do the build....
Steak Overflow's user avatar
0 votes
0 answers
749 views

location of kernel source code directory in centos 7

I wanted to enable a specific feature in centos 7 kernel. What is the exact location of kernel directory in centos 7.4, so that I can lauch this command successfully inside the kernel source code ...
Sumeet Boga's user avatar
0 votes
1 answer
321 views

Linux Kernel support for ARM Cortex-A78

I am planning to boot Linux for an ARM Cortex A78 based system. And I have some doubts about the same. 1. Which kernel version should I select ? I checked 5.4.112, 5.10.30, 5.11.14, 5.12-rc7 kernels, ...
Maunik Patel's user avatar
1 vote
0 answers
433 views

Linux system completely freezes "CPU Stuck for 22 seconds"/ Hardware Error?

I have got the issue of regular freezes on my ryzen 5 computer. It occurs across different distibutions and kernels. The freezes occur mostly when trying to suspend the system to ram, but also changes ...
dosensuppe's user avatar
0 votes
0 answers
429 views

High CPU load on SYN flood

When being under SYN flood attack, my CPU reach to 100% in no time by the kernel proccess named ksoftirqd, I tried so many mitigations but none solve the problem. This is my sysctl configurations ...
iTaMaR's user avatar
  • 3
1 vote
0 answers
250 views

Freshly installed Manjaro linux doesn't show up wifi

I just installed Manjaro on my dell latitude 7389. Wifi worked just fine right after I installed. but after I did a full upgrade with "pacman -Syu" wifi stopped working. ethernet and ...
M MO's user avatar
  • 111
1 vote
1 answer
34 views

Downloading Terraform onto linux OCI VM

I am currently trying to play around with some tf scripting in an OCI compartment I have access to. My current position is: I have successfully spun up a VM through the OCI console running Linux 8 on ...
user avatar
1 vote
0 answers
64 views

enable zswap selectively per-device?

Is it possible to enable zswap for some swap devices but not for others? I don't see any tunables, and quick checks show that even zram swaps end up using zswap (leading to double compression). Once /...
usretc's user avatar
  • 217
0 votes
1 answer
181 views

Compiling Linux creates corrupted object files

I'm trying to update my current system to Linux 5.4.85. I have two toolchains that support compiling this kernel: gcc 4.6.3 and gcc 10.2.1. The compilation fails with both. I downloaded and extracted ...
Michael K's user avatar
1 vote
1 answer
7k views

How to fix nvidia-current not found after modprobe?

I'm using Debian 10 (Buster) with a NVidia GT630 graphics card on a i386 system. apt install nvidia-driver installed nvidia-legacy-390xx drivers. Unfortunately the kernel module doesn't load (output ...
lmoly's user avatar
  • 230
1 vote
0 answers
718 views

Unable to login after switching to "multi-user" target in Yocto Linux

I have a device running yocto(warrior) and selinux is enabled by default. I am unable to login to device if I switch to multi-user target. If I change selinux in permissive mode, I am able to login ...
Raxesh Oriya's user avatar

1
2 3 4 5
10