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

[Bug] SFOS 2.0.4.14 Jolla1 - sd-card formated with btrfs or ext4 cannot be mounted

asked 2016-10-25 21:46:43 +0300

megalith gravatar image

updated 2016-10-27 00:14:52 +0300

Hello fellers

Following you will find my problem report. if you have more information on this please let me know. Would be great to have a workarround prepaired and or have this fixed soon because of the limitations of vfat.

Thank you very much,

Kind regards,

megalith Phone: Jolla1 OS version: SFOS 2.0.4.14

Problemstatement: sd-card formated with btrfs or ext4 cannot be mounted on Jolla1

Steps to reproduce: 1. Use a 8GB sd-card and format it with Ext-4 or btrfs under Linux. 2. Place the sd-card in your phone. 3. Go to settings and memory. 4. See there the sdcard is not mounted but is showing the right format and the status unmounted. 5. Longpress on the icon of the sdcard to open the menu and choose mount. 6. Nothing happens.

What is working: - The sdcard can be used and is working fine on the PC running linux. - The sdcard is working on a Intex Aquafish with the same version of SFOS installed. - The same sdcard is working fine when I reformat it to vfat.

What has been tested: - different sdcards with 8GB has been used (Cardspeed 4). - sdcards have been reformated - the partition tables has been recreated - sdcards has been tested with tools from www.sdcard.org

Possible cause: - bug in the software release for the jolla1 (this issue seem to be a bug as it is well known; information provided by chemist; thank you)

Workarround (untested by myself): btrfs; format Card from Phone - ext4; mount from comandline on the phone

edit retag flag offensive close delete

Comments

1

I can confirm a similar behaviour. I can add that my sd card (ext4) sometimes, it's mounted at boot. It looks random. When it's not mounted at boot and I try to mount it throught the settings app->memory it woun't mount. When it's mounted at boot, I can unmount it and mount it back. Every time I try to mount it from the command line, it mounts instantly.

Giskard ( 2016-10-26 10:37:30 +0300 )edit

@megalith You may provide more info about the card you use. Manufacturer, speed, type etc. I personally use a Sandisk Ultra XC1 U1 64G formated ext4 and I do not experience any of the problems you mention.

tvicol ( 2016-10-26 10:51:12 +0300 )edit
1

Format to ext4 from phone had not worked for me.

Giskard ( 2016-10-26 23:07:20 +0300 )edit

Hi, just a silly question, are you sure this is not just a owner/permission issue ? formatted in your pc, the partition might get owned by 'you'; user doesn't exist, tighten permission, etc.. something preventing mounting on the jolla. With vfat, there is not such issue. I'm using a 64gb ext4 on jolla C, formatted locally, If I'm remembering well, I had to change owner of the root directory in the sdcard from 'me' to 'nemo' (100000:100000). At least I have to do this for all files I'm copying over ssh (or just give plain permission),

j.lev ( 2016-10-27 12:44:05 +0300 )edit

@j.lev: sure. you have to change owner:group even with btrfs (which, as opposed to ext4, is mounted at boot every time... at least in my case).

Giskard ( 2016-10-27 12:47:42 +0300 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2016-10-26 10:46:38 +0300

chemist gravatar image

updated 2016-10-26 10:48:30 +0300

This is a known issue for a while now.

Best is to format on device and for btrfs do mkfs.btrfs -O ^extref -f /dev/mmcblk1

I neither tested if the JollaC working FS formatted works on my Jolla1 nor did I investigated the "why" and just formatted all cards on the device they are be used in.

(Same issue I had with cameras btw, of course with the supported FS types)

edit flag offensive delete publish link more

Comments

I can confirm that with btrfs format it's mounted on boot (at least, in my few test reboots). Too bad I can't use ext4, which I prefer because it doesn't need balancing.

Giskard ( 2016-10-26 11:47:37 +0300 )edit

I was unable to mount ext4 formatted with another linux at all. Formatted on the devices works for me.

chemist ( 2016-10-26 13:30:24 +0300 )edit
0

answered 2019-02-17 02:18:04 +0300

olf gravatar image

All this works fine, at least since SailfishOS 2.1, provided that one ...

  • formats the filesystem on SD-card with the SailfishOS device.
  • uses -O ^extref when employing a BTRFS filesystem, if interoperability with Jolla 1 phones is required.
edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2016-10-25 21:46:43 +0300

Seen: 602 times

Last updated: Feb 17 '19