[SHR-Unstable] swapon: swapfile has holes

Greg Bonett greg at bonett.org
Mon Sep 7 02:56:48 CEST 2009


On Sat, 05 Sep 2009 10:57:32 +0200
Matthias Huber <matthias.huber at wollishausen.de> wrote:

> Greg Bonett schrieb:
> > Hi there,
> > I just installed SHR unstable and I'm impressed at how usable and
> > responsive it is.  However, while I was performing a opkg operation
> > I ran out of memory so I tried to add a swap file. 
> > When following the instructions at:
> > http://wiki.openmoko.org/wiki/SHR_User_Manual#SwapSpace
> > I get the error:
> > "swapon: /swapfile: Invalid argument"
> > and dmesg shows:
> > "swapon: swapfile has holes"
> >
> > I've tried files on the sd card and also on the internal memory.
> > Any suggestions?
> >
> >   
> i could imagine, it must be at one extent, so you should try two
> things:
> 
> * format your sdcard and make the swapfile on the newly created fs.
> *** but if you are formatting the card, you can make a real swap
> _partition_ also.
> 

I ended up making a swap partition and it seems to be working without
any problems.  Thanks for the help.

-Greg



More information about the community mailing list