mount-sdcard

Rating: 
5
Your rating: None Average: 5 (6 votes)

Enhanced mounting scripts for SD-cards

 
They provide the following enhancements compared to the original versions (as of SailfishOS 2.2.x):

  • Start mounting (partitions on) SD-card via udisks at the earliest sensible time: Right after udisks2.service has started.
  • Unmount before udisks2 begins stopping, hence achieving a clean unmount.
  • Ensure, that AlienDalvik begins starting after mounting succeeded, to allow for android_storage on SD-card. Even more importantly this also ensures, that unmounting occurs only after AlienDalvik is completely stopped.
    Nevertheless, these configuration files are also applicable to devices without AlienDalvik installed.
  • Versions below 1.0-4: Inhibit stubbornly trying to mount block devices without a filesystem recognised by the kernel / udev.
    As Jolla resolved this in SailfishOS 3.0.1, this workaround is omitted in mount-sdcard 1.0-4 (and later versions), making v1.0-3 the last release to be installable on SailfishOS 2.2.0, 2.2.1 and 3.0.0.
  • Versions below 1.0: Create / try to rectify the "compatibility symlink" in order to allow older apps seamlessly accessing (partitions on) SD-cards at their new (since SailfishOS 2.2.0) mount point.

 
Notes:

  • These configuration files do not alter, replace or delete any extant files.
  • Minimal SailfishOS version supported by mount-sdcard is 2.2.0.
  • Since mount-sdcard 1.0-4 at least SailfishOS 3.0.1 is required.
  • A reboot is needed for these configuration files to become active.
  • They are by-products of optimising the start-up timing, feature set and shut-down behavior of crypto-sdcard.
  • Support of partitions and whole devices (as Jolla's original versions do).
  • Support for (µ)SD-cards and USB-attached storage (if supported by device hardware and Operating System).
  • mount-sdcard's source files are hosted at Github.
  • For discussing its specific configuration files and RPM packaging, please use its issue tracker at Github.
  • Issues with this RPM package or the configuration files it installs shall also be filed at mount-sdcard's issue tracker at Github.
  • As this web-page at OpenRepos exists merely for distributing mount-sdcard packaged for SailfishOS, there is no need for issuing comments here.

 
License:
MIT

Keywords:

Application versions: 
AttachmentSizeDate
File mount-sdcard-0.6-2.noarch.rpm7.98 KB26/01/2019 - 20:06
File mount-sdcard-1.0-3.noarch.rpm7.25 KB12/10/2019 - 16:56
File mount-sdcard-1.0-4.noarch.rpm6.93 KB26/10/2019 - 15:53
Changelog: 

A coarse changelog is provided per release comments at Github.

Comments

Vieno's picture

@olf: Does your script still working with 3.0.3.8 as Jolla has changed the mounting trigger from init to systemd? I'm scared to run into problems. Thanks for your advice in advance.

olf's picture

Yes, I am generally aware of some change coming (but not its technical details or when) and most likely mount-sdcard 1.0 (and older versions) will cease to "work" when a significant change occurs, in the sense that mount-sdcard is not executed anymore (i.e., "does nothing" then). As I have not subscribed "Early Access (EA)", because that affects all devices registered under a Jolla account, I will have the chance to check and adapt mount-sdcard if necessary, when SFOS 3.0.3 GA is released.
But still all other aspects of my answer to the same question WRT upgrading to SailfishOS 3.0.1 hold true, thus there is no reason to be afraid or even "scared".

Vieno's picture

Thanks for your swift reply. I've had a problem with my phone already due to some careless updating on my side. And it tooked me three months to recover from that in my very limited spare time. Luckily my Jolla 1 was still working and still is. Therefore I wait till 3.0.3.8 is GA, which may still take some time due to some unpleasant issues Jolla discovered.

olf's picture

mount-sdcard works as usual after upgrading to SailfishOS 3.0.3.9 (the 3.0.3 version, which reached "general availability (GA)" status).

Just a quick check; no analysis yet, if anything changed at all WRT mounting unencrypted SD-cards or if mount-sdcard was just not affected.

olf's picture

Analysis: Nothing was changed WRT mounting unencrypted SD-cards and USB storage devices in SailfishOS 3.0.3.

Vieno's picture

Thats great news. Thanks for checking on it.

olf's picture

BTW, mount-sdcard is in "maintenance mode" since version 1.0, as it appears to be stable and feature complete for its users. That means there will be no new releases, unless bugs are reported (preferably at Github) or a new SailfishOS release breaks it.

Pemek's picture

For me it didn't. Later it turned out a fuse-exfat bug (I took it from different repo), so I reformatted sd to vfat + ext4 and now works flawlessly.

Pemek's picture

Does it work in 3.0.1.11?

olf's picture

I guess so, but haven't tried yet.
Why don't you try and report your experience here?

At worst (quite unlikely though), mounting the SD-card fails.
If you uninstall mount-sdcard then, the SFOS installation is exactly in the state it would be without ever having installed mount-sdcard (as it alters no system files), so there is no risk involved in trying.

olf's picture

Yes, it does.

MooCrumpus's picture

works fine, thank you very much!

Vieno's picture

The script hasn't mounted my ext4 SD card. God knows why. I hate to trouble shot.

olf's picture

So before installing mount-sdcard and after uninstalling it, SailfishOS is mounting your "ext4 SD card" fine?

Vieno's picture

No, for both cases. I was hoping to solve my mounting problem by installing your script. My wife has used the SD-card in a thumpdrive adapter at a printing service terminal. After that the phone was not able to mount the card again. On my laptop everything looks ok with the SD-card. I'm just lacking in time to dig into the problem and tried an easy attempt using your script.
I dont think your script has a bug. Something must have happened with the sd-card at the printing terminal which prevents mounting in the phone.
Maybe next week or in December I can spare some time to solve the problem (and maybe report relevant findings)

olf's picture

You may try reformatting it in your SFOS device, using this guide at TJC.