Auto-mount sdcard exFAT problem [answered]
Hello everyone,
I did the upgrade to 1.1.4.28 (sdcard was inside during the upgrade process) and now I don't see anything in the /media/sdacrd/E071-F479/. I am using fuse exfat on a 64GB card. I am not sure if the upgrade did something since I don't use the phone daily and I didn't check the content of the card before the upgrade. I created a folder Test just to see that I am able to write in the folder /media/sdacrd/E071-F479. I want to know if there was something changed in the way the sdcard is treated with this release.
[root@Jolla E071-F479]# mount
/dev/mmcblk0p28 on / type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) devtmpfs on /dev type devtmpfs (rw,relatime,size=412912k,nr_inodes=103228,mode=755) none on /proc type proc (rw,relatime) none on /sys type sysfs (rw,relatime) tmpfs on /dev/shm type tmpfs (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd) cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio,net_cls) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) debugfs on /sys/kernel/debug type debugfs (rw,relatime) tmpfs on /tmp type tmpfs (rw) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) mtp on /dev/mtp type functionfs (rw,relatime) /dev/mmcblk0p19 on /drm type ext4 (rw,nosuid,nodev,relatime,data=ordered) /dev/mmcblk0p18 on /firmware type vfat (ro,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro) /dev/mmcblk0p25 on /persist type ext4 (ro,nosuid,nodev,relatime,data=ordered) /dev/mmcblk0p28 on /home type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) /dev/mmcblk0p9 on /var/systemlog type ext4 (rw,nosuid,nodev,relatime,data=ordered) statefs on /run/state type fuse.statefs (rw,nosuid,nodev,relatime,user_id=0,group_id=998,default_permissions,allow_other) tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000) tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000) /dev/mmcblk0p28 on /opt/alien/bin type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) /dev/mmcblk0p28 on /opt/alien/sbin type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) /dev/mmcblk0p28 on /opt/alien/lib type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) /dev/mmcblk0p28 on /opt/alien/usr type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) /dev/mmcblk0p28 on /opt/alien/var type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) /dev/mmcblk0p28 on /opt/alien/etc type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) tmpfs on /opt/alien/tmp type tmpfs (rw) /dev/mmcblk0p28 on /opt/alien/home type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) /dev/mmcblk0p28 on /opt/alien/vendor type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) /dev/mmcblk0p28 on /opt/alien/data type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) devtmpfs on /opt/alien/dev type devtmpfs (rw,relatime,size=412912k,nr_inodes=103228,mode=755) tmpfs on /opt/alien/dev/shm type tmpfs (rw,relatime) devpts on /opt/alien/dev/pts type devpts (rw,relatime,gid=5,mode=620) mtp on /opt/alien/dev/mtp type functionfs (rw,relatime) none on /opt/alien/sys type sysfs (rw,relatime) tmpfs on /opt/alien/sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755) cgroup on /opt/alien/sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd) cgroup on /opt/alien/sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug) cgroup on /opt/alien/sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu) cgroup on /opt/alien/sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /opt/alien/sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /opt/alien/sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /opt/alien/sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio,net_cls) cgroup on /opt/alien/sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /opt/alien/sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) debugfs on /opt/alien/sys/kernel/debug type debugfs (rw,relatime) fusectl on /opt/alien/sys/fs/fuse/connections type fusectl (rw,relatime) tmpfs on /opt/alien/run type tmpfs (rw,nosuid,nodev,mode=755) statefs on /opt/alien/run/state type fuse.statefs (rw,nosuid,nodev,relatime,user_id=0,group_id=998,default_permissions,allow_other) /dev/mmcblk0p28 on /opt/alien/media type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) /dev/mmcblk0p28 on /opt/alien/system_jolla type btrfs (rw,noatime,thread_pool=4,ssd,noacl,space_cache,autodefrag) proc on /opt/alien/proc type proc (rw,relatime) /dev/fuse on /opt/alien/home/nemo/android_storage type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other) /dev/fuse on /home/nemo/android_storage type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other) statefs on /run/user/100000/state type fuse.statefs (rw,nosuid,nodev,relatime,user_id=100000,group_id=100000,default_permissions,allow_other) statefs on /opt/alien/run/user/100000/state type fuse.statefs (rw,nosuid,nodev,relatime,user_id=100000,group_id=100000,default_permissions,allow_other)
[root@Jolla E071-F479]# ls -al
total 0 drwxr-xr-x 1 nemo nemo 8 Apr 18 09:27 . drwxr-xr-x 1 nemo nemo 18 Jun 27 2014 .. drwxr-xr-x 1 nemo nemo 0 Apr 18 09:27 Test
[root@Jolla E071-F479]# ls -al ../
total 0 drwxr-xr-x 1 nemo nemo 18 Jun 27 2014 . drwxr-xr-x 1 root root 12 Jun 27 2014 .. drwxr-xr-x 1 nemo nemo 8 Apr 18 09:27 E071-F479
[root@Jolla E071-F479]# df -m
Filesystem 1M-blocks Used Available Use% Mounted on rootfs 14078 10283 3484 75% / /dev/mmcblk0p28 14078 10283 3484 75% / devtmpfs 404 1 404 1% /dev tmpfs 405 1 405 1% /dev/shm tmpfs 405 31 374 8% /run tmpfs 405 0 405 0% /sys/fs/cgroup tmpfs 405 1 405 1% /tmp /dev/mmcblk0p19 8 5 4 52% /drm /dev/mmcblk0p18 64 45 20 70% /firmware /dev/mmcblk0p25 8 5 4 53% /persist /dev/mmcblk0p28 14078 10283 3484 75% /home /dev/mmcblk0p9 48 11 38 22% /var/systemlog tmpfs 405 0 405 0% /mnt/asec tmpfs 405 0 405 0% /mnt/obb /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/bin /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/sbin /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/lib /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/usr /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/var /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/etc tmpfs 405 1 405 1% /opt/alien/tmp /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/home /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/vendor /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/data devtmpfs 404 1 404 1% /opt/alien/dev tmpfs 405 1 405 1% /opt/alien/dev/shm tmpfs 405 0 405 0% /opt/alien/sys/fs/cgroup tmpfs 405 31 374 8% /opt/alien/run /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/media /dev/mmcblk0p28 14078 10283 3484 75% /opt/alien/system_jolla /dev/fuse 14078 10283 3484 75% /opt/alien/home/nemo/android_storage /dev/fuse 14078 10283 3484 75% /home/nemo/android_storage
[root@Jolla E071-F479]# fdisk -l
Disk /dev/zram0: 52.6 MiB, 55160832 bytes, 13467 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/zram1: 52.6 MiB, 55160832 bytes, 13467 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 14.6 GiB, 15634268160 bytes, 30535680 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 Disklabel type: gpt Disk identifier: 98101B32-BBE2-4BF2-A06E-2BB33D000C20
Device Start End Sectors Size Type /dev/mmcblk0p1 34 8191 8158 4M Linux filesystem /dev/mmcblk0p2 65536 131071 65536 32M Linux filesystem /dev/mmcblk0p3 131072 139263 8192 4M Linux filesystem /dev/mmcblk0p4 139264 147455 8192 4M Linux filesystem /dev/mmcblk0p5 147456 155647 8192 4M Linux filesystem /dev/mmcblk0p6 155648 159743 4096 2M Linux filesystem /dev/mmcblk0p7 159744 163839 4096 2M Linux filesystem /dev/mmcblk0p8 196608 204799 8192 4M unknown /dev/mmcblk0p9 262144 360447 98304 48M Linux filesystem /dev/mmcblk0p10 360448 368639 8192 4M unknown /dev/mmcblk0p11 368640 376831 8192 4M unknown /dev/mmcblk0p12 376832 380927 4096 2M unknown /dev/mmcblk0p13 380928 385023 4096 2M unknown /dev/mmcblk0p14 385024 389119 4096 2M unknown /dev/mmcblk0p15 389120 393215 4096 2M unknown /dev/mmcblk0p16 393216 397311 4096 2M unknown /dev/mmcblk0p17 397312 401407 4096 2M unknown /dev/mmcblk0p18 401408 532479 131072 64M Microsoft basic data /dev/mmcblk0p19 532480 548863 16384 8M Linux filesystem /dev/mmcblk0p20 548864 573439 24576 12M unknown /dev/mmcblk0p21 573440 598015 24576 12M unknown /dev/mmcblk0p22 598016 614399 16384 8M Linux filesystem /dev/mmcblk0p23 614400 630783 16384 8M Linux filesystem /dev/mmcblk0p24 630784 1671151 1040368 508M Linux filesystem /dev/mmcblk0p25 1671152 1687535 16384 8M Linux filesystem /dev/mmcblk0p26 1687536 1687551 16 8K unknown /dev/mmcblk0p27 1687552 1703935 16384 8M unknown /dev/mmcblk0p28 1703936 30535646 28831711 13.8G Linux filesystem
Disk /dev/mmcblk1: 58.6 GiB, 62881005568 bytes, 122814464 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 Disklabel type: dos Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type /dev/mmcblk1p1 32768 122814463 122781696 58.6G 7 HPFS/NTFS/exFAT
[root@Jolla E071-F479]#
EDIT: Looks like the mount has some problems with my card. Any ideas?
[root@Jolla nemo]# journalctl | grep mount
Apr 18 19:19:02 Jolla systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. Apr 18 19:19:02 Jolla systemd[1]: Starting Remount Root and Kernel File Systems... Apr 18 19:19:03 Jolla systemd[1]: Started Remount Root and Kernel File Systems. Apr 18 19:19:04 Jolla systemd[1]: Mounting FFS mount... Apr 18 19:19:04 Jolla systemd[1]: Mounted FFS mount. Apr 18 19:19:05 Jolla systemd[1]: Mounting drm mount... Apr 18 19:19:05 Jolla kernel: EXT4-fs (mmcblk0p19): mounted filesystem with ordered data mode. Opts: barrier=1 Apr 18 19:19:05 Jolla systemd[1]: Mounting firmware mount... Apr 18 19:19:05 Jolla systemd[1]: Mounted drm mount. Apr 18 19:19:05 Jolla systemd[1]: Mounting persist mount... Apr 18 19:19:05 Jolla systemd[1]: Mounted firmware mount. Apr 18 19:19:05 Jolla kernel: EXT4-fs (mmcblk0p25): mounted filesystem with ordered data mode. Opts: barrier=1 Apr 18 19:19:05 Jolla systemd[1]: Mounted persist mount. Apr 18 19:19:06 Jolla systemd[1]: Starting system-mount\x2dsd.slice. Apr 18 19:19:06 Jolla systemd[1]: Created slice system-mount\x2dsd.slice. Apr 18 19:19:06 Jolla systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. Apr 18 19:19:06 Jolla systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. Apr 18 19:19:06 Jolla systemd[1]: Mounting var-systemlog mount... Apr 18 19:19:06 Jolla kernel: EXT4-fs (mmcblk0p9): mounted filesystem with ordered data mode. Opts: barrier=1 Apr 18 19:19:06 Jolla systemd[1]: Mounted var-systemlog mount. Apr 18 19:19:07 Jolla init: fs_mgr_mount_all returned an error Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/bin Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/sbin Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/lib Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/usr Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/var Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/etc Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/tmp Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/home Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/vendor Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/data Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/dev Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/sys Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/run Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/media Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/system/ Apr 18 19:19:11 Jolla alien.sh[842]: mount /opt/alien/proc Apr 18 19:19:39 Jolla mount-sd[1452]: Called to add mmcblk1p1 Apr 18 19:19:39 Jolla mount-sd[1463]: Called to add mmcblk1 Apr 18 19:19:39 Jolla systemd[1]: mount-sd@mmcblk1p1.service: main process exited, code=exited, status=1/FAILURE Apr 18 19:19:39 Jolla systemd[1]: Unit mount-sd@mmcblk1p1.service entered failed state. Apr 18 19:19:39 Jolla systemd[1]: mount-sd@mmcblk1.service: main process exited, code=exited, status=1/FAILURE Apr 18 19:19:39 Jolla systemd[1]: Unit mount-sd@mmcblk1.service entered failed state.
[root@Jolla system]# fsck.exfat /dev/mmcblk1p1
exfatfsck 1.0.1 Checking file system on /dev/mmcblk1p1. File system version 1.0 Sector size 512 bytes Cluster size 128 KB Volume size 59 GB Used space 12 GB Available space 46 GB Totally 256 directories and 3797 files. File system checking finished. No errors found. [root@Jolla system]#
EDIT: The files are there (on the sdcard). So this looks like a mount problem with exfat and the new release 1.1.4.28:
[root@Jolla nemo]# find / -name mmcblk1p1.service
[root@Jolla nemo]# find / -name mmcblk1.service
[root@Jolla nemo]# mount -t exfat /dev/mmcblk1p1 /media/sdcard/E071-F479/
FUSE exfat 1.0.1
[root@Jolla E071-F479]# ls -al
total 153216 drwxr-xr-x 1 root root 131072 Jan 1 1970 . drwxr-xr-x 1 nemo nemo 18 Jun 27 2014 .. drwxr-xr-x 1 root root 131072 Apr 1 22:02 Apk drwxr-xr-x 1 root root 131072 Jun 12 2014 Aura -rwxr-xr-x 1 root root 156057600 Dec 2 19:30 Backup.tar drwxr-xr-x 1 root root 131072 Apr 5 2014 Music drwxr-xr-x 1 root root 131072 May 24 2014 Old-iGO drwxr-xr-x 1 root root 131072 Apr 3 2014 Playlists
[root@Jolla E071-F479]#
[root@Jolla nemo]# find / -name mount-sd*
/usr/sbin/mount-sd.sh /lib/systemd/system/mount-sd@.service /opt/alien/lib/systemd/system/mount-sd@.service /opt/alien/usr/sbin/mount-sd.sh
[root@Jolla nemo]# cat /lib/systemd/system/mount-sd@.service
[Unit] Description=Handle sdcard After=init-done.service dev-%i.device BindsTo=dev-%i.device Conflicts=rescue.target actdead.target factory-test.target
[Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/sbin/mount-sd.sh add %i ExecStop=/usr/sbin/mount-sd.sh remove %I
[root@Jolla nemo]#