Auto mount SD and link to android_storage

asked 2019-12-23 20:53:05 +0200

nerd7473 gravatar image

updated 2019-12-27 07:54:54 +0200

I would like to mount my sd card through FStab but am unsure if I have to use the full path in the listing within fstab. I would also like to link android_storage (or a folder within it) to a folder on my sd card so I can have media and such shared... Music files and video files are the only things not seen on the SD card

edit retag flag offensive close delete

Comments

Current output of lsblk:

AME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 29.1G 0 disk ├─mmcblk0p1 179:1 0 2M 0 part ├─mmcblk0p2 179:2 0 16M 0 part ├─mmcblk0p3 179:3 0 84M 0 part /firmware ├─mmcblk0p4 179:4 0 8K 0 part ├─mmcblk0p5 179:5 0 512K 0 part ├─mmcblk0p6 179:6 0 512K 0 part ├─mmcblk0p7 179:7 0 512K 0 part ├─mmcblk0p8 179:8 0 512K 0 part ├─mmcblk0p9 179:9 0 2M 0 part ├─mmcblk0p10 │ 179:10 0 2M 0 part ├─mmcblk0p11 │ 179:11 0 512K 0 part ├─mmcblk0p12 │ 179:12 0 512K 0 part ├─mmcblk0p13 │ 179:13 0 16M 0 part /dsp ├─mmcblk0p14 │ 179:14 0 1.5M 0 part ├─mmcblk0p15 │ 179:15 0 1.5M 0 part ├─mmcblk0p16 │ 179:16 0 32K 0 part ├─mmcblk0p17 │ 179:17 0 1.5M 0 part ├─mmcblk0p18 │ 179:18 0 16K 0 part ├─mmcblk0p19 │ 179:19 0 11M 0 part ├─mmcblk0p20 │ 179:20 0 1M 0 part ├─mmcblk0p21 │ 179:21 0 1M 0 part ├─mmcblk0p22 │ 179:22 0 64M 0 part ├─mmcblk0p23 │ 179:23 0 1M 0 part ├─mmcblk0p24 │ 179:24 0 256M 0 part ├─mmcblk0p25 │ 179:25 0 32M 0 part /persist ├─mmcblk0p26 │ 179:26 0 512K 0 part ├─mmcblk0p27 │ 179:27 0 512K 0 part ├─mmcblk0p28 │ 179:28 0 400M 0 part /opt/alien ├─mmcblk0p29 │ 179:29 0 32K 0 part ├─mmcblk0p30 │ 179:30 0 512K 0 part ├─mmcblk0p31 │ 179:31 0 256K 0 part ├─mmcblk0p32 │ 259:0 0 4M 0 part ├─mmcblk0p33 │ 259:1 0 256K 0 part ├─mmcblk0p34 │ 259:2 0 256K 0 part ├─mmcblk0p35 │ 259:3 0 256K 0 part ├─mmcblk0p36 │ 259:4 0 256K 0 part ├─mmcblk0p37 │ 259:5 0 256K 0 part ├─mmcblk0p38 │ 259:6 0 256K 0 part ├─mmcblk0p39 │ 259:7 0 8K 0 part ├─mmcblk0p40 │ 259:8 0 40M 0 part ├─mmcblk0p41 │ 259:9 0 40M 0 part ├─mmcblk0p42 │ 259:10 0 64M 0 part ├─mmcblk0p43 │ 259:11 0 32M 0 part ├─mmcblk0p44 │ 259:12 0 10M 0 part ├─mmcblk0p45 │ 259:13 0 16M 0 part ├─mmcblk0p46 │ 259:14 0 20M 0 part ─mmcblk0p47 │ 259:15 0 100K 0 part ├─mmcblk0p48 │ 259:16 0 100K 0 part ├─mmcblk0p49 │ 259:17 0 512K 0 part ├─mmcblk0p50 │ 259:18 0 512K 0 part ├─mmcblk0p51 │ 259:19 0 20.7G 0 part │ ├─sailfish-root │ │ 253:0 0 2.5G 0 lvm / │ └─sailfish-home │ 253:1 0 18.3G 0 lvm /opt/alien └─mmcblk0p52 259:20 0 7.3G 0 part /fimage mmcblk0rpmb 179:32 0 4M 0 disk mmcblk1 179:64 0 119.1G 0 disk └─mmcblk1p1 179:65 0 119.1G 0 part /opt/alien zram0 254:0 0 139.8M 0 disk [SWAP] zram1 254:1 0 139.8M 0 disk [SWAP] zram2 254:2 0 139.8M 0 disk [SWAP] zram3 254:3 0 139.8M 0 disk [SWAP] Sailfish%

shell is zsh

fstab is:

UUID=816f4912-418f-4ff8-9136-9e9c9453033d / ext4 defaults,noatime 0 0 UUID=c2c16339-1b77-47b6-a00c-e224fd4866da /fimage ext4 defaults,noatime 0 0 UUID=08d6d092-ada8-4e9d-91ac-6a67d312deab /home ext4 defaults,noatime 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0

nerd7473 ( 2019-12-23 20:58:22 +0200 )edit

Found installing sd-tools then rebooting actually works... But, the issue lies that media files don't sync up right between android storage and the SD card... i will do more research. And I will link the sd-tools package list from the git repo to here.

nerd7473 ( 2019-12-27 07:53:33 +0200 )edit
2

There's a guide here at TJC, search for guide and externalising.

Pohli ( 2019-12-27 09:16:52 +0200 )edit