Locus Map - forum

Support => Troubles & Questions => Topic started by: curio on August 25, 2012, 10:16:03

Title: Data directory on external SD as of latest update
Post by: curio on August 25, 2012, 10:16:03
Hello,

On my ICS SGS2, I used to have Locus's data directory on my external SD card ("/mnt/sdcard/external_sd/Locus"). As of the latest update, however, Locus ignores that location and creates a new directory on the internal SD instead. As the internal SD is VFAT, I also can't simply symlink the actual directory there.

So, my question is, has there been some intentional change to how Locus handles its data directory (nothing in the changelog), and how can I get it to use the external SD again?
Title: Re: Data directory on external SD as of latest update
Post by: Menion on August 25, 2012, 11:23:47
Hi curio,
  there were no changes in last version. What is absolute path to your internal SD please? May you also give me content of "/etc/vold.fstab" file? Thanks

and also, try to completely delete duplicate folder, this may helps!
Title: Re: Data directory on external SD as of latest update
Post by: curio on August 25, 2012, 11:51:10
The internal SD path is "/mnt/sdcard".  "vold.fstab" is attached.

Deleting the "Locus" folder on the internal SD results in it being recreated, already tried that. ;-)
Title: Re: Data directory on external SD as of latest update
Post by: Menion on August 25, 2012, 11:57:46
hmm I see it. it's because in your fstab file are both information, on internal and also external and Locus ignore comment before. I'll improve into next version. if you want quick fix, you may change order of "# internal sdcard" and "# external sdcard" in fstab, delete duplicate folder and restart phone. This should help, but as I wrote, I'll to improve it to next version
Title: Re: Data directory on external SD as of latest update
Post by: curio on August 25, 2012, 12:12:03
You sure changing the order will work, as the external SD is mounted on a sub-directory of the internal one?  I'd expect that mount to be inaccessible if "/mnt/sdcard" is mounted later on.

In any case, thanks for quickly looking into things! :-)
Title: Re: Data directory on external SD as of latest update
Post by: Menion on August 25, 2012, 14:00:46
ah sorry, you're right. Rather not change it :) sorry .. I'll fix it on my side, much better solution
Title: Re: Data directory on external SD as of latest update
Post by: curio on August 25, 2012, 14:09:23
Menion, stop that: it's turned out it was an issue after a kernel update (which however strangely only seemed to affect Locus). Things work again now.

Sorry about the noise, and thanks for your support! :-)
Title: Re: Data directory on external SD as of latest update
Post by: Menion on August 25, 2012, 14:21:15
hey, how is this possible? Is fstab file changed? Because if not, this problem should be still .. ah damn, it shouldn't.

I'll try to explain Locus system a little bit: (what happen after start)
1. create list of all possible places for placing root directory Locus
2. checking if some of them already contain Locus directory
3. if more then one contain, report issue "Duplicate folder found", if only one - use it and finally if none exists, create one in "best directory". And for you this should be first item in fstab. Anyway if you already have directory Locus in "/mnt/sdcard/external_sd" directory, Locus should use it. Weird that this do not happen ...

how should some kernel update affect this?? Interesting
Title: Re: Data directory on external SD as of latest update
Post by: curio on August 25, 2012, 14:51:26
I use Siyah's kernel, and with the fixing update, he mentioned that he'd forgotten some umount during init, which was causing issues with some ROMs. I use the Lite'ning one, which was obviously affected. I don't know what that ROM may be doing special during boot and am not currently in a position to investigate. ;-)
Title: Re: Data directory on external SD as of latest update
Post by: curio on August 25, 2012, 14:53:53
And yes, I too would have expected Locus to pick up the Locus directory on the external SD, which definitely was accessible (browsed it with a file explorer). Strange indeed.
Title: Re: Data directory on external SD as of latest update
Post by: Menion on August 25, 2012, 21:21:43
nevermind, problem "solved" and useful information for me in case, this happen to somebody again. Thanks for it and enjoy Locus with correct directory :)