vaeth / zram-init

A wrapper script for the zram linux kernel module with zsh and openrc support
http://www.mathematik.uni-wuerzburg.de/~vaeth/download/index.html#zram-init
79 stars 26 forks source link

zram1 in /tmp not possible? #37

Closed mpotane closed 3 years ago

mpotane commented 3 years ago

mkfs.ext4: Invalid argument while setting blocksize; too small for device

mkfs.ext4 /dev/zram1 failed

mpotane commented 3 years ago

mkfs.ext4: Invalid argument while setting blocksize; too small for device

mkfs.ext4 /dev/zram1 failed

On artix linux openrc btw

vaeth commented 3 years ago

mkfs.ext4: Invalid argument while setting blocksize; too small for device

Probably the specified combination of inodes, iratio, blocksize and total size of the device makes no sense.

mpotane commented 3 years ago

Using only 1 device pointing to zram0, I think that most linux distro uses /var/tmp.

vimtoe commented 1 year ago

I am having the exact same problem here too, unfortunately. How was this problem fixed @mpotane @vaeth ??? My device has both /tmp and /var/tmp if that helps?? I am on Alpine Linux (latest build).

vaeth commented 1 year ago

It is up to you to specify the blocksize or other parameters appropriately in the configuration. The script is only a helper to pass these parameters and intentionally does noi checking.