View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#21
Hey sup,

standard mount is strong enough.
I am mounting with:
Code:
echo /home/user/MyDocs/.maps.vfat.img /home/user/MyDocs/.maps vfat loop,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir 0 0 >> /etc/fstab
mount /home/user/MyDocs/.maps
first line adds loop device to fstab
second line mounts with Maemo standrad mount (busybox enhanced installed. but I think I installed it later and it worked with default bb mount also)

But hey, if your mount2 works too ...


Here is my full automatic start/mount in /etc/event.d/
Code:
description "starting my own mounts and python server for Nokia Maps"

author "peterleinchen"

#start on MOUNTS_OK
start on started ke-recv
stop on starting shutdown

console output

pre-start script

# mmc(s) should be mounted after ke-recv has started, but currently
# started notification seems to be emitted before it's actually ready.
# this is a temporary workaround, we should fix this in ke-recv or c-r
# properly.

#	sleep 4
	sleep 30

end script


script

  echo /home/user/MyDocs/.maps.vfat.img /home/user/MyDocs/.maps vfat loop,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir 0 0 >> /etc/fstab
  mount /home/user/MyDocs/.maps

end script
with MyDocs/.maps.vfat.img as the 4GB file and MyDocs/.maps as the mount point.
 

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