REPRODUCIBILITY: 100%
OS VERSION: 5.0.0.62
HARDWARE: Xperia 10 II
UI LANGUAGE: German
REGRESSION: 10GB Backupfile does not copy complete
DESCRIPTION:
My wifes phone crashed (Display) and i wanted to move all the Data from Threema Backup including photos and videos (10GB Backup file) to my computer and then to the Xperia 10 V i got her für the future use with sailfish when it gets an official release. But after a while the copying stops automatically after copying 4.194.304 kb of the 10 GB file. Where is the Limit set? under Sailfish OS or under Windows 11? and how can i extend the max file size that i can copy from Sailfish OS to my Laptop?
PRECONDITIONS:
you need a file that is bigger than 4.194.304 kb that you want to move via usb cable to the PC with windows 11.
STEPS TO REPRODUCE:
- open the folder of the phone where the file is located using your Win 11 PC and copy it. paste it into a random folder on your PC.
- You can also drag an drop the file from one folder (phone) to the other (PC).
EXPECTED RESULT:
File gets copied.
ACTUAL RESULT:
copying fails after moving 4.194.304 kbs of the file to your PC folder. The File is broken and unusable because not complete.
MODIFICATIONS:
ADDITIONAL INFORMATION:
Edit: I also tried it with a different PC with windows 10 and the result is the same!
Looks like the-maximum-file-size issue. It is hard to believe that it is a Win11 partition. Most likely additional storage attached to PC (USB flash drive).
Yes that what i thought too, but i don’t have a Slashdrive or anything like it inserted. everything is NTFS formated. On my 600 GB sized Partition D: is enough space for the backup file. Had never such a bug before… that is complete crazy… copying starts normally. and there is no error message whe the copying stops. the copy window dissapears and the file that is left is exact 4.194.304 kb big.
7zip is available on the phone. If you have enough free space you could make a multi-volume archive of your large file with 7z, making each smaller than 4G, and copy them over.
Or use a better OS on the PC.
1 Like
tried it with win 10 same result. sadly my old linux pc is gone… time to cick that microsoft crap…
Can it be that the phone goes to power saving mode or screen off after this time and also stops copying at the same time? Maybe try to set a longer time for automatic device lock or set it to ‘not used’ or ‘manual’.
my phone is plugged in, so energysaving seems not to be the issue. every time i tried i had different times how long the display was on. i kept it on via touching. what is interesting, that the file no matter what is at the end same size… 
is it possible, that sailfish somewhere uses fat32 settings or SQL? im not so deep into that progrmming stuff, sorry for maybe a stupid question…
@Raymaen This is not a stupid question but imho more a good idea what could be a reason for this. But unfortunately I have no idea how to change it.
File system of the phone memory is EXT4. SD-Card can be fat32 but you can re-format it also to EXT4.
You can check this in /etc/fstab
.
sadly i dont have a compatible micro SD Card. so can’t test that. I am doing a workaround mentioned by @nephros with a Zip manager which I installed as Android app and packed it in to 2 archives. to get the backupfile out of the Phone. i reduced the backup to 5 GB ba deleting several files from it.
Interesting if it apears also on older versions and other phonemodels… EXT4 schould be able to transfer indiviual files in size ob 16 TB…
1 Like
It might be a limitation of copying program. Can you use scp or rsync?
sorry what is scp or rsync?
If you have terminal access on the phone (SailfishOS developer mode) you also can use the linux dd command (dd(1) - Linux manual page) to split the file in to 4GP chunks e.g. p1, p2, p3 and put it together later with the linux cat command ‘cat p? >p’ …
If you feel more comfortable using a GUI rather than diving into scp
or rsync
in command line, I suggest you try SFTP to transfer the backup-file. For example FileZilla is a free client with easy to use GUI, that supports SFPT and is available on Win, Mac and Linux. Enable developer mode on your phone and connect to it with FileZilla using defaultuser
(or nemo
) as username and your developer password, and transfer the file to your computer and from there to your new phone. It should also be possible to transfer a backup directly from one phone to another with FileZilla. FileZilla also supports resuming file transfers (like rsync
) if the connection is lost at some point for any reason.
4 Likes
Agree, that’s the most comfortable way to exchange data/files to and from the phone.
3 Likes
Seems like a problem in SFOS.
I could repro from a Linux host with
qemu-img create foo.img 5G
mtp-sendfile foo.img Documents/foo.img
...
Error sending file.
Error 2: PTP Layer error 2002: get_suggested_storage_id(): could not get storage id from parent id.
Error 2: Error 2002: PTP General Error
Error 2: PTP Layer error a809: send_file_object_info(): Could not send object info.
Error 2: Error a809: Object Too Large
With a size of 3G it works.
If you google that you will find reports of a 32bit problem in sailfish MTP/PTP which are years old. While MTP itself likely does not have a 4G size limit.
Over ssh (winscp on your PC) it will likely work. But you might have to enable ssh on the phone first.
4 Likes
MTP (as a protocol) has no 4G file size limit. Just copied that very 5G file via MTP to a grapheneos device.
Is it possible this is some kind of filesystem issue on file sizes, where the source phone reports the file size to be 10GB, but in reality there is only 4GB of data saved on the phone and rest of the actual data has gone to /dev/null
when making the backup?
There are some differences between sailfish os and windows but not that big. The Threema Backup gets zipped. So the original file would be 17 gb of texsts Videos and pictures over the last 4 years. After zipping its 10gb… but i reduzedt the backupsize to 5gb by deleting 2 years… so the workaround worked with an other Archive that was Split into 3gb and the Rest…
By the way: i love our Community! Everyone is digging in and tries to solve. Thats Great! Thank you!
I will try all the above mentioned workarounds with my Phone when i will Switch to the 10v. Maybe Jolla Looks into that meanwhile… that filetransferissue took me Like forever… Need a Break now 
2 Likes
Thx. I think i Will have to dive into the linuxworld a bit…
i am not that familiar with all the commands… Need to learn some basics first…
1 Like