Trying to create a swapfile

nshiell

New Member
Joined
May 7, 2020
Messages
4
Reaction score
1
Credits
40
I have an ASUS C101P Chromebook
I have followed some guides to build a working Arch with a custom Kernel

As root I issue the commands:
dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress
chmod 600 /swapfile
mkswap /swapfile

swapon /swapfile

When I run swapon I see:
swapon: /swapfile: swapon failed: Invalid argument

Is there anything I can do to have swap?
 


Thanks, I was acutally using that page, so I'm still stuck
I think it's either the Kernel doesn't support it somehow
Or the way Chrome devices do partitions etc might be incompatabile with swaping
 
There's some Arch users on the forum perhaps they will be able to help out.

I tried Arch and it was frustrating as hell and to time consuming for me plus I ain't got the patience for Arch to many other distros that work OOTB.
 
zram is great

I use it on my raspberry pi 400:
Code:
Swap:
  ID-1: swap-1 type: zram size: 3.91 GiB used: 19.2 MiB (0.5%) priority: 100
 

Members online


Latest posts

Top