swap file on samsung peach?

Ask questions about Arch Linux ARM. Please search before making a new topic.

swap file on samsung peach?

Postby GreenBackbone » Wed Mar 23, 2016 10:19 pm

I'm trying to enable a swap file on my samsung peach archlinux arm instalation.. but get the following error after trying 'swapon /swapfile' :
$ sudo swapon -v /swapfile
swapon /swapfile
swapon: /swapfile: found swap signature: version 1d, page-size 4, same byte order
swapon: /swapfile: pagesize=4096, swapsize=1073741824, devsize=1073741824
swapon: /swapfile: swapon failed: Invalid argument

my usb/mmc boot was disabled after installing arch so i cant create a partition for swap unless i go back to chromeos and reinstall.. is that my only option?
GreenBackbone
 
Posts: 12
Joined: Wed Mar 23, 2016 9:57 pm

Re: swap file on samsung peach?

Postby syg00 » Thu Mar 24, 2016 12:22 am

How did you create the swapfile - note the caveats in the manpage(s).
I'd just recreate the file using dd to make sure the file has no holes, then mkswap again.
syg00
 
Posts: 15
Joined: Sat Mar 12, 2016 1:30 am

Re: swap file on samsung peach?

Postby GreenBackbone » Thu Mar 24, 2016 1:36 am

Thankyou for your answer
originaly i created the file with fallocate
and i just tried again with dd
got the same error:


[rastamanking@GreenBranch ~]$ sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 51.5727 s, 20.8 MB/s
[rastamanking@GreenBranch ~]$ sudo chmod 600 /swapfile
[rastamanking@GreenBranch ~]$ sudo mkswap /swapfile
Setting up swapspace version 1, size = 1024 MiB (1073737728 bytes)
no label, UUID=af032c57-c882-4847-9083-a9eddcad02bc
[rastamanking@GreenBranch ~]$ sudo swapon -v /swapfile
swapon /swapfile
swapon: /swapfile: found swap signature: version 1d, page-size 4, same byte order
swapon: /swapfile: pagesize=4096, swapsize=1073741824, devsize=1073741824
swapon: /swapfile: swapon failed: Invalid argument
GreenBackbone
 
Posts: 12
Joined: Wed Mar 23, 2016 9:57 pm

Re: swap file on samsung peach?

Postby syg00 » Thu Mar 24, 2016 2:19 am

What filesystem are you using ?.
syg00
 
Posts: 15
Joined: Sat Mar 12, 2016 1:30 am

Re: swap file on samsung peach?

Postby GreenBackbone » Thu Mar 24, 2016 7:59 am

my root file system is ext4, i don't have any other partitions aside from the kernel wich is unknown.
any ideas? i really dont want to re-install, but i will if its the only option i have,
this netbook needs the swap, after boot i only have 1.1G ram free out of 2G and im running xfce..
also, i have no idea if it will accept a swap partition or if it will return the same error...
GreenBackbone
 
Posts: 12
Joined: Wed Mar 23, 2016 9:57 pm

Re: swap file on samsung peach?

Postby syg00 » Thu Mar 24, 2016 9:21 am

$this->bbcode_second_pass_quote('', 'm')y root file system is ext4, i don't have any other partitions aside from the kernel wich is unknown.
Sorry, that doesn't make any sense to me. Can you run these and post the output$this->bbcode_second_pass_code('', 'df -hT
lsblk -f')
syg00
 
Posts: 15
Joined: Sat Mar 12, 2016 1:30 am

Re: swap file on samsung peach?

Postby GreenBackbone » Thu Mar 24, 2016 11:29 pm

here are the results, thank you for your help:

$this->bbcode_second_pass_code('', 'df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/root ext4 15G 5.3G 8.4G 39% /
devtmpfs devtmpfs 1001M 0 1001M 0% /dev
tmpfs tmpfs 1001M 0 1001M 0% /dev/shm
tmpfs tmpfs 1001M 540K 1000M 1% /run
tmpfs tmpfs 1001M 0 1001M 0% /sys/fs/cgroup
tmpfs tmpfs 1001M 8.0K 1001M 1% /tmp
tmpfs tmpfs 201M 8.0K 201M 1% /run/user/1001')

$this->bbcode_second_pass_code('', 'lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
mmcblk0rpmb
mmcblk0boot0
mmcblk0boot1
mmcblk0
├─mmcblk0p1
└─mmcblk0p2 ext4 38fc5ce4-7e0a-47e5-a3b6-39907d10013d /')
GreenBackbone
 
Posts: 12
Joined: Wed Mar 23, 2016 9:57 pm

Re: swap file on samsung peach?

Postby Abzie » Thu Mar 24, 2016 11:51 pm

Abzie
 
Posts: 29
Joined: Tue Mar 15, 2016 6:05 pm

Re: swap file on samsung peach?

Postby GreenBackbone » Fri Mar 25, 2016 2:35 am

$this->bbcode_second_pass_quote('Abzie', 'h')ttps://wiki.archlinux.org/index.php/swap#Swap_file_creation


thank you fo the link, but as you can see in my previous post those are the exact commands i enttered first with fallocate and then as suggested with dd ..

any other ideas?
GreenBackbone
 
Posts: 12
Joined: Wed Mar 23, 2016 9:57 pm

Re: swap file on samsung peach?

Postby Abzie » Fri Mar 25, 2016 7:57 am

What's the output of:
$this->bbcode_second_pass_code('', 'cat /proc/swaps')

And

$this->bbcode_second_pass_code('', 'dmesg | grep swap')
Abzie
 
Posts: 29
Joined: Tue Mar 15, 2016 6:05 pm

Next

Return to User Questions

Who is online

Users browsing this forum: No registered users and 5 guests