Wiki: microSD / microSDHC / microSDXC card
asked 2014-03-18 13:51:13 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
[INFO] 1.0.4.20: directory change
1.0.4.20 - New location: /media/sdcard/xxxx-xxxx
1.0.3.8 - Old location: /run/user/100000/media/sdcard
Please vote for better integration of the SDcard into the OS core apps here!
There are as of 2014 3 types of µSD cards and Jolla should support all three formats:
microSD - from 64 MB to 2 GB
microSDHC - sizes between 4 GB to 32 GB
microSDXC - up to 128GB
Prices:
Be aware that there is loots of "fake/counterfeit" cards being sold on eBay/Amazon. Only buy from reputable sources.
How to check if you card is (not) fake/counterfeit?
Windows: - h2testw
Linux: - F3 (Fight Flash Fraud)
or simply try to fill up to the card with movies/ISO files to see if the card has claimed capacity.
When doing such a test, never interrupt/cancel the test as that may result in you µSDxx being corrupt.
Samsung microSDXC 64GB Class 10 UHS-1 Grade 1
Up to 70 MB/s read speed; and up to 20 MB/s write speed
£42.99 18-Mar-14
EUR 45,89 18-Mar-14
SanDisk Ultra microSDXC 64GB Class 10 Bi-coloured Card with Adapter
Up to 30MB/s read speed; write speed lower.
£33.20 18-Mar-14
EUR 45,99 18-Mar-14
SanDisk Extreme PLUS microSDHC/microSDXC UHS-I Card - SDSDQX-064G
Up to 80MB/s read speed; and up to 50MB/s write speed
SanDisk 64GB 95MB/s Extreme Pro - SDSDQXP-064G
£69.99 7-Jan-2015
SanDisk 128GB 30MB/s Ultra Micro SD Memory Cards with SD Adapter - SDSDQUA-128G
£64.99 7-Jan-2015
Cards that have fast write/read speeds like UHS-I are better as they will "not" slow down your phone, when it writes / reads from / to the card. I am assuming that Jolla is UHS-I compatible.
What should good quality µSD card have when buying new one?
- UHS-1 or even better UHS-3
- Class 10
- Fast Read / and most important Write speed
-- Jolla supports up to 64GB µSD cards in size.
(strange that there is no mention of it on their website)
-- There is "NOT" (as of 22.12.2014 - 1.1.1.27 Vaarainjärvi ) support for the µSD indicator in the phones menu
as per post over here.
-- NEW CARDS:
- if you have brand new µSD card that you have purchased for the Jolla, most if not all of them come pre formatted to be able to use them straight away and compatible with Windows OS (so their file system is FAT16 / FAT32 aka vfat), so if you have card that is not bigger that 32Gb that will work out of box).
- according to post on xda-developers, 64Gb cards come formatted as exFAT, so use Linux PC or see below how to get the card working from the phone over ssh
-- Windows Users:
as per post over here, NTFS and exFAT formats are not supported, but FAT32 (vfat) is, but it has got limit of 4GB per file in size and single partition with 32 Gb size limit.
SD Formatter 4.0 for SD/SDHC/SDXC was created specifically for memory cards using the SD/SDHC/SDXC standards.
-- Reformatting micro SD card inside phone settings - EXT4 / via SSH
as per post over here, you can format the µSD from the developer mode, as root
Howto log in / access dev mode over here.
[root@Sailfish nemo]# fdisk /dev/mmcblk1
- creater a partition on the card (this one is 64GB)
n (NEW)
p (PRIMARY)
1 (Partition number)
ENTER (First sector (2048-124735487, default 2048))
ENTER (Last sector, +sectors or +size{K,M,G,T,P} (2048-124735487, default 124735487): )
p (Print details)
w (Write changes)
[root@localhost nemo]# umount /dev/mmcblk1p1
- unmount the card
[root@localhost nemo]# mkfs.ext4 /dev/mmcblk1p1
- format the card
[root@localhost nemo]# chmod -R 777 /run/user/100000/media/sdcard/
- set permissions
[root@localhost nemo]# mount -t ext4 /dev/mmcblk1p1 /run/user/100000/media/sdcard/
you may have to manually mount the µSD card or use script (1.0.3.8 Naamankajärvi)
-- Formating the card as BTRFS as found in Answer to this question / via SSH.
[root@localhost nemo]# umount /dev/mmcblk1p1
- unmount the card
[root@localhost nemo]# mkfs.btrfs -f /dev/mmcblk1
- format the card (no need for partition)
[root@localhost nemo]# mount -o subvolid=0 /dev/mmcblk1 /media/sdcard
- mount the card
[root@localhost sdcard]# btrfs subvolume create Jolla
- create folder called Jolla
[root@localhost sdcard]# chown -R nemo:nemo /run/user/100000/media/sdcard/Jolla
- set ownership
[root@localhost sdcard]# chmod -R 775 /run/user/100000/media/sdcard/Jolla
- set permissions
you may have to manually mount the µSD card or use script (1.0.3.8 Naamankajärvi)
-- Mapping your Jolla µSD card on your Linux PC using Secure SHell FileSystem (works on Debian Wheezy)
sudo apt-get install sshfs
to install Secure SHell FileSystem if not already installed
sudo usermod -aG fuse marcel
to add user marcel to fuse group
exec su -l $USER
to restart your login
mkdir jolla
make a folder where the µSD will be mapped
sshfs -p 22 nemo@192.168.1.26:/run/user/100000/media/sdcard ~/jolla -o follow_symlinks
to mount the µSD card
-p 22 - is the SSH port of your Jolla
nemo@192.168.1.26 - is your Jollas default user / local IP address
/run/user/100000/media/sdcard - is where Jollas µSD card is mounted to (1.0.3.8 Naamankajärvi)
/media/sdcard/xxxx-xxxx - is where Jollas µSD card is mounted to (1.0.4.20, Ohijärvi)
~/jolla - is folder your Jollas µSD will be mounted to on you PC
-o follow_symlinks - is a command to follow symlinks on the µSD card
fusermount -u ~/jolla
to unmount µSD card from your PC
-- Usefull commands from the developer mode:
##########################################################################################
- program for creation and manipulation of partition tables
[root@localhost nemo]# fdisk -l
[root@localhost nemo]# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/mmcblk0'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/mmcblk0: 15.6 GB, 15634268160 bytes, 30535680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 4294967295 2147483647+ ee GPT
Disk /dev/mmcblk1: 31.9 GB, 31914983424 bytes, 62333952 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk1p1 8192 62333951 31162880 c W95 FAT32 (LBA)
- df displays the amount of disk space available on the file system / µSD card
[root@localhost nemo]# df -h
[root@localhost nemo]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 14G 6.0G 7.3G 46% /
/dev/mmcblk0p28 14G 6.0G 7.3G 46% /
devtmpfs 406M 64K 406M 1% /dev
tmpfs 407M 4.4M 402M 2% /dev/shm
tmpfs 407M 21M 386M 5% /run
tmpfs 407M 0 407M 0% /sys/fs/cgroup
tmpfs 407M 16K 407M 1% /tmp
/dev/mmcblk0p28 14G 6.0G 7.3G 46% /swap
/dev/mmcblk0p19 8.0M 4.1M 3.9M 52% /drm
/dev/mmcblk0p25 8.0M 4.2M 3.8M 54% /persist
/dev/mmcblk0p28 14G 6.0G 7.3G 46% /home
/dev/mmcblk0p9 48M 9.4M 38M 20% /var/systemlog
/dev/mmcblk0p18 64M 45M 20M 70% /firmware
tmpfs 407M 0 407M 0% /mnt/asec
tmpfs 407M 0 407M 0% /mnt/obb
/dev/mmcblk1p1 30G 28G 2.3G 93% /run/user/100000/media/sdcard
- du - estimate file space usage, summarize disk usage of each FILE, recursively for directories.
[nemo@localhost ~]$ du -h
- lsblk - list block devices.
[root@localhost Jolla]# lsblk
[root@localhost Jolla]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 14.6G 0 disk
├─mmcblk0p1 179:1 0 4M 0 part
├─mmcblk0p2 179:2 0 32M 0 part
├─mmcblk0p3 179:3 0 4M 0 part
├─mmcblk0p4 179:4 0 4M 0 part
├─mmcblk0p5 179:5 0 4M 0 part
├─mmcblk0p6 179:6 0 2M 0 part
├─mmcblk0p7 179:7 0 2M 0 part
├─mmcblk0p8 179:8 0 4M 0 part
├─mmcblk0p9 179:9 0 48M 0 part /var/systemlog
├─mmcblk0p10 179:10 0 4M 0 part
├─mmcblk0p11 179:11 0 4M 0 part
├─mmcblk0p12 179:12 0 2M 0 part
├─mmcblk0p13 179:13 0 2M 0 part
├─mmcblk0p14 179:14 0 2M 0 part
├─mmcblk0p15 179:15 0 2M 0 part
├─mmcblk0p16 179:16 0 2M 0 part
├─mmcblk0p17 179:17 0 2M 0 part
├─mmcblk0p18 179:18 0 64M 0 part /firmware
├─mmcblk0p19 179:19 0 8M 0 part /drm
├─mmcblk0p20 179:20 0 12M 0 part
├─mmcblk0p21 179:21 0 12M 0 part
├─mmcblk0p22 179:22 0 8M 0 part
├─mmcblk0p23 179:23 0 8M 0 part
├─mmcblk0p24 179:24 0 508M 0 part [SWAP]
├─mmcblk0p25 179:25 0 8M 0 part /persist
├─mmcblk0p26 179:26 0 8K 0 part
├─mmcblk0p27 179:27 0 8M 0 part
└─mmcblk0p28 179:28 0 13.8G 0 part /
mmcblk1 179:32 0 7.4G 0 disk
└─mmcblk1p1 179:33 0 7.4G 0 part
-- How user can take backups out of device to SD post over here, creating tar file
- to create back up on your Jolla -> Settings -> Backup (pick what you want to backup - Accounts, Browser, Gallery, Playlists, Messaging, People, Phone) -> Create
- Backup files are located in Jolla memory in
/home/nemo/.vault
hidden folder
- check that the µSD card is mounted
[nemo@localhost ~]$ mount | grep media
/dev/mmcblk1p1 on /run/user/100000/media/sdcard type vfat (rw,relatime,uid=100000,gid=100000,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/mmcblk1 on /run/user/100000/media/sdcard type btrfs (rw,relatime,thread_pool=4,ssd,noacl,space_cache)
- and that BackUp has been created on your Jolla
[nemo@localhost ~]$ ls -ald ~/.vault
drwxr-xr-x 1 nemo privileged 144 2014-03-18 09:42 /home/nemo/.vault
- to check what is the size of the backup folder
[nemo@localhost ~]$ du ?????
- create a BackUp file "vault.tar" to your µSD card (I think it could be a good practise to date the file vault_20140319.tar):
[nemo@localhost ~]$ tar cf $XDG_RUNTIME_DIR/media/sdcard/vault.tar -C $HOME .vault
- to check that the BackUp has been created:
[nemo@localhost sdcard]$ ls -ila /run/user/100000/media/sdcard/vault*
13194 -rwxr-xr-x 1 nemo nemo 1544919040 2014-03-19 11:44 /run/user/100000/media/sdcard/vault.tar
ToDo:
- copying files to µSD card over cable
-
Thank you for the summary!
Unfortunately, even after the upgrade to 1.0.4.20 it is not possible to use a 64GB MicroSD-card without Problems - the paths in the file-Manager and in saildock are not matching anymore and using such a Card can cause a serious mess in your home-directory - (https://together.jolla.com/question/33840/home-directory-totally-messed-up-after-changing-sd-card-after-update-to-10420/)
R.G. Sidler ( 2014-03-18 14:58:24 +0200 )editthanks for this wiki, but at first you mention that jolla supports SDXC but then you state that "Jolla supports up to 64GB µSDHC cards"
So is SDXC supported?
c.la ( 2014-03-18 15:08:07 +0200 )editWell, I can answer this for you - by specification, there is no such thing as "64GB µSDHC", it has to be a SDXC (http://en.wikipedia.org/wiki/SDXC#SDXC, http://en.wikipedia.org/wiki/SDXC#SDHC)
R.G. Sidler ( 2014-03-18 15:13:17 +0200 )edit@c.la
m2 ( 2014-03-18 15:34:31 +0200 )editI have made a mistake, as @R.G. Sidler pointed out, it should have been for the 64 GB µSDXC , I have corrected the post now.
Does someone know for sure if Jolla is UHS-I compatible?
Neo ( 2014-03-18 20:18:12 +0200 )edit