We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

Sailfish X: Maximum single file size limit 2GB!?

asked 2019-03-12 14:21:00 +0200

deepblue17 gravatar image

updated 2019-03-12 22:16:50 +0200

olf gravatar image

I've a problem unzipping a file with a final file size of about 2.3 GB onto the internal partition. I checked the partition is mounted as ext4. Hence file sizes larger than 2GB should be not a problem, but unzipping the file always stops at 2GB writing to the disk. I understand that file sizes larger than 2GB on FAT partitions would be a problem.

Has anybody else this problem or can at least confirm it?

Any known workarounds or solutions for this bug? With workaround I don't mean splitting the file, that's not an option, I need the complete file as single one.

edit retag flag offensive close delete

Comments

3

ZIP had a limit to 2GB for creating zip files. I guess that limitation does not exist in latest versions, but SFOS might still use an old zip lib(?) Try gzip.

pmelas ( 2019-03-12 15:32:44 +0200 )edit

Thanks for the info. I tried to recompress as 7z, but when I try to uncompress with the file manager (the one through the settings) it just creates the file, but doesn't write anything to the disk. Is there a command line tool available for sailfish? When I try 7z, it only says command not found.

deepblue17 ( 2019-03-15 11:39:34 +0200 )edit

7z is not included or installed by default in SFOS, and I am not sure if you can find 7z libs for SFOS, use bz2 or gzip to create the archive initially.

pmelas ( 2019-03-15 14:00:42 +0200 )edit

2 Answers

Sort by » oldest newest most voted
7

answered 2019-03-12 15:27:50 +0200

coderus gravatar image

Do not use ZIP, use bz2 or lz or any other modern compression algo.

edit flag offensive delete publish link more

Comments

Why should I be forced to recompress the file, if I got it offered as zip file for downloading? And other compression algorithms doesn't solve the problem.

deepblue17 ( 2019-03-15 11:37:28 +0200 )edit
1

answered 2019-03-13 15:50:09 +0200

manu007 gravatar image

Unzip the file into the computer and send the result via scp to your phone under USB conexion.

edit flag offensive delete publish link more

Comments

Thanks for the suggestion. I didn't had a PC with me, but the good old split / cat procedure was working well. So I could transfer the file in two pieces to my phone (after decompression it elsewhere) and then put it afterwards together. I just noticed that the md5sum has changed after that. This makes me a bit worrying about it, as I don't see why that should have happened.

deepblue17 ( 2019-03-15 11:50:48 +0200 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2019-03-12 14:21:00 +0200

Seen: 587 times

Last updated: Mar 13 '19