![](https://seccdn.libravatar.org/avatar/7ec4c6d48964b25c3232ec6b29240b2a.jpg?s=120&d=mm&r=g)
I have tried to make a swapfile since my system currently swaps to another drive that I wish to remove. I used the commands: fallocate --length 16GiB swapfile to make a file with no holes mkswap -c -L swap0 /home/swapfile mkswap: /home/swapfile: warning: wiping old swap signature. Setting up swapspace version 1, size = 16777212 KiB LABEL=swap0, UUID=5ae6fd77-4892-4388-902b-ba81181dc255 swapon -v /home/swapfile swapon /home/swapfile swapon: /home/swapfile: found swap signature: version 1d, page-size 4, same byte order swapon: /home/swapfile: pagesize=4096, swapsize=17179869184, devsize=17179869184 swapon: /home/swapfile: swapon failed: Invalid argument Exit 255 I do not know how to translate the "Invalid argument". This used to work, but it has been awhile since I did it. Did I leave something out? The mkswap check is: mkswap -c -L swap0 /home/swapfile mkswap: /home/swapfile: warning: wiping old swap signature. Setting up swapspace version 1, size = 16777212 KiB LABEL=swap0, UUID=56ba4a10-cdcf-48d3-ba58-0a5f61807c60 Nothing appears wrong here. I used journalctl and could not find any info. But dmesg says: [ 2887.519535] swapon: swapfile has holes. I guess I need to know more journalctl. I though it was as replacement for var/log/messages, which always had the dmesg output. So how does one make a swapfile with no holes? The manpage for mkswap implies that fallocate, over cp, is a better way. Please advise. Thanks don -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org