You are not logged in.

#1 2020-09-04 12:45:02

Welt
Member
Registered: 2020-09-04
Posts: 66

[SOLVED] Arch Linux Something is Wrong With Kernel

Guys i have arch linux installed on my pc i am really new to linux. This is my Probe i'm having problems with kernel espacially on the boot it fails to "apply kernel variables".And i tried LTS kernel i had same problem as in stock linux kernel but my system starts after this error. And sometimes on the boot it scans every usb port even tho they doesn't exists i have 3 usb ports it scans 8 of it. When it does this pc won't boots and i'm forced to shut it from power button. After that if i press power button it boots but still getting failed to apply kernel variables but it still boots.

Last edited by Welt (2020-09-04 16:31:25)

Offline

#2 2020-09-04 12:53:15

loqs
Member
Registered: 2014-03-06
Posts: 19,045

Re: [SOLVED] Arch Linux Something is Wrong With Kernel

What is the output of the following:

systemctl status systemd-sysctl.service

Offline

#3 2020-09-04 12:56:06

Welt
Member
Registered: 2020-09-04
Posts: 66

Re: [SOLVED] Arch Linux Something is Wrong With Kernel

loqs wrote:

What is the output of the following:

systemctl status systemd-sysctl.service

* systemd-sysctl.service - Apply Kernel Variables
     Loaded: loaded (/usr/lib/systemd/system/systemd-sysctl.service; static)
     Active: failed (Result: exit-code) since Fri 2020-09-04 14:41:58 +03; 1h 13min ago
       Docs: man:systemd-sysctl.service(8)
             man:sysctl.d(5)
   Main PID: 265 (code=exited, status=1/FAILURE)

Warning: journal has been rotated since unit was started, output may be incomplete.

Last edited by Welt (2020-09-04 13:00:18)

Offline

#4 2020-09-04 13:04:56

loqs
Member
Registered: 2014-03-06
Posts: 19,045

Re: [SOLVED] Arch Linux Something is Wrong With Kernel

The output of the following:

# SYSTEMD_LOG_LEVEL=7 /usr/lib/systemd/systemd-sysctl

# means it should be executed as root.  Please also use code tags,  see the BBCode link at the bottom of the reply box.

Offline

#5 2020-09-04 13:14:04

Welt
Member
Registered: 2020-09-04
Posts: 66

Re: [SOLVED] Arch Linux Something is Wrong With Kernel

loqs wrote:

The output of the following:

# SYSTEMD_LOG_LEVEL=7 /usr/lib/systemd/systemd-sysctl

# means it should be executed as root.  Please also use code tags,  see the BBCode link at the bottom of the reply box.

Parsing /usr/lib/sysctl.d/10-arch.conf
Parsing /usr/lib/sysctl.d/50-coredump.conf
Parsing /usr/lib/sysctl.d/50-default.conf
Parsing /usr/lib/sysctl.d/50-pid-max.conf
Parsing /etc/sysctl.d/99-sysctl.conf
/etc/sysctl.d/99-sysctl.conf:2: Line is not an assignment, ignoring: sysctl vm.swappiness
/etc/sysctl.d/99-sysctl.conf:4: Line is not an assignment, ignoring: sysctl vm.vfs_cache_pressure
Setting 'fs/inotify/max_user_instances' to '1024'.
Setting 'fs/inotify/max_user_watches' to '524288'.
Setting 'kernel/core_pattern' to '|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h'.
Setting 'fs/suid_dumpable' to '2'.
Setting 'kernel/sysrq' to '16'.
Setting 'kernel/core_uses_pid' to '1'.
Setting 'net/ipv4/conf/default/rp_filter' to '2'.
Not setting net/ipv4/conf/all/rp_filter (explicit setting exists).
Not setting net/ipv4/conf/default/rp_filter (explicit setting exists).
Setting 'net/ipv4/conf/enp5s0/rp_filter' to '2'.
Setting 'net/ipv4/conf/lo/rp_filter' to '2'.
Setting 'net/ipv4/conf/wlan0/rp_filter' to '2'.
Setting 'net/ipv4/conf/wlan1/rp_filter' to '2'.
Setting 'net/ipv4/conf/default/accept_source_route' to '0'.
Not setting net/ipv4/conf/all/accept_source_route (explicit setting exists).
Not setting net/ipv4/conf/default/accept_source_route (explicit setting exists).
Setting 'net/ipv4/conf/enp5s0/accept_source_route' to '0'.
Setting 'net/ipv4/conf/lo/accept_source_route' to '0'.
Setting 'net/ipv4/conf/wlan0/accept_source_route' to '0'.
Setting 'net/ipv4/conf/wlan1/accept_source_route' to '0'.
Setting 'net/ipv4/conf/default/promote_secondaries' to '1'.
Not setting net/ipv4/conf/all/promote_secondaries (explicit setting exists).
Not setting net/ipv4/conf/default/promote_secondaries (explicit setting exists).
Setting 'net/ipv4/conf/enp5s0/promote_secondaries' to '1'.
Setting 'net/ipv4/conf/lo/promote_secondaries' to '1'.
Setting 'net/ipv4/conf/wlan0/promote_secondaries' to '1'.
Setting 'net/ipv4/conf/wlan1/promote_secondaries' to '1'.
Setting 'net/ipv4/ping_group_range' to '0 2147483647'.
Setting 'net/core/default_qdisc' to 'fq_codel'.
Setting 'fs/protected_hardlinks' to '1'.
Setting 'fs/protected_symlinks' to '1'.
Setting 'fs/protected_regular' to '1'.
Setting 'fs/protected_fifos' to '1'.
Setting 'kernel/pid_max' to '4194304'.
Setting 'vm/swappiness' to '10'.
Setting 'vm/vfs_cache_pressure' to '50'.

Offline

#6 2020-09-04 13:16:57

loqs
Member
Registered: 2014-03-06
Posts: 19,045

Re: [SOLVED] Arch Linux Something is Wrong With Kernel

/etc/sysctl.d/99-sysctl.conf having invalid contents is causing the service failure.

Offline

#7 2020-09-04 13:35:32

Welt
Member
Registered: 2020-09-04
Posts: 66

Re: [SOLVED] Arch Linux Something is Wrong With Kernel

loqs wrote:

/etc/sysctl.d/99-sysctl.conf having invalid contents is causing the service failure.

vm.swappiness=10                                  
sysctl vm.swappiness
vm.vfs_cache_pressure=50                          
sysctl vm.vfs_cache_pressure

What's the wrong with this file.

Offline

#8 2020-09-04 13:38:22

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Arch Linux Something is Wrong With Kernel

Welt wrote:
loqs wrote:

/etc/sysctl.d/99-sysctl.conf having invalid contents is causing the service failure.

vm.swappiness=10                                  
sysctl vm.swappiness
vm.vfs_cache_pressure=50                          
sysctl vm.vfs_cache_pressure

What's the wrong with this file.

line 2 and 4 are not valid syntax as a start. It is not a shellscript.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2020-09-04 13:39:10

Welt
Member
Registered: 2020-09-04
Posts: 66

Re: [SOLVED] Arch Linux Something is Wrong With Kernel

Mr.Elendig wrote:
Welt wrote:
loqs wrote:

/etc/sysctl.d/99-sysctl.conf having invalid contents is causing the service failure.

vm.swappiness=10                                  
sysctl vm.swappiness
vm.vfs_cache_pressure=50                          
sysctl vm.vfs_cache_pressure

What's the wrong with this file.

line 2 and 4 are not valid syntax as a start. It is not a shellscript.

So how do i fix ?

Offline

#10 2020-09-04 13:39:21

merlock
Member
Registered: 2018-10-30
Posts: 262

Re: [SOLVED] Arch Linux Something is Wrong With Kernel

Welt wrote:
/etc/sysctl.d/99-sysctl.conf:2: Line is not an assignment, ignoring: sysctl vm.swappiness
/etc/sysctl.d/99-sysctl.conf:4: Line is not an assignment, ignoring: sysctl vm.vfs_cache_pressure

Doesn't get much more specific than this.  Delete those lines.

Last edited by merlock (2020-09-04 13:40:12)


Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

Board footer

Powered by FluxBB