PDA

View Full Version : Format microsd card on jolla (2.0.5.6)


n950
2017-01-13, 18:59
Hello,

I want to follow this guide to format my microsd card 128 GB:

-- 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)

At this step i have an error:

mount -o subvolid=0 /dev/mmcblk1 /media/sdcard

It says:

mount wrong fs type bad option bad superblock on /dev/mmcblk1...

How to format card in btrfs and use it on SFOS?

Thanks

juiceme
2017-01-13, 19:53
I'd rather use ext4 on the sdcard rather than btrfs.
I have used both but in the long run I'd say you probably will have less problems using ext4

mrsellout
2017-01-13, 20:21
I'd rather use ext4 on the sdcard rather than btrfs.
I have used both but in the long run I'd say you probably will have less problems using ext4
Also, when/if you buy a future Sailfish device, it's kernel won't have btrfs enabled by default*, so you won't be able to just put your card in the next device and expect to transfer settings and continue using the data on it.


As for formatting your sd card, open the Settings app, go to Storage > Memory card, and I think there should be a format option in the pulley menu.

*At least in the Jolla C, they've gone over to using ext4.

pichlo
2017-01-13, 20:29
I'd rather use ext4 on the sdcard rather than btrfs.
I have used both but in the long run I'd say you probably will have less problems using ext4

What he says.

Also, why bother with the command line. In 2.0.5 you have a GUI option to format the card. Settings -> Storage, click on the memory card clock thingy, pull Format from the menu. For an added benefit, that will format it to ext4 ;)

Edit: Oop, mrsellout has beaten me.

n950
2017-01-14, 06:39
I have a problem.

It's not mounted how to do it?

HtheB
2017-01-14, 15:59
I have a problem.

It's not mounted how to do it?

You can format the card on a Windows pc to "exfat".

After that, just install the exfat support on your Jolla from the Warehouse:

for Jolla: https://openrepos.net/content/bloodyfoxy/fuse-exfat
for Jolla C: https://openrepos.net/content/v10lator/v10filesystems

reboot the phone, it should automatically mount the micro sd card for you, and you can still use the card on your Windows PC :)

pichlo
2017-01-14, 17:14
I have a problem.

It's not mounted how to do it?

As a general rule, the answer to, "how do I do X in Sailfish?" is, "long press."
In this case, a long press on the clock representing the SD card in Settings -> Storage.

n950
2017-02-06, 07:58
I have another problem:

the selected storage is not writable when i try to save my Jolla.

Why?

pichlo
2017-02-06, 08:26
Check your card. Things like that often happen with dodgy cards.

n950
2017-02-08, 17:11
Check your card. Things like that often happen with dodgy cards.

how can i checkm
what is that?

pichlo
2017-02-09, 06:08
how can i check

Take it out, put it in a card reader and try it on your PC. Simples.