• We did not send an email asking for donations - please read this post.

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?
 


OP
N

nshiell

New Member
Joined
May 7, 2020
Messages
4
Reaction score
1
Credits
40
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
 
D

Deleted member 101831

Guest
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.
 

craigevil

Well-Known Member
Joined
Feb 24, 2021
Messages
396
Reaction score
390
Credits
2,739
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
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Staff online

Members online


Top