How to mount Jolla's internal storage as mass storage mode? (In attempt to recover files)

I’m trying to get testdisk or photorec recovery programs to see the the internal storage (as a drive) correctly.

Is this the right approach or is this approach in vain? First of all, if there was a way to accomplish the mounting as “just another hdd” in Ubuntu.

Thanks. I have no SD-card in the phone and this is Jolla One, fully updated.

login in to telnet, umount your partitions, if mounted, mount sd card. dd image of partition to sd card. work with image.

2 Likes

Follow coderus approach.
Or you compile on device and run it there directly.

I don’t think photorec or testdisk is able to recover files on btrfs.

1 Like

Yes, you are right.
So no chance at all? :frowning:

On a similar theme, how am I supposed to do a backup? The inbuilt one is buggy and doesn’t cover system partition.

On MotoG2, I used TWRP but it can’t read the encrypted BTRFS partition on my XA2.

?
The internal one backups some user data and selected configuration only…
Not partition wise!

?
That does not go together.
For XA2 you use recovery shell and cryptsetup and mount and dd, e.g.


and
https://together.jolla.com/question/203121/xa2-full-backup-in-terminal/

1 Like

Fdisk output:

"Device Start End Sectors Size Type
/dev/mmcblk1p1 2048 62333918 62331871 29.7G Linux filesystem

Disk /dev/mapper/sailfish-root: 2.5 GiB, 2621440000 bytes, 5120000 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

Disk /dev/mapper/sailfish-home: 17.6 GiB, 18849202176 bytes, 36814848 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

Disk /dev/mapper/luks-60c02ae6-f85d-407d-8607-ed5ea90488a4: 17.6 GiB, 18847105024 bytes, 36810752 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"

So the partition is encrypted with LUKS v1.
“sailfish-root” is too small to be system.

Awkward but there doesn’t seem to be any choice. A utility to regularly back up ‘home’ would be awesome. Seems rsync can do it connected to a Unix machine.

It even looks borderline impossible to get rid of the encryption, because I don’t particularly want the annoying security features either.

I even used the TWRP version of XA2 (via fastboot) but still no prompt for my PIN.