Reply
Thread Tools
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#1
Finally I found out how I can put large libraries (or Garnet VM memor image) onto the MMC and symlinking to it. This can save you lots of device memory.

How to do ?

1. Modify /usr/sbin/mount-mmc by removing 'noexec' and setting fmask to 0033 instead of 0133.
Code:
#!/bin/sh
mount -t vfat -o rw,noauto,nodev,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0033 "$1" "$2" > /dev/null
and remount the mmc, e.g. by rebooting or connecting to a PC USB and disconnecting. The files on the mmc should now have attributes "rwx r r".

2. Create a folder with a name whatever you like (e.g. 'overflow') on mmc1 or 2.
3. Move large libraries (e.g. libwebkit) or Garnet VM memory image (~/.gvm/gvm.store 16MB) to that folder
4. Symlink these large files , e.g. the case of Garnet VM image
Code:
cd ~/.gvm
ln -s /media/mmc2/overflow/gvm.store
and the Garnet VM should work normally. The same you can do with large libraries.

Last edited by skatebiker; 2009-06-12 at 19:56.
 

The Following User Says Thank You to skatebiker For This Useful Post:
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#2
You probably won't be able to update libraries which are symlinked to mmc. Didn't test but usually .debs expect that chmod and chown work.
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:08.