View Single Post
Old 10-21-2013, 06:40 PM   #9
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Creating swap file (for extreme situations only)

mknod /dev/swap b 7 8 #b=block device, 7=use loop driver, 8=loop device number

mkdir /mnt/base-us/swap

cd /mnt/base-us/swap

dd if=/dev/zero of=swapfile bs=1M count=512
Quote:
512+0 records in
512+0 records out
536870912 bytes (512.0MB) copied, 269.558543 seconds, 1.9MB/s
losetup /dev/swap /mnt/base-us/swap/swapfile

mkswap /dev/swap
Quote:
Setting up swapspace version 1, size = 536866 kB
no label, UUID=4b002686-89e2-4a8d-b9b1-a947538baa3f
swapon /dev/swap



OR:

dd if=/dev/zero of=/mnt/base-us/swap.img bs=1M count=1K # 1GB!
mkswap /mnt/base-us/swap.img
swapon /mnt/base-us/swap.img

Last edited by twobob; 10-21-2013 at 10:04 PM.
twobob is offline   Reply With Quote