New answers tagged

-1 votes

is stat(2) read-after-write consistent with write(2)?

stat retrieves the st_size as well as other informations (metadata) from the inode : …Each file has an inode containing metadata about the file. An application can retrieve this metadata using stat(2)...
MC68020's user avatar
  • 6,784
1 vote
Accepted

Why do /dev/ramX devices have all 0's in /proc/diskstats?

Ramdisks /dev/ram* (or rather the brd module) don't bother updating stats (*), for efficiency reasons I guess. If you don't mind a small overhead, here is a workaround: use the device-mapper to create ...
xhienne's user avatar
  • 17.6k
0 votes

Ubuntu 22.04 iptables command not working

On Ubuntu 22.04 nftables is used by default. What’s new in Security for Ubuntu 22.04 LTS? nftables as the default firewall backend Firewalling on Linux consists of two components – the firewall ...
GAD3R's user avatar
  • 64.3k
1 vote

What should do to generate a minimal Linux kernel?

I figured out my way to generate a minimal Linux kernel. Here it is. Follow the normal and common way to run make menuconfig to go through tons of configurations and disable what is NOT used/needed, ...
wangt13's user avatar
  • 387
1 vote
Accepted

How to disable the Linux page cache

I think that we shouldn't try to bypass the page cache on a block device like HDDs and SSDs. That's because the granularity of such disks is block (512B, 4KB or something else), however, the r/w ...
Ownsky's user avatar
  • 786
1 vote
Accepted

nftables: Are chains of multiple types all evaluated for a given hook?

TL;DR When doing an experiment where a network namespace receives traffic and does NAT on it, one can see that whatever the priority given to the type nat hook prerouting chain, it doesn't matter with ...
A.B's user avatar
  • 33.5k
0 votes

When and where are the standard in, out, and error file descriptors first opened in linux?

No, the kernel does not care. They are opened in early startup userspace code, before entering main()
Cristian Rodríguez's user avatar
4 votes

How to disable the Linux page cache

It is not possible, even temporarily, to disable the page cache. One particular application can however indeed try its best to bypass caches by open_ing files with the O_DIRECT flag set : O_DIRECT ...
MC68020's user avatar
  • 6,784
0 votes

Is there a plain GNU/Linux OS?

What you are looking for is BSD: FreeBSD, NetBSD, OpenBSD. Here is a discussion about differences with Linux and a nice genealogy diagram.
lalebarde's user avatar
  • 203
1 vote

Process appears with square brackets ([]) around name after being SIGKILL'd

The short answer is in the ps man page: Sometimes the process args will be unavailable; when this happens, ps will instead print the executable name in brackets. What this means is that the procps ...
Craig Small's user avatar
1 vote

Lenovo screen backlight can not set with brightness function Fn keys

I like to control backlight with use of the light utility (in Ubuntu, it is in the package light). So on sway, Ubuntu, I did this: sudo apt install light vim .config/sway/config Add these lines ...
LvargaDS's user avatar
1 vote
Accepted

Unable to install any packages Ubuntu 23.10

This is now a known bug and has been submitted by another person on launchpad. The link to the bug report is here.
LtMuffin's user avatar
3 votes

How to disable core dump of a specific process (Syslog-ng in my case) of Systemd

According to ArchWiki, the systemd service running syslog-ng is named [email protected] in Arch. Run systemctl edit [email protected], and type in the following lines: [Service] ...
telcoM's user avatar
  • 90.7k
1 vote

Unable to install any packages Ubuntu 23.10

In this answer I am presuming that the root file system has been damaged and that you need to fix it. This is not normally something anyone should do without great care. See if you can find someone to ...
rivimey's user avatar
  • 216
-1 votes

Detached LUKS-header on Debian-based GNU/Linux

It is not required to configure any hooks or parameters with initramfs-tools or other configurations in Debian? In Arch Linux, it is necessary to configure hook scripts with mkinitcpio in order to ...
andrescmarin's user avatar
1 vote
Accepted

Kernel-mounted vs FUSE-mounted exfat filesystem

Fuse was added on 2005-09-09, that's probably Linux ~2.6.18, far earlier than Linux 5.4 Does incorporation of support for exfat filesystems mean that the exfat-fuse package is no longer required? ...
Artem S. Tashkinov's user avatar
0 votes

how to install libc6 2.34 from sources?

It is better to build the kernel by yourself. According to my tests, when using make-kpkg to build the deb package of the kernel, only the kernel package matching the current system environment (libc6)...
Elsu YAZZIE's user avatar
4 votes
Accepted

select() marks a FD to be readable, but there is no data to be read

This is correct behaviour. You cannot be sure that a connection still sits on the accept-queue if you do an accept() after a select() since the connection can already be terminated by the initiator or ...
ctrl-d's user avatar
  • 952
1 vote
Accepted

What's the difference between the kernel boot parameters nohz_full and isolcpus=nohz

Initially, the nohz_full kernel parameter was meant to only (*) : set the specified list of CPUs whose tick will be stopped whenever possible. When isolcpus was meant to (*) : Specify one or more ...
MC68020's user avatar
  • 6,784
4 votes
Accepted

What does driver rejects match -19 mean?

Regarding most recent Linux kernel, the error reported in OP comes following some code in /drivers/base/dd.c : if (dev->bus->probe) ret = dev->bus->probe(dev); else if (drv-...
MC68020's user avatar
  • 6,784

Top 50 recent answers are included