[SHR-Unstable] swapon: swapfile has holes

Matthias Huber matthias.huber at wollishausen.de
Sat Sep 5 10:57:32 CEST 2009


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.




More information about the community mailing list