Your rating: None Average: 5 (4 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.
  • Inhibit stubbornly trying to mount block devices without a filesystem recognised by the kernel / udev.
  • 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.


  • These configuration files do not alter, replace or delete any extant files.
  • Minimal SailfishOS version supported by mount-sdcard is 2.2.0.
  • Current release works under SailfishOS versions up to (and including) 3.0.0.
  • 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.



Application versions: 
File mount-sdcard-0.1-4.noarch.rpm7.89 KB11/11/2018 - 07:45

A coarse changelog is provided per release comments at Github.


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 on TJC.