From cd357a2b037274ad9d501009c2e5627e0785cdb6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 28 Feb 2020 13:34:55 +0000 Subject: [PATCH] zramctl: improve module loading examples (#3870) * zramctl: improve module loading examples * zramctl: update see also equivalent * zranctl: fix syntax error --- pages/linux/zramctl.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/linux/zramctl.md b/pages/linux/zramctl.md index 183058c5de..a4ed2e9eff 100644 --- a/pages/linux/zramctl.md +++ b/pages/linux/zramctl.md @@ -1,13 +1,17 @@ # zramctl > Setup and control zram devices. -> Use `mke2fs` or `mkswap` to format zram devices to partitions. +> Use `mkfs` or `mkswap` to format zram devices to partitions. - Check if zram is enabled: `lsmod | grep -i zram` -- Enable zram with 2 devices (use `zramctl` to configure the devices further): +- Enable zram with a dynamic number of devices (use `zramctl` to configure devices further): + +`sudo modprobe zram` + +- Enable zram with exactly 2 devices: `sudo modprobe zram num_devices={{2}}`