This might be a newbie question: I activated ZRAM using the openhabian-config tool. But when I want to check the status with zramctl I get: “-bash: zramctl: command not found”. Similar result with sudo zramctl. Im using openHAB 2.5 stable. What am I doing wrong?
/sbin/zramctl or add
/sbin to your path.
Thanks, but this does not work. It results in:
-bash: /sbin/zramctl: File or Directory not found.
ls /sbin/ shows that there is no file “zramctl”. Is there a different path on Raspian? Could it be that ZRAM is not properly installed?
As far as I know ZRAM is not installed on Raspian by default, only on OpenHABian.
Ok. But I’m using OpenHABian. As I said: I installed ZRAM using openhabian-config.
what HW and OS? Did you use the image ?
[13:40:10] openhabian@openhabianpi:~/openhabian-zram$ dpkg -S /sbin/zramctl util-linux: /sbin/zramctl
So install the
I’m using Raspi 3B with Raspian:
cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
util-linux package was already installed:
[17:06:59] openhabian@openHABianPi:~$ sudo apt-get install util-linux Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig util-linux ist schon die neueste Version. 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 4 nicht aktualisiert.
Raspbian or the openHABian image based on Raspian lite ?
A possible explanation is the
util-linux package didn’t contain the
zramctl binary by the time you installed.
Removing (purge, eventually) and re-adding should fix it I guess (unless you use a bad Raspbian repo).
I use the openHABian image based on Raspian lite.
I purged util-linux (which is frightening due to all the warnings about uninstalling an essential package) and reinstalled it. But no change. zramctl is still not available.
BTW: If I try to uninstall ZRAM using openhabian-config I get a strange message:
A not supported option was selected (probably a programming error): " | Uninstall ZRAM"
I think I better stay away from this “feature”: never change a running system.