The Following User Says Thank You to peterleinchen For This Useful Post: | ||
![]() |
2011-11-30
, 16:23
|
Posts: 197 |
Thanked: 91 times |
Joined on Dec 2010
|
#22
|
Hey sup,
standard mount is strong enough.
I am mounting with:
first line adds loop device to fstabCode: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
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 ...
![]() |
2011-11-30
, 16:24
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#23
|
I've been using ModRana for the past year, since Mappero (last I looked) was no longer being maintained. It supports multiple download sources, and can store things in sqlite database format, which is both compressed, and gets around losing chunks of space on every tile based on FS granularity.
Also: Google has become quite a pain when it comes to tile cacheing. If it detects you're doing it (too many too quickly) it cuts you off. Silly, since it means you're probably going to lessen the load on their servers over time, but then they want to control when/where/if tiles update. :P
Thanks for the refresher/tutorial on creating loopback file systems though. I'm sure several people have uses for such things!
![]() |
2011-12-01
, 08:32
|
Posts: 25 |
Thanked: 5 times |
Joined on Jul 2010
|
#24
|
![]() |
2011-12-01
, 09:20
|
Posts: 197 |
Thanked: 91 times |
Joined on Dec 2010
|
#25
|
Hi,
I was just thinking about reformating /home/user/MyDocs/ partition to ext* because of the tile's size (also because of directory linking, permissions...).
On n900 I have 9.4G of OSM tiles (du -h)
the same on my PC with ext3 takes 1.4G
and apparent size on PC is 1.1G
And my PC has 4096 block size. Interesting.
I did all in the first post on my PC (with 1024 blocks) and the first thing I see is that the empty 4G file reports 3G free space after mount (on PC).
After tile-files copy - du says 1.2G and apparent size is 1.1G.
So - (before copying this 4G file to n900), the main problem is the size 3 out of 4G. This I dont understand. It looks like one block takes 256bytes?
![]() |
2011-12-02
, 23:51
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#26
|
![]() |
2011-12-02
, 23:54
|
Posts: 197 |
Thanked: 91 times |
Joined on Dec 2010
|
#27
|
You see why I came to use vFAT? I did/do not see any advantages here for an ext FS. Just for storing map tiles.
4GB file ~ 4294967296 bytes
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop0 4129759 3199535 930225 77% /home/user/MyDocs/.map
so available are:
1k*4129759 ~ 4228873216 bytes
Overhead seems to be only
66094080 bytes ~ 64MB
My disk usage:
du -xsh MyDocs/.maps
3.1G MyDocs/.maps
du -xsh --apparent-size /home/user/MyDocs/.maps
2.9G /home/user/MyDocs/.maps
to be more precise:
du -xs MyDocs/.maps
3199535 MyDocs/.maps ~ 3276323840
bytes
du -xs --apparent-size /home/user/MyDocs/.maps
3008856 /home/user/MyDocs/.maps ~3081068544
bytes
So loss for storing around 3GB map tiles is only about 191MB.
On ext there needs to be stored the inodes and also there is some space reserved for the super-user (man mkfs.ext2):
-m reserved-blocks-percentage
Specify the percentage of the filesystem blocks reserved for the super-user.
This avoids fragmentation, and allows root-owned daemons, such as syslogd(8), to continue to function correctly after non-privileged processes are prevented from writing to the filesystem. The default percentage is 5%.
5% of 4GB is quite much (204MB) space lost on ext (excluding inodes space).
![]() |
2011-12-06
, 16:44
|
Posts: 105 |
Thanked: 46 times |
Joined on May 2011
|
#28
|
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
![]() |
2011-12-06
, 20:53
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#29
|
![]() |
2011-12-08
, 13:07
|
Posts: 105 |
Thanked: 46 times |
Joined on May 2011
|
#30
|
standard mount is strong enough.
I am mounting with:
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/