Ask / Submit

Critical data storage Xperia X/SailfishX

asked 2019-07-04 00:14:14 +0300

objectifnul gravatar image

updated 2019-07-04 00:29:34 +0300

I'm running out of system space again (see, even after having moved some stuff (about 400 Mb) using symlinks.

Settings-Storage-SystemData indicates that 44 Mb are used by system logs. I want to move them to the SD card, but so far I couldn't discover where are currently stored those 44 Mb in the ridiculously small rootfs partition. Any idea?

edit retag flag offensive close delete


you can try ncdu

coderus ( 2019-07-04 00:57:24 +0300 )edit

The first thing I did with my XA2 was to extend the root partition:

This is not an excuse for Jolla to continue producing images with a rootfs size going against basic common sense.

Giacomo Di Giacomo ( 2019-07-04 10:04:23 +0300 )edit

I would vote for re-introducing BTRFS with subvolumes sharing the same partition but I think I am the only know human being that likes that... :-D

DrYak ( 2019-07-04 21:12:33 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-07-04 21:19:52 +0300

DrYak gravatar image

Useful link about how logs work : - Sailfish OS logging and debugging - Android debugging

On Linux, logs are traditionally stored in /var/log as text files.

Sailfish OS is a little bit odd compared to other Linux distributions in that it doesn't use any classical logging daemons (such as rsyslog) and only uses exclusively systemd's journald

(So there should not be much text files around)

Normally, journald is set ( /etc/systemd/journald.conf ) to Storage=auto and will thus store its log databases in /var/log/journal if that exist, or otherwise default to /run/log/journal otherwise. But again, Sailfish OS is set a bit unlike traditional Linux distribution to Storage=volatile which will always store in /run - which is mounted from tmpfs (Linux equivalent of ramdisks) and should be reset on each boot.

(You should not be finding much permanent data in /var/log )

A use full command line tool to investigating space usage, e.g.:

du -sh /{var,run}/log/{,*}

where :

  • du : command to show disk usage
  • option -s : only show the summary for each listed target (instead of a long detail of every single sub-directories too).
  • option -h : show it in human readable form (with KB, MB,etc. unit)
  • /{var,run}/log/{,*} : a complex shell glob pattern that look at both log-file directories, both the directories themselves and their first-level-only sub-directories.
edit flag offensive delete publish link more


Yes, found them. Moved 44 Mb (/var/log/*) to sdcard using symlinks. Journal storage is now "volatile". Thx.

objectifnul ( 2019-07-04 21:45:16 +0300 )edit

If you have to care about 44 MB, you have a serious problem (sooner or later). The long-term solution would be to increase the system partition's size as described here.

Been there, done that.

ziellos ( 2019-07-05 08:50:38 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2019-07-04 00:14:14 +0300

Seen: 289 times

Last updated: Jul 04