×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

How to clean SM installation - grew too big for some reason

  • Posts: 910
  • Thank you received: 86
Hello,
I have two mounts/setups. Each is operated by RPI4 with Stellarmate 1.5.4.
Each has a 32Gb SD card.
A couple of months ago the two setups were pretty much the same in terms of the storage usage.
Now it's much different.

One shows about 30% of used space, the other - 60%.

No astro images are stored there - only system files.
Only official updates installed.

Is there an easy and safe way to clean up the clutter?

I am not a Linux person...

Thanks in advance!
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 2.
3 years 4 months ago #62443

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
Did you enable debug logging on the one with high disk usage? You may need to remove those logs.
3 years 4 months ago #62445

Please Log in or Create an account to join the conversation.

  • Posts: 910
  • Thank you received: 86
Can they grow this big? I'll check.
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 2.
3 years 4 months ago #62446

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
Open a terminal and type

du -sch .local/share/kstars/logs

If they indeed are very big, you can remove them from that same terminal with

rm -rf .local/share/kstars/logs/*

Note that both commands can also be issued via ssh.
3 years 4 months ago #62447

Please Log in or Create an account to join the conversation.

  • Posts: 910
  • Thank you received: 86
Logs are less than 5Mb...

df -h gives me:
stellarmate@stellarmate:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        30G   17G   11G  62% /
devtmpfs        1.7G     0  1.7G   0% /dev
tmpfs           1.8G     0  1.8G   0% /dev/shm
tmpfs           1.8G  9.6M  1.8G   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.8G     0  1.8G   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   54M  199M  22% /boot
tmpfs           366M  8.0K  365M   1% /run/user/1000
stellarmate@stellarmate:~ $
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 2.
Last edit: 3 years 4 months ago by maxthebuilder.
3 years 4 months ago #62471

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
You can find out what's eating up / by using

du -sch /*

and then ascending into the directory that takes up so much space. For instance, if /var appears to be so big then you can do

du -sch /var/*

and ascend deeper until you find the source of this issue.
3 years 4 months ago #62474

Please Log in or Create an account to join the conversation.

  • Posts: 910
  • Thank you received: 86
I'll try that - thanks much!
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 2.
3 years 4 months ago #62476

Please Log in or Create an account to join the conversation.

  • Posts: 535
  • Thank you received: 109
If available for you system, install ncdu. It provides a nice interface to seeing filesystem hogs and allowing you to delete right from the same interface.

It should be available through your package manager on most systems.
3 years 4 months ago #62482

Please Log in or Create an account to join the conversation.

  • Posts: 910
  • Thank you received: 86
ncdu was actually already on the system.
I ran it and it helped!
-- astrometry index files

Of course... I did download more index files on the "problem" RPI.

Thanks!
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 2.
3 years 4 months ago #62512

Please Log in or Create an account to join the conversation.

Time to create page: 0.585 seconds