How to use a virtual sdcard
Hello,
I would like to be able to mount a fake (that is virtual) sdcard to use it just like a real one. This is done on a Xperia X with Sailfish OS 3.1.0.11.
But I've had no success so far.
First here is what is present on the device:
$ ls -l /sdcard
lrwxrwxrwx 1 root root 21 Dec 21 15:22 /sdcard -> /storage/self/primary
And /storage/self/primary doesn't exist on the filesystem, as can be seen in the /storage directory:
$ ls -la /storage/
lrwxrwxrwx 1 root root 7 Jul 19 1971 sdcard0 -> /sdcard
Then here is what I did:
# dd if=/dev/zero bs=1M count=256 of=sd.raw
# mkfs.ext4 sd.raw
# rm /sdcard
# mount sd.raw /sdcard
My ext4 volume is well mounted, but the Sailfish OS doesn't show it as mounted in Settings > Backup
What am I doing wrong? How could this be achived?
Thank you