pycage / cargodock

A file manager for Sailfish devices
GNU General Public License v2.0
18 stars 11 forks source link

Missing SD card #27

Open V-Z opened 5 years ago

V-Z commented 5 years ago

Hello, in Cargo Dock 0.2.6 I don't see inserted 32 GB SD card (formatted to ext4), I have to navigate to its content through Developer Mode | System /run/media/nemo/, which is not very convenient. I'd expect it to be listed in the Storage section to be directly accessible.

Wedmer commented 5 years ago

Latest release is 0.2.8-4

V-Z commented 5 years ago

That version is not available in the Jolla Store (only in OpenRepos, I know). Isn't it worthy to have latest release in Jolla official store? Anyway, the OpenRepos version 0.2.8 behaves the same.

Wedmer commented 5 years ago

I can' t publish it there for now. Also I need info about your device.

V-Z commented 5 years ago

Intex Aqua Fish converted to Jolla C and updated via normal update tool to Sailfish OS 3.0.3.9.

V-Z commented 5 years ago

I tried with another 32 GB Ext4 SD card and it was same, so no problem of particular SD card.

Wedmer commented 5 years ago

Have you tried btrfs formatted card?

V-Z commented 5 years ago

I did, Btrfs formatted card (sudo mkfs.btrfs -f /dev/mmcblk0p1) is not detected at all. This might be because I have newest Linux kernel 5.1 and Btrfs drivers differ in older kernels.

When I format it in the phone (vfat), it's displayed in the Cargo Dock. When I format the card to Ext4 with sudo mkfs.ext4 /dev/mmcblk0p1 (in Linux desktop), it's correctly displayed in the Cargo Dock, but if I change its label by sudo tune2fs -L sailfish /dev/mmcblk0p1, it's not shown in Cargo Dock anymore, although it's otherwise working well.

Wedmer commented 5 years ago

https://github.com/pycage/cargodock/blob/1e0983671b9ae26b631ea51f7768af2bc66162b8/src/placesmodel.cpp#L26 That's how Cargo Dock looks for sd card. I think this will be changed when I'll have enough free time.

Pohli commented 5 years ago

I have the same problem, so I just bookmarked the memory card to be able to access it quickly.

Jolla Phone with SFOS 3.0.1.11 and Cargo Dock 0.2.10

Wedmer commented 5 years ago

Need output of mount command to find what's wrong

V-Z commented 5 years ago
[root@Sailfish nemo]# uname -a
Linux Sailfish 3.10.49+0.0.87 #1 SMP PREEMPT Mon Mar 25 15:16:01 UTC 2019 armv7l armv7l armv7l GNU/Linux
[root@Sailfish nemo]# lsb
[root@Sailfish nemo]# lsb_release -a
LSB Version:    :core-3.1-arm:core-3.1-noarch:core-3.2-arm:core-3.2-noarch:core-4.0-arm:core-4.0-noarch:desktop-3.1-arm:desktop-3.1-noarch:desktop-3.2-arm:desktop-3.2-noarch:desktop-4.0-arm:desktop-4.0-noarch
Distributor ID: n/a
Description:    (none)
Release:        n/a
Codename:       n/a
[root@Sailfish nemo]#
[root@Sailfish nemo]# mount -v /dev/mmcblk1p1 /home/nemo/card
mount: /dev/mmcblk1p1 mounted on /home/nemo/card.
[root@Sailfish nemo]#
[root@Sailfish nemo]# mount | grep mmcblk1p1
/dev/mmcblk1p1 on /home/nemo/card type ext4 (rw,relatime,data=ordered)
/dev/mmcblk1p1 on /opt/alien/home/nemo/card type ext4 (rw,relatime,data=ordered)
[root@Sailfish nemo]#
[root@Sailfish nemo]# fdisk -l /dev/mmcblk1p1
Disk /dev/mmcblk1p1: 29.5 GiB, 31619809280 bytes, 61757440 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
[root@Sailfish nemo]#
[root@Sailfish nemo]# mount | grep mmcblk1p1
/dev/mmcblk1p1 on /run/media/nemo/sailfish type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/mmcblk1p1 on /opt/alien/run/media/nemo/sailfish type ext4 (rw,nosuid,nodev,relatime,data=ordered)
Pohli commented 5 years ago
[nemo@Sailfish ~]$ uname -a
Linux Sailfish 3.4.108.20181002.1 #1 SMP PREEMPT Thu Dec 6 05:02:32 UTC 2018 armv7l armv7l armv7l GNU/Linux
[nemo@Sailfish ~]$ mount | grep mmcblk1
/dev/mmcblk1p1 on /run/media/nemo/jsd type btrfs (rw,nosuid,nodev,relatime,ssd,noacl,space_cache,uhelper=udisks2)
/dev/mmcblk1p1 on /opt/alien/run/media/nemo/jsd type btrfs (rw,nosuid,nodev,relatime,ssd,noacl,space_cache)
Wedmer commented 4 years ago

Quick fix for auto-mounted partitions released.