64GB micro SD card on a Jolla phone
Posted on 12 February 2014.
Read 16229 times.
Recently I have got me an Jolla phone.
This phone is something entirely it's own, with a unique user interface, and open source, ... and it's not entirely out of the development phase yet.
I also bought a new 64GB micro SD card.
And now the troubles begins ...
The SD card comes formatted in exfat format, an extension of the old fat, and the later fat32 formats, allowing for disks larger than 32GB.
Exfat are a fairly inefficient file system, and it isn't supported by Linux distributions as standard, but has to be installed separately.
The only reason to use the exfat file system, is to be windows compatible, something I have no need for.
I decided to use the Ext4 file system, even though I know there are rumours of problems with this file system on an SD card, but it is a fairly efficient file system, and I use it on all my other computers.
This is a description of how you install and activate an 64GB SD card on your Jolla.
First of all, you have to format the card as Ext4 (or whatever file system you might want, the Jolla is using the btrfs file system), this is best done on your lap- or desk-top. In the following I presume you want the Ext4 file system.
On your Jolla you will have to activate the developers mode, this is done by opening Settings and Developer tool, and "Click" on Developers mode.
Remember to set or generate a password.
In your launchpad you will now have an Terminal icon, touch that.
To install the Ext4 drivers, type (if it's not active, remember to activate the wireless network first):
delev-su pkcon install e2fsprogs
And press enter, and enter the developer password.
This will install the necessary drivers for the phone to access the SD card, but due to an error in the script responsible for mounting the file system, you still will not be able to access the card.
To solve this problem, you type:
delev-su vi /usr/sbin/mount-sd.sh
This will open the script responsible for mounting the SD card, in the vi editor.
With the arrow keys you find the line:
mount $SDCARD $MNT -o uid=$DEF_UID,gid=$DEF_GID
place the cursor on the last D, and press the <esc> and a keys fairly quick after each other, this puts the editor in edit 'add' mode, change the line to look like this:
mount $SDCARD $MNT -o uid=$DEF_UID,gid=$DEF_GID || mount $SDCARD $MNT
Press the <esc> key, end enter :x to save the changes and exit the editor.
Exit the terminal, and restart the phone, now the SD card should be mounted at startup, and be accessible in the file browser.
On my phone the images and music on the SD card never showed up in the gallery and media apps, this is because the indexer thread starts before the SD card are mounted, the is solved by entering the following command in the terminal:
This restarts the indexer thread, and after a short while your images and music pops up in the gallery and media app.
I now have a problem with the file browser crashing, but that's an entirely different story.