LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-12-2006, 11:18 PM   #1
dpeirce
Member
 
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
dave@christos.cjb.net, dpeirce@christian.net
Viva Texas
 
Old 09-13-2006, 09:54 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.
Code:
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
dpeirce
Member
 
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
dave@christos.cjb.net, dpeirce@christian.net
Viva Texas
 
Old 09-14-2006, 12:08 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
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.

BTW,
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:
Code:
locate <broad_pattern>  | grep <fine-tuned_pattern>  | less -S
to get something like the "benefits of both worlds".
 
  


Reply



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 //192.168.0.1/mnt /mnt/windows -o password='' generates error broadsoft Linux - Networking 3 08-07-2003 04:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:31 PM.

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