OS Version: 5.9.14-arch1-1 Kernel
I am trying to figure out how I can load the whole
/
directory into the RAM when starting up.
I found a little helper here:
https://github.com/arcmags/ramroot
So, when the ramroot
hook starts to run, it will set up the zram module:
modprobe zram
Next, we will allocate some memory with...
zramctl -f -s 10M
When my OS is started up, this command works fine and I can mount the zram0
device.
But in this boot mode, I get this error:
/dev/zram0: failed to set disksize (.... bytes): Cannot allocate memory
Does anyone know where the issue may be?
Are there modules missing to get the operation done?
This is my current hook order:
HOOKS=(base udev ramroot autodetect modconf block filesystems keyboard fsck)
Asked by wolfbiker1
(11 rep)
Dec 27, 2020, 02:51 PM
Last activity: Sep 5, 2021, 10:09 PM
Last activity: Sep 5, 2021, 10:09 PM