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

[bug] btrfs formatted sdcard not accessible from MTP [released]

asked 2014-08-21 11:58:57 +0200

chemist gravatar image

updated 2015-04-21 14:07:31 +0200

Recognized it a few days back and today @Juuba asked me about it and confirmed that the SDcard gets exported on windows (Win7 Enterprise) but is ro or empty, the same (ro & empty) is for linux (Debian Jessie mtp-tools 1.1.6-51).

While writing this, jubba tried around and after copying files via scp, folders show and he can actually write to the btrfs-sdcard exported via MTP to his win7e box. The btrfs-subvolume was empty before. UPDATE After an attempt to add a folder it stopped working again.

I cannot say that this is the same for linux, my sdcard is packed but a no-show with MTP after all.

There is an issue with having no subvolumes and with having subvolumes (I have 2 subvolumes both mounted, jubba did have no subvolumes iirc).

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by chemist
close date 2015-04-21 14:07:41.264229

Comments

1

Yes, for a moment the windows7 could see the items on the SD Card over MTP. I also could create a folder called "New Folder" on the SD card with windows Explorer. After a moment the connection was lost/reset somehow, and I could not copy anything anymore.

Screenshot here: http://i.imgur.com/hgIyjDz.png you can see the "New Folder" in there.

After that I connected over SCP again, and I cannot see the "New Folder" there currently.

Juuba ( 2014-08-21 12:11:18 +0200 )edit

Just reproduced: After copying some more files, I re-connected Jolla with "PC connection" to my Windows 7. I can again see the "SD Card" and copy music on it. Also re-created "New Folder".

This time the folder could be seen afterwards when looking at the contents over scp

Juuba ( 2014-08-21 12:44:23 +0200 )edit

Linux says libmtp cannot send object info and the trick with creating a folder via scp later showing in MTP does not work.

chemist ( 2014-08-21 19:32:59 +0200 )edit

seems fixed in 1.1.4 so closing this ahead of release, if you still run into trouble, re-open please.

chemist ( 2015-04-21 14:08:27 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2015-03-09 14:27:02 +0200

gnikandrov gravatar image

Let me guess, you've used the guide to share btrfs-formatted card with android runtime? The problem is that the same device is shared between android runtime and mtp daemon tries to write to android subvolume which has different permissions.

My solution was: to modify /etc/fsstorage.d/sd-storage-conf.xml the following way: change blockdev to filesystem path (be sure to put your one) and change removable to false. Be sure to backup it.

<?xml version="1.0" encoding="UTF-8"?>
<storage name="media" path="/media/sdcard/ac86d2d4-0591-4846-920d-a20ad30dc273" description="SD Card" removable="false"></storage>
edit flag offensive delete publish link more

Question tools

Follow
5 followers

Stats

Asked: 2014-08-21 11:58:57 +0200

Seen: 671 times

Last updated: Mar 09 '15