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

Running out of space. Check your data storage.

asked 2017-12-12 11:48:31 +0200

objectifnul gravatar image

updated 2017-12-12 16:41:44 +0200

Extract of Oct. 18 collaboration meeting log: "No safe solutions exist to the two problems: losing 7 GB to factory reset, and too small system partition (rootfs); we'll have in mind to enlarge rootfs in future devices, for now just install less apps and use SD card".

Extract of Nov. 30 collaboration meeting log: "Q: Any work in progress regarding partitioning scheme in SailfishX/XperiaX?" "A: Not prioritised on that at the moment"

Current internal storage status of my Xperia: out_of_space storage Is there any simple, safe, clear, unambiguous, confirmed solution for this critical issue Jolla doesn't care about until further notice? (Except "do not install or upgrade apps on this device", of course)

edit retag flag offensive close delete


I had the same problem with the last update, the installer told me I need at least 600mb(or something like this?). This was the first time I realized the system partition is already full. So I uninstalled some applications to get free space for the update installation. Making root only 2,4 Gib is not a good Idea and should be fixed. Sure they wanted to have much space for user data, but this is what SD-Cards are for. (And a hint as a BTRFS fan, with BTRFS this could have been solved really elegant)

Hangman ( 2017-12-16 20:26:18 +0200 )edit

3 Answers

Sort by » oldest newest most voted

answered 2017-12-13 09:45:31 +0200

rinigus gravatar image

I would suggest to use symlinks and move data from /usr to /home and avoid altering partitioning. This requires running some commands in the terminal as root, but there is nothing special about it if you have Linux knowledge.

In the following HOWTO I assume that RPM will not start bugging you about wrong locations or doing something silly about it. Same for ldd when you run the program. It has to be confirmed, either by you or someone else.

Short HOWTO:

  1. Start by learning what is using the harddisk space. Install Space Inspector and look which apps take the most space. If you are lucky, you'll have a bunch of /usr/share/harbour-* as the main offenders. I think its safe to move those (see below), don't touch others to be sure.

  2. Make directory to move the largest share dirs to: mkdir -p /home/usr/share

  3. Close the apps that may use shared dirs that you want to move.

  4. Move the biggest share directories into new /home/usr/share. For each moved directory, make symbolic link from /usr/share/ to the new location

I would suggest to test on one of the apps that has libraries bundled into /usr/share first. That way you'll be sure that it works.

On uninstall, you will probably have to either move it back or delete the folder in /home/usr/share manually. Hence its recommended only for bigger apps, no need to move all.

edit flag offensive delete publish link more


Would it not be more sensible to add an option to install applications on whatever partition I like including SD card, as it happened on Symbian more than ten years ago?

Giacomo Di Giacomo ( 2017-12-13 10:29:16 +0200 )edit

Great! In my case, just moving four folders "harbour-osmscout*" was enough to increase available system space by about 150 Gb. That will be sufficient for now. Thanks.

objectifnul ( 2017-12-13 10:53:23 +0200 )edit

Wow, if you gain 150 GB, I'm doing it right now. :-D Seriously, great. I removed osmscout due to the high occupation in the root partition. Now I can reinstall it. Anybody tried with SD card?

Giacomo Di Giacomo ( 2017-12-13 10:59:29 +0200 )edit

@giacomo-di-giacomo Mb, not Gb, sorry. Symbian was definitely a well-designed system, where useful lessons are still to be learned. By the way, "ambience" is also a big memory eater (31 Mb)

objectifnul ( 2017-12-13 11:08:27 +0200 )edit

OSM Scout Server has to provide lots of libraries and Noto fonts. Fonts are used by Mapnik, so if you move to Mapbox GL map client, this will be not needed since the fonts for that backend are provided together with maps.

As for moving to SDCard: should be possible. Although, some things may not work that require permissions or symlinks, depending on SD Card filesystems. I would suggest to move to internal storage still. The data, such as offline maps, are fine on SDCard.

I wouldn't move ambience - its used by OS and woudn't touch it.

rinigus ( 2017-12-13 11:57:58 +0200 )edit

answered 2017-12-12 12:15:41 +0200

Giacomo Di Giacomo gravatar image

You can carry out the hack described here.

edit flag offensive delete publish link more


I saw it. I didn't dare to carry it out on my Xperia, as (i) it's intended for Jolla C, (ii) I read this: "WARNING: Reducing active logical volume to 7.89 GiB THIS MAY DESTROY YOUR DATA (filesystem etc.)".

So I'm looking for a confirmed solution intended for Xperia/SailfishX.

objectifnul ( 2017-12-12 12:29:46 +0200 )edit

It has been confirmed to work. I did not yet try it though. The difference is that to enter recovery mode, while holding the volume down button you must not turn on the device but insert the USB cable. Maybe some care with sizes in resize2fs should be appropriate to avoid data loss.

Giacomo Di Giacomo ( 2017-12-12 12:35:07 +0200 )edit

ehem - to my knowledge one cannot enter recovery mode in Xperia ? (as is required by the hack)

ehakkarainen ( 2017-12-12 14:35:35 +0200 )edit

See my comment above.

Giacomo Di Giacomo ( 2017-12-12 14:57:51 +0200 )edit

@ehakkarainen : You can. It just happens not to be installed by the default flashscript, but it's packaged with SailfishX.

To install:

  • put your phone in fastboot mode:
    • Turn off
    • Hold the Volume Down button
    • Plug the USB cable
    • The light on the Xperia turn blue
  • now, from the directory where you decompressed the SailfishX zip file :
    • fastboot flash recovery hybris-recovery.img
    • Now Sailfish Recovery works (holding Volume Up) instead of whatever Android Recovery you did install before there
  • alternatively, to directly start Recovery :
    • fastboot boot hybris-recovery.img
    • that loads recovery image of the USB and immediately boots it instead of flashing it.
DrYak ( 2017-12-12 15:17:30 +0200 )edit

answered 2017-12-14 21:58:09 +0200

Thoric gravatar image

updated 2017-12-14 23:00:09 +0200

see also https://together.jolla.com/question/174491/sailfish-x-is-there-a-way-to-increase-the-size-of-the-system-data-partition/. I use it for my Xperia X. The answer is perfect: for me it was THE solution.

see the picture... image description

So there is no more needs to play with symlinks : It's directly normal space available for apps on the system partition.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2017-12-12 11:48:31 +0200

Seen: 1,410 times

Last updated: Dec 14 '17