Sailfish OS supports microSD cards up to 32 GB of size without first formatting them.
The card is automatically mounted (opened for use) on the system when the device is turned on the next time. After this, apps like Gallery can show the pictures and videos residing in the card. Camera app can be set to save pictures and video clips directly to the card.
1. On card formats
- Sailfish OS supports SDHC cards which implies the maximum capacity of 32 GB. The card shall be formatted to FAT32 format.
- Sailfish OS also supports the Linux format ext4. Note that Windows and Mac computers are not able to show the contents of such cards directly . However, if an ext4 card is inserted in a Sailfish device which is connected to a PC with USB, then the card and its contents is available for the file manager on the PC.
- Officially Sailfish OS does not support SDXC memory cards, as this requires support for the exFAT filesystem which we cannot provide. However, these cards can be used in Sailfish devices if they are re-formatted to supported filesystems such as ext4 or FAT32.
Instructions for formatting your memory card
We recommend that you reformat your memory cards using a computer. Note however, that Sailfish 3 has an
improved capability to format cards. Read more about this in chapter 4.
NOTE: What is written below has not been thoroughly tested. It may work but Jolla cannot give any guarantees.
- Instructions for formatting an SDXC memory card to FAT32 format on Windows: http://m.wikihow.com/Format-FAT32. Limitation: Files greater than 4 GB cannot be used.
- Formatting tool for advanced users: https://www.partitionwizard.com/free-partition-manager.html
- Instructions for formatting a memory card in Linux (Ubuntu): http://askubuntu.com/questions/22381/how-to-format-a-usb-flash-drive . Please read chapter 3, too.
- Information about ext4: https://together.jolla.com/question/37865/does-ext4-formatted-microsd-card-work-out-of-the-box-already/
- Instructions for formatting a memory card on a Mac: http://techchannel.radioshack.com/format-sd-card-mac-1661.html.
2. Formatting a card to ext4 with Linux PC
It may not be possible to format an SD card using the utility in the pull down menu of Settings > Storage. This is known to have problems on Sailfish OS versions prior to 3.0.0.
Sailfish 3.0.0 will have improved SD card services.
Should you want to use a card with high capacity (64 GB or more) and make it to ext4 format, then we recommend doing the format with a Linux computer (or with PartitionGuru app, or similar, on Windows PC). While doing this please make sure that you know the device address of the card, so that you would not format a wrong card or disk.
The following commands should do it. If your SD card is the only SD card on a Linux computer then it would probably appear as the device "
/dev/mmcblk0p1 " which you can check with command
It is good to run the "
lsblk " command with and without the card inserted in the slot of the PC to ensure that you know how the card appears on the PC (by seeing the difference).
This is how to format an SD card to ext4:
sudo mkfs.ext4 -L "nickname" /dev/mmcblk0p1
3. Path to the SD card
The path to the SD card (or the location of it) in Sailfish OS file system has been changed to OS version 2.2.0 as follows.
Symbolic link (from Sailfish OS 2.2.0 onwards):
Actual path (from Sailfish OS 2.2.0 onwards):
Both of the paths above can be used. Please update your File Browser app to the latest version from Jolla Store.
4. Formatting and encrypting the SD card
Sailfish 3 makes it possible to encrypt an SD card. Also, formatting memory cards works better now.
<to be continued>
5. Moving data to/from the SD card
If you have a Windows or Linux PC, read this article.
If you have a Mac, read this article.