Reply
Thread Tools
cashless's Avatar
Posts: 159 | Thanked: 21 times | Joined on Jan 2008 @ Houston, texas
#1
My internal card is basically an extended 4gb unpartitioned rootfs, so I don't really have an mmc2 disk.

Is there any way to create the swap file on MMC1?
 
Posts: 37 | Thanked: 33 times | Joined on Feb 2008 @ Ukraine, Kharkiv
#2
Code:
 sudo gainroot
 swapoff /media/mmc2/.swap
 dd if=/dev/zero of=/media/mmc1/.swap bs=1024 count=128000
 mkswap /media/mmc1/.swap
 swapon /media/mmc1/.swap
 

The Following 4 Users Say Thank You to DJArty For This Useful Post:
cashless's Avatar
Posts: 159 | Thanked: 21 times | Joined on Jan 2008 @ Houston, texas
#3
Originally Posted by DJArty View Post
Code:
 sudo gainroot
 swapoff /media/mmc2/.swap
 dd if=/dev/zero of=/media/mmc1/.swap bs=1024 count=128000
 mkswap /media/mmc1/.swap
 swapon /media/mmc1/.swap
Worked for me! I just had to ignore the second line! thanks

Last edited by cashless; 2008-04-03 at 21:27.
 
Posts: 226 | Thanked: 47 times | Joined on Jan 2008 @ Poland / Bialystok
#4
ok but can anyone tell me how to convince system to mount swapfile on mmc1 at boot ?
I've added line in my fstab but still no automount of swap on mmc other than mmc2.
 
Posts: 40 | Thanked: 21 times | Joined on Nov 2008 @ New York, NY
#5
I've set up swap space in /media/mmc1/.swap and am trying to get swap initiated at boot. I followed directions that I found elsewhere on the web that said to add
swapon -a
just before the "exit 0" at the end of /etc/init.d/rcS.

But this fails to turn on swap. It doesn't work because /media/mmc1 is not mounted at this point. I was able to confirm this by adding a "mount > /tmp/log" in rcS just before the swapon. The swapon complains it can't stat the swap file.

Where can I place the swapon command to have it work? At what point is mmc1 mounted?

By the way, this is the latest Diablo:
Nokia-N810-23-14 2.6.21-omap1 #2 Tue Sep 2 10:13:14
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:53.