Baloo Commands!

I just installed Tumbleweed, KDE and followed all defaults during installation.

I already have my files indexed and I could search for file content from Dolphin, I believe it is Baloo. Right?

But doing a command to get the baloo status I get:

limo@localhost:~> balooctl status

The program ‘balooctl’ can be found in the following package:

  • baloo5-file [ path: /usr/bin/balooctl, repository: download.opensuse.org-oss ]

Try installing with:
sudo zypper install baloo5-file

limo@localhost:~>

Anything wrong with my installation? I see the commands are there at SDB:Use balooctl command - openSUSE Wiki and balooctl status is there as I did it.

Any help highly appreciated.

Version number been bumped, so:

balooctl6 status

should work.

1 Like

thanks @snoopy
This worked.
But again, I found I am getting multiple search results all pointing for the same file.
I assume it is not supposed to snapshot my home folder.
What can I do to exclude my home folder from being snapshot and having this Baloo issue?

You may have to rebuild the baloo index:

balooctl6 stop
rm -rf ~/.local/share/baloo
balooctl6 start

Thanks @knurpht
But this just delete the current index that contains the duplicates, then reindex.
This does not exclude home from being snapshot!

I used some AI search and came to a solution I wonder if it will work. I am testing it now.

Simple the steps are:

  • add EXCLUDE_PATHS=“/home” to the file /etc/snapper/configs/root
  • restart snapper: sudo systemctl restart snapper-timeline.timer
  • balooctl6 disable
  • balooctl6 purge
    -balooctl6 enable

I hope this will work and hope it will not affect booting from earlier snapshots!
I will test, reboot, snapshot,… etc and see how it goes and I will report back

Why do you believe that snapper is related to baloo? That are completely different topics.

Search indexing:
Open Plasma systemsettings->Search" and remove /home from the indexing path

Snapshot:
/home is excluded by default

The point is I want /home to be indexed. This is the main point. I have lots of pdf, books, research, and data, so I need it.
To update you guys, it seems it is not working as expected.

limo@localhost:~> balooctl6 status
Baloo File Indexer is running
Indexer state: Idle
Total files indexed: 2,404
Files waiting for content indexing: 0
Files failed to index: 0
Current size of index is 709.20 MiB
limo@localhost:~> balooctl6 check
Started search for unindexed files
limo@localhost:~> balooctl6 status
Baloo File Indexer is running
Indexer state: Indexing file content
Total files indexed: 3,590
Files waiting for content indexing: 1,086
Files failed to index: 0
Current size of index is 709.20 MiB
limo@localhost:~> balooctl6 status
Baloo File Indexer is running
Indexer state: Idle
Total files indexed: 3,590
Files waiting for content indexing: 0
Files failed to index: 0
Current size of index is 780.65 MiB
limo@localhost:~>

It seems to be reindexing the snapshot again!

I am thinking of reinstalling, and manually have a separate home partition. What file system should I make home so it does not get snapshot in any way?
I hope this will help. Would it help?

Did you actually had a look into Plasma systemsettings? You can exclude the snapshot path from getting indexed…

How can I do that?
This is my stuff:

limo@localhost:~> lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 256M 0 part /boot/efi
├─nvme0n1p2 259:2 0 236.2G 0 part /usr/local
│ /var
│ /srv
│ /root
│ /home
│ /opt
│ /boot/grub2/x86_64-efi
│ /boot/grub2/i386-pc
│ /.snapshots
│ /
└─nvme0n1p3 259:3 0 2G 0 part [SWAP]
limo@localhost:~>

My home folder is “/home’limo”
From inxi -Fxxx:

Drives:
Local Storage: total: 238.47 GiB used: 13.89 GiB (5.8%)
ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLW256HEHP-000H1
size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 tech: SSD serial: S340NA0JA92579
fw-rev: CXB73H1Q temp: 34.9 C scheme: GPT
Partition:
ID-1: / size: 236.22 GiB used: 12.99 GiB (5.5%) fs: btrfs
dev: /dev/nvme0n1p2
ID-2: /boot/efi size: 252 MiB used: 4.3 MiB (1.7%) fs: vfat
dev: /dev/nvme0n1p1
ID-3: /home size: 236.22 GiB used: 12.99 GiB (5.5%) fs: btrfs
dev: /dev/nvme0n1p2
ID-4: /opt size: 236.22 GiB used: 12.99 GiB (5.5%) fs: btrfs
dev: /dev/nvme0n1p2
ID-5: /var size: 236.22 GiB used: 12.99 GiB (5.5%) fs: btrfs
dev: /dev/nvme0n1p2
Swap:
ID-1: swap-1 type: partition size: 2 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p3

But I want to be sure that my /home/limo/ gets indexed, I just don’t want it to be snapshot.
I want to be still able to boot to earlier snapshots from Grub.

Sorry to bother you, but I am not that techie.
So please tell me what to do.

To begin with, I do not use Baloo (I am not even sure it is running for me), so I may be utterly wrong.

But, I always thought that Baloo is part of the KDE desktop. And thus runs for the KDE desktop end-user. And thus will index files within that end-users home directory and not elsewhere. I would be really stunned if Baloo run by a user would (try to) index the data of other users.

The problem is that it indexes each snapshot of home. So if I have 10 snapshots of home will get 10 results +1 original and all pointing to same file

As already explained. You need to exclude the directory which you don’t want to index!
Simply exclude the directory where snapshots are stored!

You need to opt out to avoid indexing. The default is all things in.

You suffer from a severe misperception here. Baloo build a database, it zero relation to “snapshots”. Please read what the others write.

Just to update you guys.
I just reinstalled (fresh install), during installation I chose EXT4 for /home partition.

So, as I see, /home is not being snapshot as it is EXT4 not BTRFS.

Everything went fine.
I booted, created a text file with one unique word in it.
(I had to purge and restart Baloo, and it is baloo6 by the way not just baloo)
I checked snapshots, rebooted, searching, I am getting only one search result as it is supposed to be.
I am happy, everything is working as expected.
(Though I have a little issue about the sized dedicated to home, I will make another thread)

Thank you all for the wonderful Tumbleweed and wonderful support.
I am glad I am back home. (I said I started Linux with Suse 7.3 wayback in 2000)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.