Active Topics

 


Reply
Thread Tools
Posts: 24 | Thanked: 7 times | Joined on Nov 2011
#81
In fact it's not a feeling: when mounting the sdcard as /home, settings are not persisted. I have tried mounting before the "Tracker hack" in the script, but it does not solve the problem...
 
Posts: 594 | Thanked: 1,094 times | Joined on Aug 2012 @ Rhine
#82
Yes, i'm aware of that, i got the same problem.

They changed a LOT with the last update, you can see the changes here: https://github.com/nemomobile/sd-utils/commits/master

With the new update, mount-sd.sh is called to late during boot process, that's why i'm trying to do it in an own script, see here:
http://talk.maemo.org/showthread.php?t=92902

help is appreciated
 
Posts: 5 | Thanked: 1 time | Joined on Mar 2014
#83
I don't know if this is related, but I am not able to see new taken pictures anymore in the Gallery application after update.

I can see the new pics in file browser though. It seems to me that user rights of the pictures have changed a bit after the patch

now:
-rw-r--r-- 1 nemo privileged 913K 2014-03-20 12:03 20140320_004.jpg

before:

-rw-r--r-- 1 nemo nemo 1,2M 2014-02-28 12:14 20140228_001.jpg

I have redone the mount points and most of the things seem to be working for me.

I guess it is a good idea to make init script for the sd card mount. I don't have much idea how sailfish boot systemd works. I tried to figure out /etc folder based on what I know SysV but that didn't help much :P
 
Posts: 594 | Thanked: 1,094 times | Joined on Aug 2012 @ Rhine
#84
first post updated for Salfish >= 1.0.4

btw: my screen broke some weeks ago, so i ordered a new Jolla.
i made the same config on the new device and put the sdcard from the old device into the new one.

by mounting the complete home-folder, pretty much everything was automatically transferred to the new device, e.g.
  • contacts
  • calendar-events
  • SMS
  • Mitakuuluu-database
  • images
  • videos
  • music
  • call-history
  • maps
  • audiobooks
  • ...

pretty much everything, except apps and WLAN-passwords

so now i can switch between 2 devices by just swapping simcard and sdcard and both are always "synced"

Last edited by Leinad; 2014-04-07 at 12:13.
 

The Following 4 Users Say Thank You to Leinad For This Useful Post:
Posts: 16 | Thanked: 2 times | Joined on Jun 2013 @ Germany Oberschwaben
#85
Hello, I have a Problem with the directory "android_storage".
It is under /home/nemo which is on my sdcard,
but /home/nemo/android_storage is on the 16 GB Phonememory.
This is what mc tells me.
When I look under:
/media/sdcard/lot_of_chars_and numbers/.home/android_storage
this directory is empty.
I recognized it when I downloaded maps from here.com.
In the moment I use Sailfish 1.1.1.27 but I cant say exactly when these phenomen appeared.
Because normally for working I prefer my old Nokia N9 .
I found in /home/nemo/android_storage a file? with a length of 26 byte with the name "!android_storage"

Has anyone an idea what happened?
 
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#86
Originally Posted by RR_aus_H View Post
I found in /home/nemo/android_storage a file? with a length of 26 byte with the name "!android_storage"
I am hardly an expert as I do not use Android and do not know how this works but... that file looks like a link to your Android storage directory on the SD card. Perhaps it is broken because the "lots of chars and numbers" part has changed (have you replaced your SD card recently?).

To check that, look up the !android_storage file in File Browser If it is a link, File Browser will clearly indicate it along with what the destination is. Alternatively, you can type this in Terminal with the same result:

Code:
ls -l <full_path_to_the_file>
__________________
Русский военный корабль, иди нахуй!
 
Posts: 16 | Thanked: 2 times | Joined on Jun 2013 @ Germany Oberschwaben
#87
Hello again,
here is the result of ls -l
Code:
[root@Jolla android_storage]# ls -l  /home/nemo/android_storage/android_storage
ls: cannot read symbolic link /home/nemo/android_storage/android_storage: Die angeforderte Funktion ist nicht implementiert
lrwxrwxr-x 1 root nemo 26 2014-12-18 21:04 /home/nemo/android_storage/android_storage
[root@Jolla android_storage]# ls -l 
ls: cannot read symbolic link android_storage: Die angeforderte Funktion ist nicht implementiert
total 4
drwxrwsr-x 1 root nemo 28 2014-03-11 18:57 amazonmp3
drwxrwxr-x 1 root nemo 30 2014-06-10 05:26 Android
lrwxrwxr-x 1 root nemo 26 2014-12-18 21:04 android_storage
drwxrwxr-x 1 root nemo  0 2014-07-30 19:34 Download
drwxrwsr-x 1 root nemo  0 2014-06-11 21:57 onemobile_download
drwxrwsr-x 1 root nemo 54 2014-06-11 21:58 osmand
drwxrwsr-x 1 root nemo 64 2014-01-14 15:49 ppy_cross
drwxrwsr-x 1 root nemo  0 2014-06-11 21:56 UnUsedMaps
[root@Jolla android_storage]#
The output of the bold tagged text on my terminal is in bold white with red background and blinking.
And the name of the file (link) is not "!android_storage" it is "android_storage" without "!" The exclamation mark was set by the MidnightCommander maybe as a warning.

But i dont know if this link is the reason for my real problem,
to store android data files on a sd-card.

So I wish everyone in this forum a Happy New Year and maybe someone can help me to solve this problem next year
 
Posts: 3 | Thanked: 0 times | Joined on Feb 2015
#88
<snip>
But i dont know if this link is the reason for my real problem,
to store android data files on a sd-card.

So I wish everyone in this forum a Happy New Year and maybe someone can help me to solve this problem next year [/QUOTE]
<snip>

I my case I followed the guide in the first post in this thread. Only change needed was on 6.1 where ..../data/sdcard needs to be changed to /data/media and android stuff was available. Tested with mapping sw.
-A-
 
Posts: 3 | Thanked: 0 times | Joined on Feb 2015
#89
That is on 1.1.127 Vaarainjarvi version.
 
Posts: 3 | Thanked: 0 times | Joined on Feb 2015
#90
In the latest pre-release 1.1.2.15 Yliaavanlampi I needed to do a couple of changes to get android stuff working from the sdcard.

First one in the mount-sd.custom.sh:
ACTION=$1

if [ "$ACTION" = "add" ]; then
mount /dev/mmcblk1p1 /mnt/sd
mount -o bind /mnt/sd/.home /home/nemo
mount -o bind /mnt/sd/.android /data/media
else
umount /data/media
umount /home/nemo
umount /mnt/sd
fi

this seems to be only one of possible ways.

Then /opt/alien/system/alien.sh as chem|st developed :
move word 'data' from this line (19 in the file) to the next for statement

for d in bin sbin lib usr var etc tmp home vendor data; do
if [ "" == "$(grep $ROOT/$d /proc/mounts)" ]; then
echo "mount $ROOT/$d"
mount --bind /$d $ROOT/$d
fi
done

for d in dev sys run data; do
if [ "" == "$(grep $ROOT/$d /proc/mounts)" ]; then
echo "mount $ROOT/$d"
mount --rbind /$d $ROOT/$d
fi
done
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:33.