We have moved to a new Sailfish OS Forum. Please start new discussions there.
10

Path to SDCard, update 2.2.0.29

asked 2018-06-07 20:20:59 +0300

h___m gravatar image

updated 2018-06-08 08:34:06 +0300

jovirkku gravatar image

hi,

Jolla has changed the path to sdcard. only apps from jolla are aware of this , as camera. :-( All other apps don't find the sdcard anymore! Must they all do updates or is there a workaroubd for this, which I can apply ?

edit: to clarify : I use the app ownKeepass and the passwordcontainer is on the sdcard ... now i can not access it :-(( .

Or maps are on sdcard ....

Thanks, Helge

Ps: Jolla is aware of this (see update notes, link to sdcard : filenbrowser did not show sdcard) but gives no help. incredible.

edit retag flag offensive close delete

Comments

@h___m notice that is EA release. it's dedicated for developers to test their apps and fix them. For example like with sd card path.

as a solution you can try to make symlink to new mount point

atlochowski ( 2018-06-07 21:05:14 +0300 )edit
3

Not EA anymore...

bocephus ( 2018-06-07 21:17:31 +0300 )edit

you can still navigate to sd card in filebrowser from root

pawel ( 2018-06-07 21:27:01 +0300 )edit

I haven't EA enabled.

h___m ( 2018-06-07 22:06:01 +0300 )edit

My galerie and.my.media.find.sd.card, camera does.not

NuklearFart ( 2018-06-08 22:30:13 +0300 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2018-06-07 21:17:04 +0300

bocephus gravatar image

New path to SD card is

/run/media/nemo/{LABEL}

edit flag offensive delete publish link more

Comments

4

I can find the sdcard, but the apps can't

h___m ( 2018-06-07 21:29:08 +0300 )edit
1

answered 2018-06-08 00:53:19 +0300

Asseon gravatar image

updated 2018-06-08 01:01:05 +0300

/media/sdcard/ is a symlink to /run/media/nemo most applications should just work without changes.

For those that don't a bind mount will solve the problem, you need the dev mode for this tough. While this should be safe it might brake in "interesting" ways, especially when updating sailfish. One therefore must revert this change before installing any sailfish updates. It should not break anything that could not be fixed by a factory reset tough.

All steps must be executed as root.

  1. run mv /media/sdcard /media/sdcard_backup
    • Note: No trailing slashes!
  2. run mkdir sdcard
  3. add /run/media/nemo/ /media/sdcard/ none defaults,bind 0 0 to the end of /etc/fstab
    • Don't do anything else in this file if you like to have a working phone.
  4. run mount /media/sdcard or reboot

If you wan't to revert it you can do this:

  1. remove the added line from /etc/fstab
  2. reboot
  3. run rmdir /media/sdcard
  4. run mv /media/sdcard_backup /media/sdcard

Again: I quickly tested this and it seems to work without problems, but it break things or cause you to have a nice phone shaped (soft) brick.

edit flag offensive delete publish link more

Comments

If using updated V10lator mountsd.sh from openrepos - anything will stay like in 2.1

ExPLIT ( 2018-06-10 22:08:05 +0300 )edit

They screwed the symlink. They symlinked /run/media/... into /media/sdcard/nemo/ so no, most apps will fail and have to be rebuit. Or, fix the symlink for the ones understanding it ;)

eatdirt ( 2018-06-23 00:24:09 +0300 )edit

The symlink is fine but some applications do not resolve them.

Asseon ( 2018-06-25 11:29:50 +0300 )edit

@eatdirt, Jolla's script for creating the compatibility symlink expects solely empty directories (as mount points) in /media/sdcard.
If anything else is there (e.g. files, symlinks or non-empty directories) that script errroneously creates a symlink /media/sdcard/nemo -> /run/media/nemo (instead of /media/sdcard -> /run/media/nemo as intended).

There also is a specific discussion thread here on TJC "SDcard symlink is incorrect", another more technical one "[Improvement] Enhanced mounting scripts for SD-cards", a technical analysis including a PR with a bugfix and an issue report for this issue.
Please join in to these discussions or provide support by voting, as the PR fixing this (or any other solution) is not merged yet (that does not come easy, apparently) and AFAIU that erroneous symlink will be recreated by each SailfishOS upgrade, which provides an updated udisks2 RPM.

olf ( 2018-11-03 03:13:18 +0300 )edit
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2018-06-07 20:20:59 +0300

Seen: 790 times

Last updated: Jun 08 '18