Mobile/debug on maemo: Difference between revisions

Line 58: Line 58:
sudo gainroot
sudo gainroot
cd /media/mmc2
cd /media/mmc2
dd if=/dev/zero of=./swap.file bs=1024 count=524288
dd if=/dev/zero of=./swap.file bs=1M count=512; # this takes 3-4 min. on the N810
mkswap /swap.file
mkswap ./swap.file
echo "/swap.file swap swap defaults 0 0" >> /etc/fstab
echo "/media/mmc2/swap.file swap swap defaults 0 0" >> /etc/fstab
swapon -a
swapon -a
exit
</pre>
</pre>
<i>To check if you've got 512 MB of swap as expected, type:</i>
<i>To check if you've got 512 MB of swap as expected, type:</i>