XApps don't see sd card

Bug #1619960 reported by Natalia
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
Undecided
Stephen M. Webb
libertine (Ubuntu)
Fix Released
Undecided
Christopher Townsend

Bug Description

XApps (I tried Libre Office, Gimp, gedit...) don't see the SD card. At the same time I see this SD card in File Manager application and after performing "Unlock full access" can work with it normally. Location of SD card in File Manager looks like /media/phablet/... Open file dialog in XApps shows empty folder /media

Revision history for this message
Blade (pulsarsource) wrote :

Same problem here using bq m10

Bolly (bolly)
Changed in canonical-devices-system-image:
status: New → Confirmed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

is this true for all removable media?

Changed in canonical-devices-system-image:
assignee: nobody → Stephen M. Webb (bregma)
Changed in libertine (Ubuntu):
assignee: nobody → Christopher Townsend (townsend)
Revision history for this message
Larry Price (larryprice) wrote :

We don't mount external media by default, so this is currently expected behavior.

On a side note, we've had issues mounting external media in lxc in general. Works fine in a chroot environment after adding the mount.

Revision history for this message
Blade (pulsarsource) wrote :

I'm not sure anything has to be mounted. The problem is: The external media is already mounted by the operating system, and it is being seen by apps as music player and images, but the XApps don't see the already mounted device.

Revision history for this message
Larry Price (larryprice) wrote :

X apps are run in a libertine container. Any paths which a user wants to access must be mounted within the libertine container. Currently we bind-mount several of the basic home directories by default to cover most use-cases. External media is a bit different because it can be added/removed at any time. We have recently implemented a feature to add custom bind-mounts to a libertine container (including external media), but this feature is not available on the m10.

Before closing this bug, we should figure out if we want to try to sweep /media/$USER for any available media before starting a container.

Revision history for this message
Blade (pulsarsource) wrote :

Thanks for the explanation, Larry.

A little more information:
I've tried a workaround based on soft link in any place inside /home pointing to the external SD, but doesn't work either.

Revision history for this message
Larry Price (larryprice) wrote :

That's probably because libertine only mounts parts of /home. You could try creating the link in a directory that libertine definitely mounts, such as /home/phablet/Documents.

Revision history for this message
Blade (pulsarsource) wrote :

Hi Larry, I tried your solution, but in my case didn't work.

I have a SD formated in ext4 (using mkfs.ext4 command from inside the tablet), and mounted from command line in the table, because the mount app doesn't work with this file system (https://bugs.launchpad.net/canonical-devices-system-image/+bug/1584353)

I've mounted on /media/sd

I made a symbolic link in /home/phablet/Documents to /media/sd, and I can see both paths (/media/sd and /home/phablet/Documents/sd) from file explorer tool or media player, but... the office tools don't see the path

Revision history for this message
Stephen M. Webb (bregma) wrote :

@Blade instead of soft linking directories, try mounting the SD card partition directly on /home/phablet/Documents/sd.

Revision history for this message
Christopher Townsend (townsend) wrote :

This should be fixed by doing the following:

libertine-container-manager configure -i $container_id -b add -p /path/to/media

Closing Fix Released.

Changed in libertine (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.