Package: zram-tools
Version: 0.3.3.1-1
Severity: important

Zram does not start when I launch my computer :

root@PC:~# systemctl status zramswap.service
[zramswap[4580]: /usr/sbin/zramswap: ligne 53 : echo: erreur d'écriture :
Périphérique ou ressource occupé]

It refers to lign 53 which is :
    echo -n "${ALGO}" > /sys/block/zram0/comp_algorithm || elog "setting
compression algo to ${ALGO}"

When I try to write in this file, it fails :
root@PC:~# echo -n "lz4" > /sys/block/zram0/comp_algorithm
-bash: echo: erreur d'écriture : Périphérique ou ressource occupé

root@PC:~# ls -al /sys/block/zram0/comp_algorithm
-rw-r--r-- 1 root root 4096  5 mai   20:09 /sys/block/zram0/comp_algorithm
root@PC:~# ls -al /sys/devices/virtual/block/zram0/comp_algorithm
-rw-r--r-- 1 root root 4096  5 mai   20:09
/sys/devices/virtual/block/zram0/comp_algorithm
root@PC:~# echo $UID
0
root@PC:~# mount
[sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)]

I can't modify or delete this particular file, and Zram can't start without
modifying it.

Sorry for the french in the messages and for the quality of my report, it's
only my second.


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-6-amd64 (SMP w/2 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not
set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zram-tools depends on:
ii  bc  1.07.1-2+b2

Reply via email to