I'd like to set one of my two regular swap partitions as backing_dev for my zram swap.
The error in the script is:
/sbin/zram-init: Line 13: printf: Write error: The device or resource is busy
I thought this would mean that the disksize is already set, but if I raise the size so it doesn't fit, the error about that comes after the "busy" warning, so the order is definitely correct.
I tried with turned on and off swap partition. Then I found out, by doing things manually, that the error comes from writing into /sys/block/zram0/backing_dev -- No matter what I try to write in there, it doesn't work.
Currently I am pretty sure that I am doing something wrong. What could that be?
Kernel is gentoo-5.0.5, zstd is enabled and built in.
Hi,
I'd like to set one of my two regular swap partitions as backing_dev for my zram swap.
The error in the script is:
/sbin/zram-init: Line 13: printf: Write error: The device or resource is busy
I thought this would mean that the disksize is already set, but if I raise the size so it doesn't fit, the error about that comes after the "busy" warning, so the order is definitely correct.
I tried with turned on and off swap partition. Then I found out, by doing things manually, that the error comes from writing into /sys/block/zram0/backing_dev -- No matter what I try to write in there, it doesn't work.
Currently I am pretty sure that I am doing something wrong. What could that be?
Kernel is gentoo-5.0.5, zstd is enabled and built in.