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

Why doesn't a SD card work? [answered]

asked 2013-12-26 17:44:29 +0300

vsydan gravatar image

updated 2014-12-05 22:34:43 +0300

pulsar gravatar image

Why doesn't a SD card work? Tried 2GB and 32GB SD card, but neither was recognized.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by molan
close date 2014-07-16 09:58:48.209960

Comments

1

what file system is on the SD card? and how do you verify that it is recognized?

Kontio ( 2013-12-26 17:50:10 +0300 )edit
1

See also Recommended file system....

NikosAlexandris ( 2013-12-27 00:20:25 +0300 )edit

This question seems to actually be a duplicate of https://together.jolla.com/question/292/my-jolla-does-not-recognise-any-micro-sd-card-what-i-can-do/. Right?

NikosAlexandris ( 2013-12-28 06:33:38 +0300 )edit

5 Answers

Sort by » oldest newest most voted
5

answered 2013-12-27 00:42:39 +0300

palnap gravatar image

updated 2013-12-27 00:43:30 +0300

The best way is to format your SD Card with BTRFS or Ext4 filesystem. If you have enabled developer mode you can format the SD card this way (as root) :

mkfs.btrfs /dev/mmcblk1p1

Please note all SD card data will be erased

You also need to modify /usr/sbin/mount-sd.sh like that :

#!/bin/bash

SDCARD=/dev/sdcard
DEF_UID=$(grep "^UID_MIN" /etc/login.defs |  tr -s " " | cut -d " " -f2)
DEF_GID=$(grep "^GID_MIN" /etc/login.defs |  tr -s " " | cut -d " " -f2)
DEVICEUSER=$(getent passwd $DEF_UID | sed 's/:.*//')
MNT=/run/user/$DEF_UID/media/sdcard

if [ "$ACTION" = "add" ]; then
    if [ -b /dev/mmcblk1p1 ]; then
        ln -sf /dev/mmcblk1p1 $SDCARD
    elif [ -b /dev/mmcblk1 ]; then
        ln -sf /dev/mmcblk1 $SDCARD
    else 
        exit $?
    fi  
    su $DEVICEUSER -c "mkdir -p $MNT"
    case "${ID_FS_TYPE}" in
        vfat|ntfs|exfat)
            mount $SDCARD $MNT -o uid=$DEF_UID,gid=$DEF_GID
            ;;
        *)
            mount $SDCARD $MNT
            chown $DEVICEUSER: $MNT
            ;;
    esac
else
    umount $SDCARD

    if [ $? = 0 ]; then
        rm -f $SDCARD
    else
        umount -l $MNT
        rm -f $SDCARD
    fi
fi
edit flag offensive delete publish link more

Comments

1

Thank you! Why is it the "best" way to do so? That's the question in first place. This answer will serve users who are not familiar with all of the complexities, still they will have a clue on why this, what are its pros and cons.

NikosAlexandris ( 2013-12-27 11:43:23 +0300 )edit

Apologies, this was the right comment, put on the wrong place though. I thought your reply was for https://together.jolla.com/question/2645/recommended-file-system-type-partitioning-scheme-for-the-microsd-card/ :D

NikosAlexandris ( 2013-12-27 11:45:01 +0300 )edit

I think it would be great to have line numbering as well for some longer pieces of code in the forum. It would help to identify the code lines of interest/in question.

NikosAlexandris ( 2013-12-28 13:46:50 +0300 )edit
1

The only problem with BTRFS and EXT4 is they aren't supported by Mac OS X or Windows which makes it a bit useless if you're not on Linux and want to transfer files.

aegis ( 2014-01-01 19:08:37 +0300 )edit

@palnap
should it not be mkfs.btrfs /dev/mmcblk1 ?

m2 ( 2014-03-19 22:50:16 +0300 )edit
1

answered 2013-12-26 19:14:10 +0300

CsTom gravatar image

updated 2013-12-26 19:20:13 +0300

Might be "just" filesystem problem?

From PiratePad: "Jolla doesn't currently support Microsoft's exFAT due licensing reasons so 64GB cards need to be formatted to use other file system like ext4 to get them working"

Oh, btw, this is a duplicate for https://together.jolla.com/question/292/my-jolla-does-not-recognise-any-micro-sd-card-what-i-can-do/?answer=296#post-id-296

edit flag offensive delete publish link more
0

answered 2013-12-26 18:15:25 +0300

redge73 gravatar image

updated 2013-12-27 01:20:21 +0300

me too, uSD card 16GB (FAT32) verified unable to read/watch/listen video/picture/music from my uSD so i really need Sailfish can read/write on FAT32 uSD card, please I don't want another filesystem on uSD advantage about FAT32, all system are able to read/write without limitation ! uSD was used on Nokia N8-00 without doing anything (factory formatted FAT32) I need to read folder DCIM and all subfolders

edit flag offensive delete publish link more

Comments

Check that your card is also partitioned with a 'Master Boot Record' and contains only one partition. Some operating systems use GUID as a partition table scheme by default.

aegis ( 2014-01-01 19:11:31 +0300 )edit
0

answered 2013-12-26 23:39:28 +0300

Generally after a reboot I have to put off and put back the SD card for being recognized. I also had to do this at first boot.

edit flag offensive delete publish link more
0

answered 2014-01-01 22:26:31 +0300

palnap gravatar image

I'm on Windows and the USB transfer works great. However, if you don't wan't to use the card exclusively with your Jolla (another device, a card reader in your laptop), it's probably a bad idea (you'll probably need to reformat it)

edit flag offensive delete publish link more

Question tools

Follow
5 followers

Stats

Asked: 2013-12-26 17:44:29 +0300

Seen: 3,165 times

Last updated: Dec 27 '13