Cannot use swap file

This forum is for all other ARMv5 devices

Cannot use swap file

Postby JvdS » Mon Nov 28, 2011 4:04 pm

Hi all,

Pogoplug works fine with ArchLinux, except when running sabnzbd (too much memory usage).
I have followed the instructions to create a swap file:
$this->bbcode_second_pass_code('', 'dd if=/dev/zero of=/swapfile.img bs=1M count=512')

Also tried to create a swap file on my connected external drive (2tb, hfs+):
$this->bbcode_second_pass_code('', 'dd if=/dev/zero of=/media/hd-sdb2/swapfile.img bs=1M count=512')

Creating the swap file works fine on both locations, but when running the swapon it gives the following error:
$this->bbcode_second_pass_code('', '[root@pogo /]# swapon /media/hd-sdb2/swapfile.img
swapon: /media/hd-sdb2/swapfile.img: read swap header failed: Invalid argument
')
JvdS
 
Posts: 3
Joined: Mon Nov 28, 2011 3:59 pm

Re: Cannot use swap file

Postby WarheadsSE » Mon Nov 28, 2011 4:29 pm

you have to run mkswap on it first, not just point the kernel at a zero-filled file.

Review http://archlinuxarm.org/support/guides/ ... g-swapfile
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot use swap file

Postby JvdS » Mon Nov 28, 2011 4:31 pm

I feel stupid! :oops:

Thanks for helping me out!!
JvdS
 
Posts: 3
Joined: Mon Nov 28, 2011 3:59 pm

Re: Cannot use swap file

Postby WarheadsSE » Mon Nov 28, 2011 4:37 pm

No problem, we've all been there!
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot use swap file

Postby orney21d » Wed Mar 14, 2012 2:00 pm

Hi all, i am new in forum, can i have arch dist. in NAND, and swap partition in usb external HD with Data partition to in it.
Thanks and regards.
orney21d
 
Posts: 68
Joined: Fri Mar 09, 2012 10:20 am

Re: Cannot use swap file

Postby WarheadsSE » Wed Mar 14, 2012 2:12 pm

$this->bbcode_second_pass_quote('orney21d', 'H')i all, i am new in forum, can i have arch dist. in NAND, and swap partition in usb external HD with Data partition to in it.
Thanks and regards.

Keep posting the same question to multiple threads and you will face consequences.

YOU HAVE BEEN WARNED.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot use swap file

Postby orney21d » Wed Mar 14, 2012 2:49 pm

Hoo!! Sorry for that, i so stupid, i have by Pogoplug and i have so doubts. Sorry so much
orney21d
 
Posts: 68
Joined: Fri Mar 09, 2012 10:20 am


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 0 guests