answered
2019-07-04 21:19:52 +0300
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.
you can try ncdu
coderus ( 2019-07-04 00:57:24 +0300 )editThe first thing I did with my XA2 was to extend the root partition: https://together.jolla.com/question/156279/installing-system-updates-fails-when-there-is-not-enough-space-in-system-data-partition/?answer=156670#post-id-156670
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 )editI 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