Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 09-12-2006, 11:18 PM   #1
Registered: Mar 2004
Location: Central Texas
Distribution: Kubuntu, Fedora, DamnSmall, etc, etc
Posts: 78

Rep: Reputation: 15
KDE FIND configure to skip /mnt?

I'm using Kubuntu 6.06 with the Ichthux packages but this question is common to any distribution using KDE:

The FIND FILES utility searches every directory off the root (/), including the directories off the /mnt directory. This means FIND is searching my files in other distributions on other partitions, and I usually have *several*, so FIND looses a LOT of time here. Is there some way to configure FIND to skip /mnt (and /media)?

Ticking the "Use files index" option box causes Kfind to crash almost immediately and takes Konqueror with it. I could umount/mount /mnt each time but that would be a pain even if I did it in a script. So far, my best option seems to be using locate <filename> after editing the PRUNEPATHS line in /etc/updatedb.conf to include /mnt, but that still isn't as easy as doing it from Konqueror would be.

Anybody know how this might be done?

In faith, Dave,
Viva Texas
Old 09-13-2006, 09:54 AM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
I looked at the KDE file find utility when I read your post. I had never used it. It looks like it doesn't have the feature that you are looking for.

Since you also mention using the locate utility I figure that you are willing to use command line utilities. In that case I recommend using the find utility. It has an option "-mount" to prevent the search from spanning file systems. In other words if you use the "-mount" option then the find utiltity will only search the partition that it starts searching. It won't search other mounted partitions.
find / -mount
The locate command certainly has its benefits. Mainly it is a substring search so you don't have to know the entire file name to use locate. On the other hand the find command is so versatile that it can be very handy in a lot of situations.

Last edited by stress_junkie; 09-13-2006 at 09:59 AM.
Old 09-13-2006, 12:37 PM   #3
Registered: Mar 2004
Location: Central Texas
Distribution: Kubuntu, Fedora, DamnSmall, etc, etc
Posts: 78

Original Poster
Rep: Reputation: 15
Hi Stress Junkie. Yes, I tried the find command but locate seemed easier; locate takes only one parameter, the name of the file you want while find takes several and I keep forgetting to use -name :^>.

I'm still hoping someone knows a way to configure Kfind. I haven't been able to "find" its config file or even if it has one.

In faith, Dave,
Viva Texas
Old 09-14-2006, 12:08 PM   #4
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
I looked at KFind & read "The KFind Handbook" (enter: help:kfind in the Konq. "Location" box), it wasn't much help [Revision 1.20.01 (2004-04-11)]. If you can do what you want in KFind, it isn't documented.

locate kfind.conf came up empty. There is a [b]~/.kde/share/config/kfindrc[b], it doesn't have any comments.

I agree, use CLI tools -- locate for the quick & easy stuff, find & its options for the more complicated. I especially like:
locate <broad_pattern>  | grep <fine-tuned_pattern>  | less -S
to get something like the "benefits of both worlds".


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core Problem: KDE and /mnt Pr_009 Fedora 4 11-16-2005 05:41 AM
checking for KDE... configure: error:, no KDE headers installed mythief Linux - Software 2 10-23-2004 05:20 AM
i changed /mnt/cdrom to /mnt/CD-RW - now i've got a problem?!?! spyghost Linux - Software 7 09-30-2003 02:06 PM
/mnt/cdrom & /mnt/scd0 locks up machine RIgimp75 Mandriva 7 09-01-2003 09:32 PM
mount -t // /mnt/windows -o password='' generates error broadsoft Linux - Networking 3 08-07-2003 04:51 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration