On Mon, Jun 17, 2024 at 08:02:47PM +1200, Barry Song wrote: > I did everything the same as above, > but always got failure at the last step to swapon: > /mnt/test # swapon swapfile > swapon: /mnt/test/swapfile: swapon failed: Invalid argument You are probably missing CONFIG_NFS_SWAP=y in your .config.