Active Topics

 


Reply
Thread Tools
Posts: 84 | Thanked: 146 times | Joined on Feb 2015
#91
Originally Posted by kaippari View Post

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
I did that and I can see that previously installed Android applications can access their files from the SDcard (for example Here Maps will find it's downloaded map files from the SDcard and use them), but any new Android apps I install seem to use up the device memory instead of going onto the SDcard.

I followed the instructions from here before 1.1.2.16, and then followed the amendment from there after updating to 1.1.2.16.

What could be source of my problem, and what can I do to rectify it?
 
Posts: 5 | Thanked: 1 time | Joined on Mar 2014
#92
I've been using Leinards guide to mount the home partition and everything else is fine, but I can't seem to be able to make both fuse-mount points. df -h gives:

Filesystem Size Used Avail Use% Mounted on
rootfs 14G 1,8G 12G 14% /
/dev/mmcblk0p28 14G 1,8G 12G 14% /
devtmpfs 404M 64K 404M 1% /dev
tmpfs 405M 200K 405M 1% /dev/shm
tmpfs 405M 31M 375M 8% /run
tmpfs 405M 0 405M 0% /sys/fs/cgroup
tmpfs 405M 4,0K 405M 1% /tmp
/dev/mmcblk0p18 64M 45M 20M 70% /firmware
/dev/mmcblk0p28 14G 1,8G 12G 14% /home
/dev/mmcblk0p25 7,9M 4,2M 3,8M 53% /persist
/dev/mmcblk0p19 7,9M 4,1M 3,9M 52% /drm
/dev/mmcblk0p9 48M 9,0M 39M 19% /var/systemlog
tmpfs 405M 0 405M 0% /mnt/asec
tmpfs 405M 0 405M 0% /mnt/obb
/dev/mmcblk1p1 59G 25G 31G 45% /mnt/sd
/dev/mmcblk1p1 59G 25G 31G 45% /home/nemo
/dev/mmcblk1p1 59G 25G 31G 45% /data/media
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/data
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/bin
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/sbin
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/lib
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/usr
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/var
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/etc
tmpfs 405M 4,0K 405M 1% /opt/alien/tmp
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/home
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/vendor
devtmpfs 404M 64K 404M 1% /opt/alien/dev
tmpfs 405M 200K 405M 1% /opt/alien/dev/shm
tmpfs 405M 0 405M 0% /opt/alien/sys/fs/cgroup
tmpfs 405M 31M 375M 8% /opt/alien/run
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/media
/dev/mmcblk0p28 14G 1,8G 12G 14% /opt/alien/system_jolla
/dev/fuse 14G 1,8G 12G 14% /opt/alien/home/nemo/android_storage
/dev/fuse 59G 25G 31G 45% /home/nemo/android_storage

I am now using sailfish 1.1.9.28 and I noticed that alien.sh script has changed to

/opt/alien/system/script/alien_setup_chroot.sh

Previously I managed to get the mounts working changing the alien.sh as suggested here. Any ideas how I should change the alien_setup_chroot.sh file, or am I missing something else?

thanks
 
Posts: 5 | Thanked: 1 time | Joined on Mar 2014
#93
If anyone is wondering, here is a solution how to get this thing working on Sailfish 1.1.9.28

https://together.jolla.com/question/...droid-storage/
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#94
I don't have /data/sdcard, I have /data/media.

Shell I use that inside a /lib/systemd/system/mount-custom.service and when rsyncing?

Also, my jolla mounts ext4 formatted sd card itself. probably because i have latest software upgrade. do i still have to use mount-sd.custom.sh
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#95
ok i have successfully did it by using "media" instead of "sdcard". however, i forgot to remove existing /home/ data.

how can i mount it to let's say /mnt/tmp, in order to remove? where is it?
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#96
Thanks, very useful manual. I have my home on sd card now.

However I experience something strange.

I can see ~/android_storage and directory structure under it. I can see it even if I stop dalvik.

When I use android applications, let's say when I use android camera, it says it saves files to ~/android_storage/DCIM/Camera.
Indeed, android file manager shows those files there.

But Sailfish file manager, or "ls" from plain console cannot.

I suspect that android applications refer to /home/nemo/android_storage as to completely different directory.

I can see those photos by android file manager, copy them to /tmp/, then I can see files in /tmp/ by console, and I can copy them to ~/Pictures.

By the way, android file manager only sees "android_storage" directory in /home/nemo, no any other file. It's not normal right?
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#97
I have searched for my .jpg files with

cd /
find . | grep name_of_my_file.jpg

and did find nothing.

also, I can confirm that /mnt/sd/.android and ~/home/nemo/android_storage are different, separately existing directories.
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#98
I have found where dalvik stores images. It uses /opt/alien/data/media/DCIM.
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#99
ok now my mount-sd.custom.sh looks like

Code:
#!/bin/bash

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 /opt/alien/data/media
else
  umount /opt/alien/data/media
  umount /home/nemo
  umount /mnt/sd
fi
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#100
and it does not help.

mount shows

Code:
/dev/fuse on /opt/alien/home/nemo/android_storage type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /home/nemo/android_storage type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:32.